-
Basically the title. |
Beta Was this translation helpful? Give feedback.
Answered by
ch4mpy
Dec 3, 2023
Replies: 1 comment 4 replies
-
What does your security configuration look like (dependencies, properties & Java code)? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you. This confirms you are testing components within a resource server with JWT decoder and that
@WithJwt
is actually what is adapted to your case.I hadn't noticed that the default authentication converter is not exposed as a bean: it is just instantiated by the
OAuth2ResourceServerConfigurer.JwtConfigurer
if noJwtAuthenticationConverter
bean is found in the context (I thought so far that there was a@CondionalOnMissingBean JwtAuthenticationConverter
). I will open a bug to fix that and use aJwtAuthenticationConverter
instance if noConverter<Jwt, ? extends AbstractAuthenticationToken>
is found in the test context.What you can do until I release a new version is, in your security…