-
Notifications
You must be signed in to change notification settings - Fork 6k
Opaque Token Support for Custom Parameters #6798
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
Hi @jzheaux, I would like to work on this issue. |
@sayembd, it's yours! |
@sayembd how is this coming along? Do you have any questions? |
@jzheaux I was familiarising myself with the relevant part of the code base as I was totally unfamiliar with it, and also the way converters are plugged in via configuration. Apologies for the delay. If I haven't misunderstood anything from my investigation (after studying the
Would be great if you could confirm. I was also curious to know why this setter wasn't on the interface itself (i.e., on |
Correct on all points, @sayembd. Thanks for all your research.
Good question. It's not necessarily true that all implementations will be |
Added support for providing custom parameters to an OAuth 2.0 token introspection request. This is done by explicitly instantiating a NimbusOAuth2TokenIntrospectionClient instance and then setting a custom Converter implementation. Fixes spring-projectsgh-6798
Placed URI.create in constructor so that the code doesn't do that processing on each request. Also moved the construction helper methods up by the constructor for added readability. Issue: gh-6798
Opaque Token Resource Server simplifies authorizing a Bearer Token request against an OAuth 2.0
/introspect
endpoint.However, it only sends the
token
request attribute, with no way to add custom parameters to the request.It would be nice if the application could easily pass other parameters to the
/introspect
endpoint.Note that this ticket is restricted to custom parameters that don't come from the original Bearer token request itself. For example, this ticket isn't trying to solve how to take a custom header or other aspect of the Bearer token request and pass that to
/introspect
. The reason is that that problem is trickier to solve and it will likely be better to address at another time.One way to solve this would be to add a setter that takes a
Converter<String, RequestEntity<?>>
. The application could specify in thisConverter
what additional custom parameters are necessary.The text was updated successfully, but these errors were encountered: