-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add JWK Set Endpoint #2
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
Comments
Hello @jzheaux . If it's ok with you I'll try to implement this part. |
Thanks for the offer @ovidiupopa91. Please go ahead and let us know if you have any questions. |
It seems its already there #27 . Apologies for creating the confusion if any. |
As @jbellmann already created a PR for this issue, I will stop working on it. cc: @jgrandja |
@ovidiupopa91 do you work now for spring? ;) |
@ahoehma In my spare time :) |
Apologies for this @ovidiupopa91. See comment. I'm in the process of creating issues for the next set of tasks so there will be plenty of work in the backlog to choose from. Please keep an eye out on the new issues coming up this week and let me know which one you would like to take on. |
@jgrandja no problem. Looking forward to the next set of tasks. |
@jgrandja I do not really get the point why this has to be implemented as a filter rather than a Controller (which usually is used for an HTTP endpoint)? A JWKS endpoint should be publicly available to resource servers so there is no need for spring security to secure anything here? |
@andifalk check the discussion in issue #3 and specifically this comment from @jgrandja #3 (comment) |
@anzap Ok, I was not aware of this discussion. It is very difficult to follow such important general discussions that happen in different unrelated github issues. So far I did not know that this project is targeted to implement a framework for implementing custom auth servers. Then I am fine with that filter approach. |
It would be quite useful to support an endpoint that would issue a JWK Set. Resource servers could retrieve this JWK Set for the purpose of validating JWTs.
For this task, we will avoid providing any of our own abstractions. The result should have a Filter that works directly with Nimbus to produce an response that looks something like:
The keys that are used can be generated at startup or be constants. The Filter might look something like this:
A
Filter
is a good candidate since this will play nicely with Spring Security down the road. The constructor may change in the future as other abstraction layers become clearer.We should then have a test that asserts the endpoint works properly.
The text was updated successfully, but these errors were encountered: