I want to have a Google Authenticator for my website (PHP
) / 2FA.
What I exactly want:
- For the login page: username, password and (if enabled) GAuth (6 numbers).
- In profile settings a person can scan the QR code in his Google Authenticator app and enable/disable the GAuth.
- I do NOT want to use the google login button, just the 6 number authentication.
Info: It's a game website where people can register their account, which means every QR code is personalized to one user.
Question:
- I have been searching the web a lot on how to implement this AND how to generate a QR code, but I have not found a useful tutorial. How can I implement this API?
I've installed composer https://github.com/google/google-api-php-client
, but now I'm stuck.