Describe the bug
We can't use @WithJwt if the configuration does not expose an authentication converter bean
Code sample
Considering an app with spring-boot-starter-web, spring-boot-starter-oauth2-resource-server, spring-addons-oauth2-test and this minimal configuration:
Any test attempting to use @WithJwt will crash because no authentication converter bean can be found
Expected behavior
Test framework should use the same default as Spring Boot and use a new JwtAuthenticationConverter() if no authentication converter could be found from the context.
Describe the bug We can't use
@WithJwt
if the configuration does not expose an authentication converter beanCode sample Considering an app with
spring-boot-starter-web
,spring-boot-starter-oauth2-resource-server
,spring-addons-oauth2-test
and this minimal configuration:Any test attempting to use
@WithJwt
will crash because no authentication converter bean can be foundExpected behavior Test framework should use the same default as Spring Boot and use a
new JwtAuthenticationConverter()
if no authentication converter could be found from the context.Additional context This is a follow-up of https://github.com/ch4mpy/spring-addons/discussions/158