Repository navigation
Can not temporarily store state in authenticator using any of the available notes #19557
Unanswered
mrpatrickpilch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello.
The use case is a simple one - my SMS OTP authenticator should not resend a SMS when the user refreshes the page.
My initial implementation that stores a marker using
context.authenticationSession.setAuthNoteworks just fine. Upon refresh, in the#authenticatemethod I check for the marker in the auth session notes and conditionally send the SMS. Okay.But this only works when the user is in a typical browser login flow with a URL such as
On the other hand, I also have a use case where I have SMS OTP inside of a conditional flow for LoA 2. In that case, my application will redirect the user to a URL like
and the SMS authenticator will be displayed.
The problem is that I can't find any way to store transient state that persists during a refresh. Every following method I tried would not persist anything I set in my authenticator after a refresh:
context.authenticationSession.userSessionNotescontext.authenticationSession.setAuthNotecontext.authenticationSession.setClientNoteHopefully someone here could advise on what is going on and or how to fix it. Thanks.
All reactions