looking for direct keycloak URL to setup TOTP for users

655 views
Skip to first unread message

Jelle de Jong

unread,
Oct 7, 2022, 6:41:20 AM10/7/22
to Keycloak User
Hello everybody,

I am looking for a direct URL that I can direct users at to login and
setup there TOTP.

So far the best I can find is the bellow URL and then press "Setup
authenticator application"

https://keycloak.example.org/realms/master/account/#/security/signingin

It will direct the user to the bellow URL, but his URL breaks if used
directly and without being logged in first.

https://keycloak.example.org/realms/master/login-actions/required-action?execution=CONFIGURE_TOTP&client_id=account-console&tab_id=MnuUYLVhWcc

Thank you in advance.

Kind regards,

Jelle

Thomas Darimont

unread,
Oct 7, 2022, 8:12:49 AM10/7/22
to Jelle de Jong, Keycloak User
Hello Jelle,

you could just initiate a new auth code flow and add the parameter kc_action=CONFIGURE_TOTP to the auth URL, if the user is already logged the user will be directly transferred to the OTP update form.

Cheers,
Thomas

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/50a72ab9-d26e-d12c-bee4-110679791744%40powercraft.nl.
Reply all
Reply to author
Forward
0 new messages