I want to customize authenticationConverter of SpringOpaqueTokenIntrospector, currently I need to redefine my own bean to back off Spring Boot's auto-configured one, it would be nice if I can customize the auto-configured one.
I'd like to contribute if the proposal is accepted.
|
SpringOpaqueTokenIntrospector opaqueTokenIntrospector(OAuth2ResourceServerProperties properties) { |
|
OAuth2ResourceServerProperties.Opaquetoken opaquetoken = properties.getOpaquetoken(); |
|
String introspectionUri = opaquetoken.getIntrospectionUri(); |
|
Assert.state(introspectionUri != null, "'introspectionUri' must not be null"); |
|
String clientId = opaquetoken.getClientId(); |
|
Assert.state(clientId != null, "'clientId' must not be null"); |
|
String clientSecret = opaquetoken.getClientSecret(); |
|
Assert.state(clientSecret != null, "'clientSecret' must not be null"); |
|
return SpringOpaqueTokenIntrospector.withIntrospectionUri(introspectionUri) |
|
.clientId(clientId) |
|
.clientSecret(clientSecret) |
|
.build(); |
|
} |
I want to customize
authenticationConverterofSpringOpaqueTokenIntrospector, currently I need to redefine my own bean to back off Spring Boot's auto-configured one, it would be nice if I can customize the auto-configured one.I'd like to contribute if the proposal is accepted.
spring-boot/module/spring-boot-security-oauth2-resource-server/src/main/java/org/springframework/boot/security/oauth2/server/resource/autoconfigure/servlet/OAuth2ResourceServerOpaqueTokenConfiguration.java
Lines 50 to 62 in 450eb48