开发者

How to authenticate our users in our website with Google Account

How to authenticate a user using google account in our website. i want a user to be redirect to googl开发者_C百科e login page and then redirect him to my website. I want this implementation in PHP.


You want OAuth.

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


Authentication can be done using OpenID. A detailed document is there in Google http://code.google.com/apis/accounts/docs/OpenID.html

Update: The links have been deprecated by Google. Refer to the following links to use Google's own OAuth2 API documentation instead of bothering so much into reading the libraries because they are very complicated and may end up losing focus.


Google Data API can help you to achieve this.

Go to: http://code.google.com/apis/base/client-download.html

and grab the php apis. you will get samples over there as well

I hope this will help you


the documentation at google kinsda looks to much to read to understand you can also consider the following blogs .in my opinion i think they have simplifed the explanation

  1. w3lessons
  2. 9lessons
  3. jobby joseph

hope you read through this blogs ,am sure you'll get the insight you are looking for

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜