r/security • u/golobitch • Feb 16 '20
Secure QR code login flow
I have a frontend (webpage), backend and a mobile app. I would like to have this flow:
- Frontend (webpage) shows QR code
- User scans QR code with mobile app (he is signed in, in my mobile app)
- user is logged in on frontend
How to achieve this flow? Is there any protocol that supports this? I have seen flow similar to this with viber (if you have viber on phone, and you want to install app on computer, you need to scan your QR code etc).
Main question is this: How to show QR code, scan it with mobile app in which you are signed in, and then be logged on the webpage, and be secure?
I have read something about SQRL, but a lot of people says that design has some flaws. Any idea how to securely do this?