[keycloak-user] How to add new custom form for additional user management

Federico Navarro Polo - Info.nl federico at info.nl
Fri Sep 16 06:18:41 EDT 2016


Hello Marek,

Thanks for your answer.

The address example does not cover exactly what I would like to have, as it modifies the existing account.ftl

I would like to leave the account.ftl as it is, but having a custom form to manage only the custom attributes.

In other words, when I access the /auth/realms/abc/account page, I can see there is a sidebar menu on the left with options like: “Account”, “Password”, “Authenticator”, and so on. I would like to add a new item in that sidebar and be able to access through something like /auth/realms/abc/account/custom

Is there an example for that?


Regards,
Federico

From: Marek Posolda <mposolda at redhat.com>
Date: Friday 16 September 2016 at 11:55
To: Federico Navarro Polo <federico at info.nl>, "keycloak-user at lists.jboss.org" <keycloak-user at lists.jboss.org>
Subject: Re: [keycloak-user] How to add new custom form for additional user management

We have theme SPI, which allows to override themes. See our "theme" examples in the keycloak-examples, especially address theme, which looks to be exactly what you want.

Marek

On 16/09/16 11:51, Federico Navarro Polo - Info.nl wrote:
Hello,

In my Keycloak configuration, there are a number of custom attributes defined for each user. I would like to offer the possibility to manage these attributes in a form similar to the “account profile” form, not using and modifying the existing account.ftl itself, but creating a new template for that (eg: secondary_account.ftl).

What is the recommended approach to do this?

I would assume I need to create a new SPI, but I am not sure what would be the next steps to configure it and make it work. I think what I need is something in the same direction as the domain-extension example, but it’s not exactly the same, as I want to 1) create a new form and 2) base that form data in the existing domain of the user.

Could someone give some pointers?

Thanks in advance!




_______________________________________________

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/20160916/939c9caa/attachment-0001.html 


More information about the keycloak-user mailing list