Closed
Description
It's quite convenient to be able to expose JwtDecoder
or ReactiveJwtDecoder
as a bean and have Spring Security's OAuth 2.0 Resource Server pick it up.
It would be nice to be able to do the same with JwtAuthenticationConverter
:
@Bean
JwtAuthenticationConverter jwtAuthenticationConverter() {
JwtAuthenticationConverter converter = new JwtAuthenticationConverter();
converter.setJwtGrantedAuthoritiesConverter(...);
return converter;
}