Can I use Google OAuth without a plus?

I have a working php code that allows users to log in to Google Api.

The problem is that this code requires users to become Google Plus users.

I use the latest api located at http://code.google.com/p/google-api-php-client/downloads/list and still have not been able to find out if I can use the same service for people who do They donโ€™t have and donโ€™t want to activate Google Plus.

update . I understand that this may be a third-party api question, and I also think that this is a question about the popular third-party api and this question, and the answers to it can help many people to eat.

answer to the question : for quick reference answer: * Google_Oauth2Service class *

+6
source share
2 answers

You can use Google OAuth as a user authentication mechanism without requiring these Google users to activate Google+ accounts. See Using OAuth 2.0 to Log In . This approach is based on querying the user ID using the userinfo.profile or userinfo.email OAuth userinfo.email .

You get enhanced functionality and social features if you use Google+ login , and if your users choose this option, they will be asked to upgrade their Google account. This approach uses the plus.login OAuth area, which receives your identification information in addition to others API methods that may be called.

The choice of approach that works for your application and audience is up to you.

+7
source

As of June 2015, you should use the Google + API to configure login (other methods were deprecated). A.

If you want your user to log in without a google + account, you need to specify " profile " instead of " https://www.googleapis.com/auth/plus.login " as the scope described here

+3
source

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


All Articles