Create a website to login in with Gmail, Yahoo, or Facebook accounts

后端 未结 3 2569
青春惊慌失措
青春惊慌失措 2020-12-05 05:02

How does Stack Overflow allow new users to login into Stack Overflow using their Gmail or Facebook or Yahoo accounts? I am working on a little project website and I was curi

相关标签:
3条回答
  • 2020-12-05 05:16

    StackOverflow (and all other StackExchange sites) use OpenID.

    OpenID is a decentralized authentication protocol that makes it easy for people to sign up and access web accounts.

    Yahoo, Google and facebook are all OpenID providers, so simply implementing it on your site will be enough for your users to be able to login using them (and any other OpenID provider).

    There is no need to get permission - the permission will be gotten by the users of your application.

    0 讨论(0)
  • 2020-12-05 05:20

    You can "just do it" using OpenId. That's what StackOverflow uses.

    0 讨论(0)
  • 2020-12-05 05:32

    There are libraries available for Java Python, PHP, and others. Google authentication has been tested against the OpenID for Java library; see also libraries at OpenID Enabled. A comprehensive list of libraries is available on the OpenID site. For developers using OpenID for Java, this quick-start guide covers how to set up as an OpenID relying party. You may also use an implementation provided by a third-party such as JanRain

    0 讨论(0)
提交回复
热议问题