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

Stian Thorgersen sthorger at redhat.com
Tue Sep 20 04:01:05 EDT 2016


I'm afraid we don't support adding additional pages to the account
management console at the moment so you're limited to extending the current
forms. This is planned for the future, but will be a while to it gets
implemented.

On 16 September 2016 at 12:18, Federico Navarro Polo - Info.nl <
federico at info.nl> wrote:

> 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
>
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
>
> _______________________________________________
> keycloak-user mailing list
> 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/20160920/e5ed82ef/attachment-0001.html 


More information about the keycloak-user mailing list