totp and lookup_secrets - can they be used in parallel? #2258
|
Hi, we've trying to configure the TOTP and Lookup Secrets for the self service flows. We’re wondering if users should be able to set up the two 2FA methods in parallel? So that they can use the lookup_secrets (recovery codes) as a back up 🔒 We’ve added both to our kratos config and we’re able to set the 2FA using totp when logged in using We also want to add recovery codes (lookup secrets) parallel to the totp 2FA. So that if a user has lost access to their totp device they can use their codes. When a user adds 2FA (totp) to their account we want to generate the codes automatically and add them as a backup to that account. We’re able to generate the recovery codes and confirm them by calling When we next try to login the only option for 2FA is to use the recovery codes. We’re only getting the We would like to achieve a similar set up to this loockup secrets example in the documentation. Here is the kratos config: |
Replies: 1 comment
|
We cleared all the identities in our database and tested this again today and it's now working as expected! We get both the options of using totp or lookup_secrets when going through the second 2FA challenge to log in. Must have done something wrong before! 😳 |
We cleared all the identities in our database and tested this again today and it's now working as expected! We get both the options of using totp or lookup_secrets when going through the second 2FA challenge to log in. Must have done something wrong before! 😳