I have this line of code:
http.oauth2ResourceServer(server -> server.jwt().jwtAuthenticationConverter(jwtAuthenticationConverter()));
with
@Bean
public JwtAuthenticationConverter jwtAuthenticationConverter() {
...
}
jwt() is deprecated and I'm tried to use jwt(JwtConfigurer)
. How does that work? How to register my AuthenticationConverter with that function?
Thanks!
http
.oauth2ResourceServer(configurer ->
configurer.jwt(
jwtConfigurer -> jwtConfigurer.jwtAuthenticationConverter(jwtAuthenticationConverter())
)
)