-
Notifications
You must be signed in to change notification settings - Fork 352
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
User scopes do not get propagated to the returned JWT provided by EG #740
Comments
Hey Vincent, do you have an estimate of when this going to be resolved? |
We'll try to work on it during our next sprint — although unfortunately I had to abandon the current for personal problems. This might require some time to get it done though. In case it's really a killer feature — we have paid support that would definitely prioritize this. |
Needs #758 |
I assigned scope to JWT credential but EG did NOT check it (alway skip scope check) ========In gateway.config ======== ip: ... ip:
======== Credential info ======== ========scope from apiEndpoint is deference to scope assigned to user but still success ======== $ curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIza2R1ME94d3Z0UHY2Q3NVRE8zTDZiIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.rrF6QdaC10ya98ppwuykbO5xxyLbVcznvi2en8-STwM" http://172.17.0.1:30001/ip |
I fixed by add jwtScopes policy |
I'm looking for a place to comment on this for a while, I hope this is relevant: The sub claim inside the jwt returned from an auth server should be the unique user id of the authenticated user. From what I saw, eg is returning a hardcoded sub for all requests. was this intended? |
@nirradi I need you to elaborate a little bit more. Can you make an example? |
I wanted to create a jwt token as a response to. cliean credential grant
request.
I saw this part of the docs
https://www.express-gateway.io/docs/configuration/system.config.yml/accessTokens/
and like I expected it didnt return an opaque token anymore, instead it
returned a properly signed jwt but the sub was exactly what i had written
in system.config.yaml
If I understand correctly, the idea is to return a non opaque token that
has information about the user like sub:clientId, and not a hard coded
value from the config
what am I missing?
Thanks.
…On Thu, Oct 25, 2018, 18:21 Vincenzo Chianese ***@***.***> wrote:
@nirradi <https://github.com/nirradi> I need you to elaborate a little
bit more. Can you make an example?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#740 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AdtdKNvRikTa3TO9YtlgnLU3sdSCLzsWks5uodb9gaJpZM4UQTmL>
.
|
could you share a bit more on how to install the jwtScopes plugin and enable it. |
Any information when / if this is going to be fixed? Is this repo still being worked on? @XVincentX |
The scopes assigned to an user credential (basic-auth, for example) do not get propagated back to the issued JWT for the user.
Somehow related to #608
The text was updated successfully, but these errors were encountered: