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

getClaims() for requested scopes only #22

Closed
alecpl opened this issue Aug 27, 2024 · 0 comments · Fixed by #27
Closed

getClaims() for requested scopes only #22

alecpl opened this issue Aug 27, 2024 · 0 comments · Fixed by #27

Comments

@alecpl
Copy link
Contributor

alecpl commented Aug 27, 2024

I'm using some custom claims that may take some time to get.

If I get your code right getClaims() is expected to return all possible claims, but I'd like to return only those requested by current token scopes. Different access tokens have different set of scopes.

Is there a way I can get the requested scopes from inside my getClaims() implementation? If not, I suggest to pass the list of requested scopes to this method.

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

Successfully merging a pull request may close this issue.

1 participant