OAuth consent screen not showing permissions

1.4k Views Asked by At

I have a google login in my app when I try to click on sign in with google I do not see the permission it needs to access My app uses users contacts and so I have added it to scope in consent screen settings but it do not show any permission. Can someone help me if there is anything else that needs to be configured as I need to verify my app from google

I want permission to display like this(sample image)

enter image description here Scopes that I am using

enter image description here this is the api enter image description here

1

There are 1 best solutions below

0
On

Lets use the Google Oauth Playground to test a little.

test 1 requesting authorization to Oauth2 scopes.

I am going to select Google contacts really there is not much point in selecting this one using google People api is a much better choice.

enter image description here

And everything under Google People API

enter image description here

This is the consent screen shown me

enter image description here

test two authenticating with open id connect

I am going to only request

enter image description here

Now profile and email are special they are related to Open Id connect, which is out side of the Oauth2 because of that i was not actually shown a consent screen. Because i am Authenticating to Google that this is me logging in.

I am not Authorizing any Oauth2 scopes because none were really requested. Now this make confuse you because by requesting profile you are automatically given access to the users profile data which means that you can access the Google people api and do people/me and get the information about the person.

conclusion

Only Oauth2 scopes appear to the user requesting access. not open id scopes.