Google Data API: authenticate OAuth URL instead of URL authorization?

I am accessing the Google Contacts API using OAuth.

In the docs, I see that I have an authorization URL (https://www.google.com/accounts/OAuthAuthorizeToken) used to get the access token, but not for the authentication URL, but other services that implement the use of OAuth to automatically redirect the user to my site when he previously gave me permission to access his data.

Linkedin does it

Twitter does it

But I could not find a way to do this using the Google APIs.

Does anyone know if he is there? Thanks

+4
source share
1 answer

Google uses the same URL for authentication and authorization, so just redirect your users to the authorization URL with the appropriate parameters in the query string. Google then determines whether the user needs to log in, allow your application, or both.

The stream will look something like this:

+1
source

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


All Articles