Helper class used to generate a TotpMultiFactorAssertion.
| String | FACTOR_ID |
| static Task<TotpSecret> |
generateSecret(MultiFactorSession
session)
Creates a TOTP secret as part of enrolling a TOTP (time-based one-time
password) second factor.
|
| static TotpMultiFactorAssertion |
getAssertionForEnrollment(TotpSecret
secret, String otp)
Creates an assertion for completing the enrollment flow.
|
| static TotpMultiFactorAssertion |
Creates a TOTP secret as part of enrolling a TOTP (time-based one-time password)
second factor. This method uses the auth instance corresponding to the user in the
MultiFactorSession.
| session | MultiFactorSession. |
|---|
Creates an assertion for completing the enrollment flow.
| secret | obtained from the
generateSecret(MultiFactorSession) step. |
|---|---|
| otp | one-time password obtained from the TOTP App. |
Creates an assertion for the sign-in flow.
| enrollmentId | identifies the TOTP second factor being used. |
|---|---|
| otp | one-time password obtained from the TOTP App. |