how can I add support for an totp authenticator ${app} easily

600 views
Skip to first unread message

Jelle de Jong

unread,
Oct 7, 2022, 6:45:58 AM10/7/22
to keyclo...@googlegroups.com
Hello everybody,

I want to add andOTP and 1Password to the list of TOTP supported
applications, I saw there is some logic behind this list as changing the
timeout seconds will remove google authenticator for example.

I am now using the bellow hack but there might be a better way?

/opt/keycloak/keycloak-19.0.2/themes/base/login/login-config-totp.ftl

<#list totp.policy.supportedApplications as app>
<li>${app}</li>
</#list>

- name: adding andOTP string to
/opt/keycloak/keycloak-19.0.2/themes/base/login/login-config-totp.ftl
lineinfile:
destfile:
/opt/keycloak/keycloak-19.0.2/themes/base/login/login-config-totp.ftl
insertafter: '<ul id="kc-totp-supported-apps">'
line: " <li>andOTP</li>"
tags:
- keycloak

Kind regards,

Jelle de Jong

Stian Thorgersen

unread,
Oct 7, 2022, 7:09:19 AM10/7/22
to Jelle de Jong, keyclo...@googlegroups.com
See https://github.com/keycloak/keycloak/pull/13537 I think we should convert this one to an SPI to allow custom apps to be added.

--
You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/789a15a9-6d8f-db25-8017-303e665ecae3%40powercraft.nl.

Reply all
Reply to author
Forward
0 new messages