Difference between Google “OpenID Connect” and “sign-in with Google”?

后端 未结 1 1503
醉梦人生
醉梦人生 2021-02-07 12:55

I want users to my website to use Google Accounts to authenticate / sign in to my website. The primary use case being users will edit and generate content and

1条回答
  •  [愿得一人]
    2021-02-07 13:47

    A comparison of the two is available here.

    Google+ Sign-In with profile scope

    • Has Google client libraries for authenticating with OAuth 2.0, which includes support for Google+ and other Google services (like getting social information on a user). Also this can make implementing easier and requires less boiler plate code
    • Has the Google+ Sign-In button to simplify sign-in Has no pre-built widgets
    • Supports over-the-air Android installs

    OAuth login is primarily just for authentication at a lower level, that is by making raw HTTP requests, no API.

    OpenID Connect protocols (OAuth 2.0 login) Google+ Sign-In supports OIDC interoperability if you configure with the openid scope and get the user profile using getOpenIdConnect.

    OAuth 2.0 login supports OIDC directly. Use it for signing in users to apps that do not need social features and run on platforms not supported by Google+ Sign-In.

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