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

Client side password validation using PasswordPolicies #107

Open
waynemorphic opened this issue Nov 17, 2024 · 0 comments
Open

Client side password validation using PasswordPolicies #107

waynemorphic opened this issue Nov 17, 2024 · 0 comments

Comments

@waynemorphic
Copy link

@paulwer and I have been working on password validations to improve the user experience during registration. Keycloak added a passwordPolicies bean that exposes password policy data to Freemarker, which has been pretty helpful. This is what we have been able to achieve so far:

  • Real-time password validation i.e An error is thrown on the client if a password does not meet password policies set
  • Real-time password confirmation i.e. An error is thrown on the client if the password and the password confirmation do not match.
  • This means that these errors do not have to appear on the UI after hitting the Registration button

Issue

Stuck on implementing password validation using checked input fields. This is partly because looping through passwordPolicies is not possible since it is neither a list nor a map. For context, here is an image of possibly what we seek to achieve:
Screenshot 2024-11-17 at 2 04 21 PM

References from other sources:

Some issues I have raised on Keycloak's repo

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

No branches or pull requests

1 participant