You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But then, on runtime, we want to request additional scopes that are needed for some specific piece of functionality, e.g. https://www.googleapis.com/auth/directory.readonly - is there a way to do it with this library? I want to redirect a user to the auth provider that will ask for the right permissions and send us back to the app with (potentially) a new token that has the correct scopes.
This functionality does not seem to be described anywhere in the docs.
Many thanks in advance for any help!
The text was updated successfully, but these errors were encountered:
Google OAuth recommends using Incremental Authorization https://developers.google.com/identity/protocols/oauth2/javascript-implicit-flow#incrementalAuth in order to request additional scopes only on demand, but not at the very start of the auth flow.
So, let's say that when we bootstrap the application, we configure our
oauthService
as following:But then, on runtime, we want to request additional scopes that are needed for some specific piece of functionality, e.g.
https://www.googleapis.com/auth/directory.readonly
- is there a way to do it with this library? I want to redirect a user to the auth provider that will ask for the right permissions and send us back to the app with (potentially) a new token that has the correct scopes.This functionality does not seem to be described anywhere in the docs.
Many thanks in advance for any help!
The text was updated successfully, but these errors were encountered: