Login With Google Account Using PHP & MySQL

preview_player
Показать описание
Login With Google Account Using PHP, MySQL, Client API and Bootstrap.

Google Developer Console:

Google API PHP Client:

OAuth 2.0 Scopes for Google APIs:

Source Code:

Hosting I use:

Buy Me a Coffee ;)
Рекомендации по теме
Комментарии
Автор

Thank you so much! I've been through like 8 different tutorials and this is the only one that actually completely functions. On top of that, your step-by-step way of explaining what you are doing/what's going on, as well as giving access to your source code is very very much appreciated. Thanks again so very much!

samdaiber
Автор

This is the only tutorial that uses the session token from Google properly. Simply using an email or ID without the token allows for accessing arbitrary user data via cookie editing. Thank you.

TristanSirrico
Автор

Thank you so much my friend, I have watched 15-16 videos but no one explained better than you. ❤❤

Sunny-Gupta
Автор

Thank you so so much, sir, It is proven worthly for my work. Before coming into your video I saw many videos which so confusable but you give all solutions very simple methods and tech one by one step which is appreciable.

vasusharma
Автор

Best tutorial on Youtube. Hands down, fabulous job!!

jackfolz
Автор

Hello Victor, thanks for this video. I have a question. Do you have the video on how to complement this using the "login" button? the <form> is actually not doing anything here, as we are never entering values there to try to log in with my google account from the form it self. Thanks!

fernandogonzalez
Автор

how can I completely logout? like when I press the login with google button again I will choose the account once more

CozmoGDev
Автор

Thank you very much! It was a very useful tutorial. I was finally able to make Google Sign in to my website. I have a question sir. As I am new to PHP I did not how to make Google sign in on my hosted website. Iuploaded Google API library to my webserver and made Google sign in. It was difficult to do it, since it took long time to upload 30MB file to the server. In web development in commercial websites, when making Google sign in, do you also upload large file to server? Or it is done by other ways? I will be genuinely glad, if you answer me! Thank you!

haksenguz
Автор

Thank you, works great after changing the isset thing. So, if id like to create another page.. with code will check if you are logged in?

amableproduction
Автор

Hey
I was able to complete the video and it worked out very well, I need to run sign in using javascript
if u don't mind can u do the tutorial to sign with google using php, javascript/ajax and mysql, It would be nice.

nikhilshetty
Автор

Multumesc frumos! Super de ajutor pentru un incepator ca si mine. Totusi am o intrebare, daca se poate:
Dupa ce dai logIn with Google, ti se cer credentialele pentru google. Daca nu intri pe google si sa dai logout de acolo, urmatoarea actiune Login with google nu iti mai cere credentialele. Se poate face cumva ca inainte de Login with google sa faca in mod automat logout de pe google pt utilizatorul logat (daca acesta exista) si abia pe urma sa execute login-ul?

balajovidiu
Автор

on 56:37 the error is: you missspelled the second "__contruct"

jhungulle
Автор

At 1:31:35, it shows all the users from the database, when the ID, EMAIL, PASSWORD, SESSION and COOKIE are different for all. I think it should have shown only the user with the current EMAIL-ID that was used to LOG-IN. Please correct me if wrong Sir.

JyotiEntertainmentProduction
Автор

Is logging and signing up with google the same process?

senju
Автор

I'm surprised this doesn't have more views. Also, see if you can invest in better recording equipment. Found it hard to hear you sometimes and I'm using a speakers at that. Otherwise, thanks you for the great tutorial.

senju
Автор

Have you tried it this year and doe sit still work?

senju
Автор

When I use var_dump, information can't show, its directing to Gmail account what should I do? Sorry, I'm a newbie Sir.

jeel
Автор

When I'm running your code and I'm doing login with google its not redirecting me to a new page with the tables. Instead the tables are created in the login page

scaratlas
Автор

i'm getting error sir please solve it
Notice: Trying to access array offset on value of type bool in on line 50
error!

yogesh_madar
Автор

Hi, pleaseeee HELP ME, I am getting an error saying
cURL error 60: SSL certificate problem: unable to get local issuer certificate.
Please help me sort out this .

swatimishra