-
Notifications
You must be signed in to change notification settings - Fork 368
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
scope in access token is not space delimited #362
Comments
An OIDC related spec lists the scope as |
Thanks for the quick response. |
Was it maybe this document? Because that is just a draft. In final standard, I think the source of this is this PR and comment, see also this comment. So, this was all based on a draft and now standard is different and this should be fixed. |
I don't think we will "fix" the current |
But it will be failing closed. So this should not open any access. So decide what should be here. Current
Which one? I can try to make a PR, but should know which approach you want.
So Is there any other spec which uses |
No, adding Adding |
No, it is just fosite/token/jwt/claims_jwt.go Lines 104 to 106 in 4e4121b
|
Can we also make a configuration option to not add |
We could also just make the scope key configurable |
I mean, the value of scope key is different based on the name. :-) So I propose configuration option which is enum to select between |
True, but also different per specification ;) But let's go with a simple solution first, I think the enum sounds good! Hm, maybe a |
Closes #362 Co-authored-by: hackerman <[email protected]>
Scope is hard corded as "scp" in access token, and its format is not space delimited string but a string list.
Although scope name and format in access token is not defined in jwt token standard (https://tools.ietf.org/html/rfc7519#page-9), scope in oauth2 request/response is defined as space delimited string (https://tools.ietf.org/html/rfc6749#section-3.3).
Can we expose functions to customize the name and format of scope in access token?
The text was updated successfully, but these errors were encountered: