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

[Question] Does scope restriction apply with JWT policy ? #961

Closed
claustres opened this issue Oct 24, 2019 · 1 comment
Closed

[Question] Does scope restriction apply with JWT policy ? #961

claustres opened this issue Oct 24, 2019 · 1 comment

Comments

@claustres
Copy link

claustres commented Oct 24, 2019

According to the docs it seems that scope restriction should apply when using a controlled modality but we are not able to make it work. The controlled modality seems to be correctly enabled because if we issue a token with an invalid credential key in sub the request is rejected. However the scope restriction does not seem to apply when the token is valid because we always get access to all API endpoints, whatever the scopes defined on the target credential.

It seems that there are similar issues like #740 & #684 but all refering to the OAuth2 use case. We don't use OAuth2 but simply the JWT policy to check a token issued by another application so we are not sure if related.

@XVincentX
Copy link
Member

I believe you're hitting exactly the same issue unfortunately. Closing in favour of these two.

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

2 participants