Unique attributes not validated prior to submitting sign up form for JIT provisioning #22221
Labels
Affected/7.1.0-m6
Issues that get reported against IS7.1.0 M6 pack will get this label
Severity/Critical
Team/User & identity adminstration
Type/Bug
Description
The following issues have been identified.
This is described in further detail below.
When unique attributes (other than the username) have been configured as described in [1], if a user attempts the self-registration with a duplicate attribute, the form does not allow the sign up form to be submitted and shows the following error message in the normal sign-up flow where JIT provisioning is not enabled.
However, when JIT provisioning has been enabled to get the user input (for example, prompt user for password and consent), duplicate attributes are not validated prior to the form submission.
As a result, the user is not informed that the attribute is already in use by a different user as in the above flow and the form gets submitted with the user being auto-logged in. Upon login, while the user gets the following UI errors.
The above error is due to the fact that provisioning was unsuccessful and the user does not exist, however, these error messages do not indicate to the user that the self-registration itself was unsuccessful nor do they indicate the reason for the failure, i.e., the use of duplicate values.
The reason for the failure is only seen in the console logs:
Expected Behaviour
The expected behaviour would be as follows.
[1] https://is.docs.wso2.com/en/latest/guides/users/attributes/configure-unique-attributes/
Steps to Reproduce
Screen.Recording.2025-01-09.at.09.47.08.mov
Version
7.0.0
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: