Authenticator#action in direct grant flow

31 views
Skip to first unread message

Martin Paulovčák

unread,
Sep 26, 2023, 2:35:06 AMSep 26
to Keycloak User
Hello, community,
I need to implement custom KC Authenticator that will validate OTP sent via SMS. I have my Authenticator#authenticate method that will trigger SMS and Authenticator#action that will validate it. Everything works fine in browser auth flow, however when I try to formulate login action url '/realms/{realm}/login-actions/authenticate?code={session-code}&execution={executionId}' by plugging in AuthenticationFlowContext#generateAccessCode and AuthenticationFlowContext#getExecution respectively and use it in direct grant flow I'll get an error indicating that I have to use browser with cookies enabled. Is it somehow possible to achieve this? -- to trigger Authenticator#action in direct grant flow?
Thanks in advance.
Regards Martin
Reply all
Reply to author
Forward
0 new messages