Pass additional REQUIRED scopes/permissions to a Social Connection

I understood that we can pass additional scope like this:

https://{your_auth0_domain}/authorize?[…]
&connection=google-oauth2
&connection_scope=https://www.googleapis.com/auth/gmail.readonly

However, the checkbox seems to be unticked, and not a required permission:

Is there anyway to make it required, or at least ticked by default?

Hi @jayden , welcome to the community!

This looks to be due to how the Google API handles scopes and not something that can be controlled from the Auth0 side I’m afraid, but this stack overflow thread has a potential workaround by requesting more permissions after the initial sign in:

You can fetch the upstream IdP’s (Google) access tokens that were returned using the Management API if needed:

You may be better off reaching out to Google’s support if you are still having issues with their consent screen.

2 Likes

Thanks for helping on this one Steve!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.