8000 User OTP implementation via RESTAPI endpoints · keycloak keycloak · Discussion #12350 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

@pranil420 AFAIK there is no such API but it pretty straightforward to implement it on your own.
Useful links:

  • https://github.com/dasniko/keycloak-extensions-demo/tree/main/rest-endpoint - this will show you how to implement custom REST endpoint
  • to see how you can generate the QR code with the secret - see org.keycloak.forms.account.freemarker.model.TotpBean.TotpBean(KeycloakSession, RealmModel, UserModel, UriBuilder)
  • to see how to do TOTP setup (user sends the one time code with the secret) - see org.keycloak.services.resources.account.AccountFormService.processTotpUpdate()

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pranil420
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
0