Support for setting different 'jwk-set-uri's for each JWT in OAuth 2.0 Resource Server Multi-tenancy #14680
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Expected Behavior
Support for configuring multiple jwk-set-uri's in the Spring configuration file like so:
Currently there is a workaround posted by jzheaux here. It looks like this:
However, this solution will soon stop working because it is deprecated is likely to be removed in 3.3.x

I noticed more people are seeking this functionality. In a complex enterprise microarchitecture environment, it is likely to receive traffic from multiple sources. These microservices often expose /jwks endpoints that the receiving party should fetch. This means Spring Security should be able to fetch multiple jwks uri's.
Can we have this enhancement implemented or can we get a workaround that will work with Spring Boot 3.3.x?
The text was updated successfully, but these errors were encountered: