Repository navigation
Replies: 4 comments 4 replies
|
Some additional information would be useful if people familiar with the email OTP or other plugins can chime in:
For the authentication flow you could use something like the following: |
|
Hello @darius-m , Sorry I had to switch to another project for some time. I reviewed code of both sms authenticator https://github.com/netzbegruenung/keycloak-mfa-plugins/blob/main/sms-authenticator/README.md and two email authenticators (https://github.com/mesutpiskin/keycloak-2fa-email-authenticator, https://github.com/5-stones/keycloak-email-otp) I tried comparing it with bundled App OTP one and could not find anything obviously lacking. Every configuration exhibits the same behavior - no ability to influence alternative authenticators order or at least identify a preferred one that should be executed by default. I tried to specify order property in authenticator factories, I looked at auth. flow's JSON in admin console for its property Here are few relevant posts there were more of them struggling with alternative authenticators order/preferred Is there any prescribed way to achieve it? It seems to be such a common sense need and yet I could not find anything to address it properly |
|
@roytmana
|
|
@enggomarpu |
Uh oh!
There was an error while loading. Please reload this page.
Hello Everyone
I am new to keycloak and trying to prototype for our use case. We need email OTP as a second factor by default with optional SMS and Auth App for OTP. I create workflow where these 3 OTP options but even though email one is listed first it is always the SMS which is executed by default upon user/password login completion. If i remove DMS then it would be Auth App. No matter what I tried it is always that. Found some old github issue from 2022 about this and plan to implement concept of "preferred" step if not ordering but did not see any movement on it. Is there any way I can achieve what I need?
After failing with order of OTP steps , I tried to create two separate form workflows ("Authenticate using User/Password and email OTP vs Authenticate using User/Password and SMS OTP ) each starting with user/password and followed by its respective OTP step. That supported the order but when I clicked "Try Another Way" it presented both choices with the same name "Username and Password" not taking any name/description from my designed workflow. The workflow name seems to be coming from the first step (auth with username and password) which is hardcoded (looked from the code it seems to be pulling it from a resource bundle by key not from workflow design)
I also suspect it won't be easy to make it conditional based on whether user has configured SMS Phone or Auth App.
I am at a loss as to what to do. This kind of things should be easy - maybe I am approaching it in a wrong way?
All reactions