Sign in to Google: How to Set Requested Permissions

I would like to learn how to configure the application engine application to request user permissions. The example below suggests "manage applications deployed on the Google App Engine." How did they get it out?

screenshot from cloudbees signup

+6
source share
1 answer

Overview:

The method that the application uses to log in is OAuth. What is displayed in this field is controlled by the area.

OAuth scopes aim to access authenticated user information. The areas differ for each application and determine what information about the user gives the user access.

You can check the following resources:

OAuth Wikipedia is not so good, but may be useful depending on your understanding.

In general, the documentation for each API that you intend to use will have information about which areas are available and which should be used.


In detail:

Specifically, an OAuth request with a scope parameter as

https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile

will show the user a request similar to the following at login:

 + View basic information about your account * View your name, public profile URL, and photo * View your gender and birthdate * View your country, language, and timezone + View your email address * View the email address associated with your account 

So far, only https://www.googleapis.com/auth/userinfo.email will show something like:

 + View your email address * View the email address associated with your account 

You can customize the scope depending on what information you want from the user.

+4
source

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


All Articles