You can create custom validator for registration form via the Authentication Flows SPI : http://keycloak.github.io/docs/userguide/keycloak-server/html/auth_spi.html#d4e3448 .

Adding those custom validations works just for registration form, but not for account management or update-profile pages. In the future, we plan to improve so that you can attach custom validation on all 3 places and you won't need to code your own validator for supporting such common thing like marking some custom field to be mandatory.

Marek

On 13/11/15 00:04, Jairo Alonso Henao Rojas wrote:

Hello,

 

I added several custom fields in the registration form, how I can do for them to be required?

 

See attached fields in register form.

 

Thanks

 

 

Jairo Henao Rojas

 



_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user