How to authenticate our users on our website with a Google account

How to authenticate a user using a google account on our website. I want the user to be redirected to the Google login page and then redirected to my site. I want this implementation in PHP.

+3
source share
4 answers

Authentication can be performed using OpenID. A detailed document is available at Google http://code.google.com/apis/accounts/docs/OpenID.html

Update: Links are deprecated by Google. Refer to the following links to use the Google OAuth2 API native documentation instead of worrying so much about reading libraries, because they are very complex and can lose focus.

+2
source

You want OAuth .

oauth-php is a library that will help with this in PHP.

+4
source

google kinsda , , . , , .

hope you read these blogs, i'm sure you will get the understanding you are looking for

0
source

Source: https://habr.com/ru/post/1775357/


All Articles