Reputation: 838
I'm trying to implement two factor authentication via TOTP. I have webapp and mobile applications(ios and android). I want two factor auth flow only on webapp but not on mobile apps. How can I securely bypass two factor auth on only mobile apps ?
Update: I'm using common backend api for webapp and mobile apps. Need to implement two factor on web app. For mobile apps One factor(username, password) is fine.
Upvotes: 0
Views: 987
Reputation: 1561
Well! This is assuming that for the other factor, you use mobile phone. You would be asking for username, password. and then linking the phone number with the account. Then verifying that the user owns that phone number by sending a one-time-password.
There can be a smart way to do the same in the app without much user interaction.
Upvotes: 0
Reputation: 621
Look to implement an analog of Application passwords google is using for such things
Upvotes: 0
Reputation: 1596
Having two authentication flows, one with 2FA and one without, is basically a vulnerability. Implement 2FA everywhere or don't bother.
Paypal has some bad experience with partial 2FA implementations. No reason for you to follow.
Upvotes: 1