ch4mpy / spring-addons

Ease spring OAuth2 resource-servers configuration and testing
Apache License 2.0
521 stars 84 forks source link

Support several JWT authentication converters (or converters with a `@Qualifier` which is not `jwtAuthenticationConverter`) #181

Open ch4mpy opened 6 months ago

ch4mpy commented 6 months ago

Is your feature request related to a problem? Please describe. When using several authentication converters (or just one with for instance @Qualifier("defaultJwtAuthenticationConverter")), spring-addons-starter-oidc and spring-addons-starter-oidc-test get lost

Describe the solution you'd like spring-addons-starter-oidc should document clearly which JWT authentication converter bean is injected in the auto-configured resourceServerSecurityFilterChain.

spring-addons-starter-oidc-test should give the possibility to choose which of the available JWT authentication converter to use with @WithJwt and @WithMockJwtAuth

Additional context https://github.com/ch4mpy/spring-addons/discussions/180