You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Zxiaozhou Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it).
Please see OAuth2TokenCustomizer as it allows you to add custom claims in the Jwt, e.g. resource_id.
You can store the resource_id's for each client in RegisteredClient.clientSettings.
jgrandja
changed the title
Spring Authorization server - limit a client to a specific resource server
Limit a client to a specific resource server
Jan 4, 2023
Expected Behavior
@OverRide
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
ClientDetailsServiceBuilder.ClientBuilder clientBuilder = clients
.inMemory()
.withClient("client1")
.resourceIds("resourceServer1")
...
Context
The text was updated successfully, but these errors were encountered: