[keycloak-user] Registration page and comboboxes

Luca Stancapiano luca.stancapiano at vige.it
Fri Jan 18 09:34:41 EST 2019


thanks Dmitry.

Actually I can create JPA and Rest api. I can also create a custom registration page. The registration page can read custom attributes but I still can not figure out where to go to enhance them. 
The documentation explains how to implement an org.keycloak.authentication.Authenticator but also deals with managing authentication, which I do not need because I only need to enhance the attributes to be read in the registration form. 
I've seen that you can implement an org.keycloak.authentication.FormAuthenticator which only provides a render method, which would be right for me but I do not understand how to hook it to the registration page

> Il 4 gennaio 2019 alle 16.49 Dmitry Telegin <dt at acutus.pro> ha scritto:
> 
> 
> Hello Luca,
> 
> What you're talking about is 100% feasible, but will require some coding.
> 
> You will need to implement the following:
> - custom JPA entity [1] to store combobox values;
> - custom REST resource [2] to enable management via Admin Console + provide the list to the registration page;
> - Admin Console additions [3] to implement the management GUI;
> - customized registration page (via custom login theme).
> 
> I'd also suggest that you take a look at BeerCloak [4], an all-in-one example where all of the above is implemented, except for the last item. I'm planning to do it it maybe in the second half of January. As I see it, the registration page will feature a drop-down with beers for a user to choose a favorite from.
> 
> [1] https://www.keycloak.org/docs/latest/server_development/index.html#_extensions_jpa
> [2] https://www.keycloak.org/docs/latest/server_development/index.html#_extensions_rest
> [3] https://www.keycloak.org/docs/latest/server_development/index.html#_themes
> [4] https://github.com/dteleguin/beercloak
> 
> Cheers,
> Dmitry Telegin
> CTO, Acutus s.r.o.
> Keycloak Consulting and Training
> 
> Pod lipami street 339/52, 130 00 Prague 3, Czech Republic
> +42 (022) 888-30-71
> E-mail: info at acutus.pro
> 
> On Sat, 2018-12-29 at 12:08 +0100, Luca Stancapiano wrote:
> > I have a registration page in a Keycloak theme where the user has to choose from a list from a combobox. This list is dynamic, meaning it could be changed by an administrator at any time. What is the best way to manage this list with Keycloak? Can I use the administrative console to update this data? If you are on which component?
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list