Pretty sure you can just use another app? I prefer Authy
what is the good alternative of 2fa Google Authenticator in laravel
looking for an alternative to 2fa Google Authenticator in laravel
@Sinnbeck If possible could you please share the details
how to setup or packages use for simple login/registration form using Authy in laravel 7
Thanks
@M@rty If you are using fortify it is built in: https://laravel.com/docs/9.x/fortify#two-factor-authentication
If not you can use a package: https://packagist.org/packages/laragear/two-factor
@Sinnbeck I not using fortify,
For this package: https://packagist.org/packages/laragear/two-factor
Requirements
Laravel 9.x or later PHP 8.0 or later
and I'm using laravel : "laravel/framework": "^7.0", and PHP :7.4
please guide further
@M@rty I suggest you upgrade. Php 7.4 has end of life in november.
But you can either implement it yourself, or use and old and abandoned package: https://github.com/DarkGhostHunter/Laraguard/tree/v1.4.0
composer require darkghosthunter/laraguard "^1.4.0"
@Sinnbeck will it work the same?
like Google 2FA, are users able to scan the QR code and get the code on the handset?
@M@rty I believe yes. Its just a key, so any auth app should work to my knowledge.
@Sinnbeck ok, thanks
what about the Authy? I don't get a particular idea of how to use authy in laravel
is there any package or documentation for implementing in Laravel 7?
I found this: https://github.com/rinvex/laravel-authy
if yes this will be helpful, otherwise I'll be confused for sure
@M@rty As I said, the user should be able to use their preferred authenticator. This package guarantees that it works with them all: https://packagist.org/packages/laragear/two-factor
@Sinnbeck I got your point, what will be the role of Authy here?
does a user get the auth key on the Authy app?
@M@rty I assume you have never used 2fa before? When you try to get into a page the first time, you get to add it to your phone (the link between the page and the app on your phone). Here you can pick google auth, Authy, Microsoft auth etc. Once this link is made, you will be able to use this app in the future to authenticate your login (it will show a code in the app that you type into the website, or it just gives you an "allow login" button)
@Sinnbeck Correct! new to this
@M@rty Maybe check if one of your services allow you to switch on 2fa so you can test it out? I have several services that I have it enabled on :)
@Sinnbeck Again thanks, now seems I'm aware with 2FA :)
@M@rty Sounds good. Happy to help
@Sinnbeck Hey, I know the discussion was over but still want to be sure if it best the alternative why I can't find any suitable example for https://github.com/DarkGhostHunter/Laraguard/tree/v1.4.0
@M@rty As I mentioned, that package is abandoned. So chances are it will never ever get any updates (most likely not). So I really recommend upgrading to a newer php/laravel version so you can use the first package I suggested. It goes a bit against the idea of adding security measures, if you do so in an unsecure way.
@Sinnbeck Thanks again
@Sinnbeck since my upper hands don't want to upgrade and want a solution with the current version only, I will go with the google 2FA :)
@M@rty If there is a package for google 2fa, im sure it will still work with other authenticators. Link?
@Sinnbeck pls review and also suggest if any https://github.com/antonioribeiro/google2fa/tree/v2.0.0
@M@rty as expected it supports many clients. Check out the list here https://github.com/antonioribeiro/google2fa/tree/v2.0.0#google-authenticator-apps
@Sinnbeck umm well, so we are to go right?
@M@rty Yup. If you use that package, you can use Authy for instance :)
@Sinnbeck Hello again! I have doubts regarding the "Validation window" https://github.com/antonioribeiro/google2fa/tree/v2.0.0#validation-window
Should I just ask here or create a new thread?
@M@rty I assume you have this original question answered, so I would close this one and create a new :)
@Sinnbeck Pls review my issue and guide me further, thanks!
Please or to participate in this conversation.