开发者

Google single signon?

开发者 https://www.devze.com 2022-12-23 14:21 出处:网络
Facebook has linked accounts, where facebook logs you into facebook everytime you are logged in with your google account.

Facebook has linked accounts, where facebook logs you into facebook everytime you are logged in with your google account.

So if you're logged in into gmail then visit facebook.com, facebook will automatically log you in!

How do you do this for your own开发者_开发百科 domain so that when a user visits your website it logs you in into your domain? (Does facebook use google open id for this? If not, what does it use?)


You probably want to look into Open ID technology. Google also offers a single-sign on API that you should look into.


That is a rather open-ended question. Here are some links to get you started:

  • Wikipedia - Single sign-on
  • Build and implement a single sign-on solution
  • SAML Single Sign-On (SSO) Service for Google Apps


It looks like Google has an API that you can use for openid.


One of the lesser-used features of OpenID is the command to return immediately. Facebook directs you to the Google OpenID login page, with the "reply immediate" command set. This means that Google immediately replies with either your login credentials (just like a normal OpenID login) or with nothing (unlike a normal OpenID login, which would leave you looking at the Google login screen). In that case, Facebook present you with their own login screen.

Facebook do this with a couple of major OpenID providers and thereby claim to have implemented OpenID login.

I picked this up in various reading of various blogs, and wrote it off the top of my head. A quick Google search finds this page, which has some information on the topic: http://openidforum.com/index.php?topic=3.

0

精彩评论

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

关注公众号