✅Realtime input validation and custom registration fields
In reality the regexp used in this gif doesn't work server side, the regexp pattern should be ^[^@]@gmail\.com$ (the RegExp should match the whole string) 😬.
User profile is only available in Keycloak 15 and newer and it's not enabled by default, you have, to start keywloak with the extra parameter: --features=declarative-user-profile
How you would pass this parameter in practice depend of the Docker image/Helm chart that you are using.
Here is an example with docker compose.
With older Keycloak distribution you can also use JAVA_OPS environement variable
Keycloakify provides client side validation out of the box but for customizing the registration experience you'll have customize register-user-profile.ftl
You can establish guidelines for what constitutes a valid password, such as a minimum length, by utilizing the Keycloak Admin UI under 'Authentication -> Password Policy'. However, as of now, Keycloak does not support front-end validation of passwords.
This limitation means that we can't provide immediate feedback to the user on the client side about the validity of their chosen password. Only after the user clicks on 'Register' will they receive an error if the chosen password does not adhere to the server-defined password policy.
Should you insist on implementing client-side password validation, you can pass validators to the useFormValidation function, although it's not typically recommended. The reason for this is potential confusion for users if the validator defined in your theme does not align with the server's password policy.
Getting your custom user attribute to be included in the JWT