Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reCAPTCHA Failure Upon Duplicate Unique Attribute Error in Self-Registration Flow #22745

Closed
Pratheesha97 opened this issue Feb 3, 2025 · 0 comments

Comments

@Pratheesha97
Copy link

Pratheesha97 commented Feb 3, 2025

Description

When unique attributes are configured as per the documentation [1], the self-registration flow behaves as expected. Specifically, if a new user is created with a duplicate value for a claim that is configured to be unique, submitting the form triggers the error message, "The value defined for {claim_name} is already in use by a different user."

However, when reCAPTCHA is enabled, an issue occurs upon redirection to the error page. The reCAPTCHA functionality does not work as expected, resulting in an error that disrupts the authentication flow.

Image

Steps to Reproduce

  1. Configure unique attributes according to the documentation [1].
  2. Enable reCAPTCHA in the self-registration flow.
  3. Attempt to create a new user with a duplicate claim value that is set to be unique.
  4. Upon submission, the error message about the duplicate claim is displayed as expected.
  5. Observe that reCAPTCHA fails to function correctly after being redirected to the error page, disrupting the authentication flow.

[1] - https://is.docs.wso2.com/en/latest/guides/users/attributes/configure-unique-attributes/

Version

7.0.0

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants