how to disable the "authentication" link in a user's account?
793 views
Skip to first unread message
françois gourrier
unread,
Dec 13, 2019, 6:03:48 AM12/13/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Keycloak User
Hello everyone
I would like the "authentication" link no longer to be displayed in a user's account.
The following sentence is present in the documentation. "The Authenticator menu item allows the user to set up OTP if they desire. This will only show up if OTP is a valid authentication mechanism for your realm"
But i dont find where to declare that OTP is not a valid authentication mechanism.
I disabled this function from all the forms offering it but the link still appears.If possible I would avoid touching code to make it disappear.
Thank you in advance.
Keycloak version: 4.8.3
François
Niko Köbler
unread,
Dec 18, 2019, 3:34:11 AM12/18/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Keycloak User
Hi François,
I think it's not possible by disabling in the realm configuration. I had a quick look into the account template and there is no condition for the menu entry.
So, you have to adjust the theme for the account application to your own needs and configure the realm to use your own theme.
Cheers,
- Niko
Thomas Darimont
unread,
Dec 18, 2019, 3:54:05 AM12/18/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Keycloak User
To clarify that a bit.
In your own theme you can extend the base or keycloak account theme and override the template.ftl file. There you use your own layout and add your own logic to hide/show sections of the standard account ui.
Note that you should also override the applications.ftl template with an empty file, if you don't want your users to see the applications page at all - otherwise users could still access the default applications listing by just adding /applications to /account.
Cheers,
Thomas
françois gourrier
unread,
Jan 3, 2020, 5:06:33 AM1/3/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Keycloak User
Thanks Niko for your answer.
Cheers.
françois gourrier
unread,
Jan 3, 2020, 5:07:18 AM1/3/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message