[keycloak-user] How to validate required for custom fields

Jairo Alonso Henao Rojas jahenao at itroisolutions.com
Fri Nov 27 17:49:04 EST 2015


Thanks,

I was following the user guide but my problem was another, in the section 33.5.2 - 'Packaging the action', says the JAR file must contain a file called 'org.keycloak.authentication.ForActionFactory'.

The correct file name is 'org.keycloak.authentication.FormActionFactory', this is a mistake of the guide.

Now this works for me.


Jairo Henao Rojas
IT ROI Solutions

From: Marek Posolda [mailto:mposolda at redhat.com]
Sent: Wednesday, November 18, 2015 5:16 AM
To: Jairo Alonso Henao Rojas <jahenao at itroisolutions.com>; keycloak-user at lists.jboss.org
Subject: Re: [keycloak-user] How to validate required for custom fields

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 at lists.jboss.org<mailto:keycloak-user at lists.jboss.org>

https://lists.jboss.org/mailman/listinfo/keycloak-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151127/684a5673/attachment.html 


More information about the keycloak-user mailing list