-
Notifications
You must be signed in to change notification settings - Fork 6k
Allow for custom rest template #8588
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
Conversation
Reference to issue #5607 |
@Budlee, thanks for taking some time to think this through. Making This is still an open discussion, but the options I can see are: ReactiveJwtDecoders#fromIssuerLocation(String issuer, RestTemplate rest) or providing a new class that implements public class IssuerReactiveJwtDecoderFactory implements ... {
private final RestTemplate rest;
@Override
public ReactiveJwtDecoder createDecoder(String issuer) {
// ...
}
public void setRestTemplate(RestTemplate rest) {
// ...
}
} with equivalents needed for imperative. Either way, I think that the Utils class may still move around a bit, so I'd prefer to keep that package-private as it is. AFAICT, it's not necessary to expose it. As far as multi-tenancy, I think that your proposal doesn't yet address the use case you raised for having a different RestTemplate per issuer. To have something that sophisticated, I think you'd still need to supply your own Even still, it may be valuable to expose something like a |
Another option might be to allow the user to use |
@Budlee I'm going to spend some time this week to figure out a solution. This one is a bit tricky as there are quite a few touch points in the code and a couple of special use cases. |
@Budlee The original design intent for After reviewing your PR, we do not want to expose I'm going to close this PR based on the above reasoning. |
No description provided.