Hi Jasmine,
Long time no speak!
I tried using different hidden input form values based on what you said and nothing worked. I have tried the following:
<form id="regenform" method="POST" action="" autocomplete="off" style="margin-top: 15px;">Combination as you provided in your example:
<input type="hidden" name="operation" value="generate" />
<input type="hidden" name="Regenerate" value="Regenerate" />
Single generate:
<input type="hidden" name="operation" value="generate" />
Single regenerate:
<input type="hidden" name="Regenerate" value="Regenerate" />
None of these form inputs would reset the token timeout. They would timeout based on the first generated token time clock.
Is there any way if you regenerate the token to reset that timer?
------------------------------
Troy Burkle
------------------------------
Original Message:
Sent: Tue October 22, 2019 12:05 AM
From: Jasmine Smith
Subject: OTP Token Timeout
Hi Troy,
Have you made changes to the default template pages regenerate button?
It performs the following request:
POST /mga/sps/authsvc?StateId=...
Content-Type: application/x-www-form-urlencoded
operation=generate&Regenerate=Regenerate
With this request, I would expect that the OTP would be stored with the correct lifetime.
What error do you get back in this flow?
------------------------------
Jasmine SMITH
Original Message:
Sent: Fri October 18, 2019 03:04 PM
From: Troy Burkle
Subject: OTP Token Timeout
Hello,
We are using OTP for second factor authentication. We leverage the "MAC One-time Password" authentication mechanism to handle the OTP work (sending emails, render html, etc). The authentication mechanism has an attribute of Store Entry Lifetime which handles the OTP session timeout. Now, we have a button that allows the user to regenerate the OTP. We are finding out that when we do this, the token lifetime did not reset to clock. It appears the time remaining to submit the second token (or third, etc) is driven from the amount of time left from the first token.
Is there a way to reset the OTP session when we regenerate a new token?
Thanks!
------------------------------
Troy
------------------------------