When calling the auth0 endpoint, the scope includes cloud storage read write: email profile https://www.googleapis.com/auth/devstorage.read_write https://www.googleapis.com/auth/userinfo.email openid https://www.googleapis.com/auth/userinfo.profile
While I’m not super familiar with the Google side of things, the scopes mentioned in the error message seem to be entirely different scopes than what are available on the Google social connection in Auth0. It looks like they are:
Thanks for the welcome and fast reply! Their docs list https://www.googleapis.com/auth/devstorage.read_write as a BigQuery option OAuth 2.0 Scopes for Google APIs | Authorization | Google Developers and the error message says it needs BigQuery or Cloud Platform read scope, and that should cover both cases?
I have not been able to find clarity on minimum required scopes, I was just assuming what auth0 would send would be enough.
If that is not the case, do you (or others!) know of a way with the react web library (auth0/auth0-react) to send particular scopes only when authing through google single sign on? We will only want to request Big Query scope if they are using google accounts.
Edit: sorry to be clear, https://www.googleapis.com/auth/devstorage.read_write is sent as well when you check the checkbox Google Cloud Storage in auth0 google social connection page