Closed erdemcanturk closed 1 year ago
Can you be more specific (provide the code you're working on)?
I don't see any jwt
parameter in http.oauth2ResourceServer().jwt().jwtAuthenticationConverter(authenticationConverter);
:
jwt()
is a method on OAuth2ResourceServerConfigurer<HttpSecurity>
(from spring-security framework)authenticationConverter
is a bean implementing Converter<Jwt, ? extends AbstractAuthenticationToken>
(where the Jwt
instance is provided by Spring at runtime when a JWT access-token is successfully decoded and validatedOr maybe what you want is just to provide your own authoritiesConverter
or authenticationConverter
@Bean
definition? In that case, just read the rest of the security configuration class...
Sorry about that. I figured out I have to copy more for that configuration. That was my mistake at all and I figured it out.
Great repo by the way. Thank you for all
Hi, Great repo. In this line
http.oauth2ResourceServer().jwt().jwtAuthenticationConverter(authenticationConverter);
I need a parameter jwt. How do you set it?