Implementing Google Authenticator Time-Based Authorization in PHP

  Рет қаралды 31,197

myPHPnotes

myPHPnotes

Күн бұрын

Пікірлер: 53
@nixnix99
@nixnix99 6 жыл бұрын
Thank you very much! I now have this integrated on my site :)
@myPHPnotes
@myPHPnotes 6 жыл бұрын
+nixnix99 Our Pleasure.
@naqashiqbal5150
@naqashiqbal5150 5 жыл бұрын
Do you have a video on the authenticator class containing the methods? Thanks
@frecciaservizipostali4642
@frecciaservizipostali4642 Жыл бұрын
HI, I used your tutorial to insert google authenticator , but I have a couple of problems : 1- it doesn't recognize the codes generated by the app to log in from safari and opera 2 - on edge it's fine if I don't nail the pages, as I open a new page it doesn't recognize me anymore the codes, and I have to scan a new qrcode google authenticator. please help me to solve .
@mpavkovic
@mpavkovic 2 жыл бұрын
How many times can you apply with the same qrcod, after how many did you apply for the change?
@ericl.6875
@ericl.6875 4 жыл бұрын
Thank you! But if I change the "myPHPnotes" to "MyApp", then it will give me invalid QR code. Why is that?
@ericl.6875
@ericl.6875 4 жыл бұрын
Never mind, the problem was I had a space in that string that I used.
@orlandoubilla7055
@orlandoubilla7055 4 жыл бұрын
Old codes still working forever, lol ... :(
@amanda2348-g9j
@amanda2348-g9j 6 жыл бұрын
how to download libraries authenticator.php from mainstream sources
@bhoopendrafagna8535
@bhoopendrafagna8535 Жыл бұрын
$_sesion variable is conflict with my $_session variable can i change this
@ericl.6875
@ericl.6875 4 жыл бұрын
I noticed this won't work if I switch to different browser, or different device. Am I right?
@camotobe
@camotobe 5 жыл бұрын
But if I understand it well I need to store $secret to the database. QR code is generated once to scan it to the mobile app. Then I need the $secret to verify() the code while every login. Am I right? But how to store the $secret in db in secure way?
@ValterBrazzini
@ValterBrazzini 5 жыл бұрын
Thanks for this guide !!! great tool !!! i will use it !!
@pragyanayak246882
@pragyanayak246882 6 жыл бұрын
This code is working even if we are writing old generated code, the old code is expired it should not work on expired code
@myPHPnotes
@myPHPnotes 6 жыл бұрын
It should not. The script makes some margin for some seconds. You can make sure that it is intact at Authenticator.php's VerifyCode()
@kaystubbs6069
@kaystubbs6069 6 жыл бұрын
Like the beat in the background whats the title
@myPHPnotes
@myPHPnotes 6 жыл бұрын
Drake by Boss Beats: kzbin.info/www/bejne/iKrdmIF7iJiKpNU
@tieworldservidor2139
@tieworldservidor2139 4 жыл бұрын
The valid code don't run in localhost?
@melluh
@melluh 7 жыл бұрын
What is the music name?
@myPHPnotes
@myPHPnotes 6 жыл бұрын
Drake by Boss Beats: kzbin.info/www/bejne/iKrdmIF7iJiKpNU
@overlord--
@overlord-- 6 жыл бұрын
How do you make this work with if someone were to register an account myPHPnotes? My website will ask for you to set up 2fa to your account. How would that go? Maybe a tutorial?
@myPHPnotes
@myPHPnotes 5 жыл бұрын
I am thinking of building a series on SSO using Laravel covering almost all kind of authorization techniques. Hope that will cover it all.
@adeyemiadeshina3988
@adeyemiadeshina3988 2 жыл бұрын
How do I get the authenticate.php file?
@AaronBregg
@AaronBregg 5 жыл бұрын
Great video Adnan and thanks for sharing. I am trying to run your code on my site so I can see how it would. Everything is running so far but when it pulls up the Google Authenticator apps it asks if I want to accept the myphpnotes token. Where do you change the code so I can have it say my web domain?
@AaronBregg
@AaronBregg 5 жыл бұрын
Nevermind I figured out that you need to change the data in the $qrCodeUrl variable. Thanks again for this neat tool!
@mdarifhassan9064
@mdarifhassan9064 4 жыл бұрын
@@AaronBregg can you explain please....
@AaronBregg
@AaronBregg 4 жыл бұрын
@@mdarifhassan9064 In the PHP code look for that variable. Rename it to whatever you want the code to show up 'as' in Google Authenticator.
@alvarodavidhernandezameson2480
@alvarodavidhernandezameson2480 Жыл бұрын
excellent work tenno home back
@deepgratitude5924
@deepgratitude5924 5 жыл бұрын
I'm a little confused. So it does stop someone like a hacker from entering the wrong code, but what if they just scanned the barcode, would they be able to get the code even though it's registered on your phone? Sorry I'm a little confused.
@deepgratitude5924
@deepgratitude5924 5 жыл бұрын
Yeah I got this working on my site. It's making me scan a new QR code every time I log on. If a hacker breached my first log in, couldnt they just scan that QR code and get themselves on? Im wondering if I've done something wrong. I dont want to have to keep scanning a new QR code.
@Vaheen
@Vaheen 5 жыл бұрын
@@deepgratitude5924 no, you seem to be the only other person that also gets that this is nothing like google's 2FA ... anyone with any phone can get into these sites
@deepgratitude5924
@deepgratitude5924 5 жыл бұрын
@@Vaheen You can fix it. encrpt your key in a database, thats what I did, then instead of generating a new one, just use the one from the DB. Make it so the QR code does not pop up and you are golden. I got it completely implemented.
@myPHPnotes
@myPHPnotes 5 жыл бұрын
Yes. Sorry for being at the party. The secret we generated at 1:55 will only be generated once on registration then verified (16:58) to ensure that user has installed the appropriate app for logging in in future and then save the secret in the database along with user's password. After that every time the user tries to log in, he will get QR code in accordance to the secret you had pushed in the database. I am thinking of building a series on SSO using Laravel covering almost all kind of authorization techniques.
@deepgratitude5924
@deepgratitude5924 5 жыл бұрын
I don't think that generating a QR code every time is a good idea. @@myPHPnotes
@DilpreetSingh-eh5kw
@DilpreetSingh-eh5kw 5 жыл бұрын
how to run this code on local machine ?
@Richestbot
@Richestbot 5 жыл бұрын
really thank that was really best and fast guide . Thank you very much! now i used this my site . like you unlimite
@sepeenusi9382
@sepeenusi9382 6 жыл бұрын
check.php code is not working !! please help
@myPHPnotes
@myPHPnotes 6 жыл бұрын
sepe enusi Is the demo at authenticator.myphpnotes.com is working for you?
@sepeenusi9382
@sepeenusi9382 6 жыл бұрын
yes this works
@sepeenusi9382
@sepeenusi9382 6 жыл бұрын
but with the check.php is not !! so can you tell me how to fix it !?
@myPHPnotes
@myPHPnotes 6 жыл бұрын
+sepe enusi Try RAW source code again.
@sepeenusi9382
@sepeenusi9382 6 жыл бұрын
thank you so much
@ariefamarullah585
@ariefamarullah585 6 жыл бұрын
Can't Access the Source Code problem DNS_PROBE_FINISHED_NXDOMAIN . Please help :D
@myPHPnotes
@myPHPnotes 6 жыл бұрын
Aaa... We are doing some up-gradation on the server end. That's why the server may be temporarily down. If you need any resources, you can mail me at adnanhussainturki@gmail.com.
@projer
@projer 5 жыл бұрын
THANKS BRO
@zxcvbnm4026
@zxcvbnm4026 6 жыл бұрын
Why I can't download the source code?
@myPHPnotes
@myPHPnotes 6 жыл бұрын
What problem you are facing?
@AlexLucard
@AlexLucard 4 жыл бұрын
If it shows you the QR code each time you log in and all you have to do is scan with Google Authenticator to get a number what's the stop somebody just to keep scanning it to get a number like I say stupidest thing I've ever seen
@myPHPnotes
@myPHPnotes 4 жыл бұрын
You need to step up to understand the thing, Alex. Please try.
@starkingize
@starkingize 5 жыл бұрын
thanks
Google Authenticator Implementation with PHP
18:49
Interactive Utopia
Рет қаралды 13 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 175 МЛН
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 6 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2,2 МЛН
Two Factor Authentication using Google Authenticator in PHP
15:06
learnWebCoding
Рет қаралды 62 М.
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 192 М.
PHP For Beginners, Ep 15 - Make a PHP Router
18:03
Laracasts
Рет қаралды 60 М.
The Basics of Computing Security: Linux & SQL | Google Cybersecurity Certificate
1:54:38
Google Career Certificates
Рет қаралды 179 М.
Introducing 2FA with Google Authenticator and Node.js
8:13
Two Factor Authentication | Node.js & Speakeasy
24:59
Traversy Media
Рет қаралды 82 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 175 МЛН