Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google OAuth - Implicit Flow - Incremental Authorization - can this library do it? #1444

Open
mmanista-bynd opened this issue Oct 11, 2024 · 0 comments

Comments

@mmanista-bynd
Copy link

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:

this.oauthService.configure({
      ...
      scope: 'openid email profile',
    });

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant