ch4mpy / spring-addons

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

[NOT A BUG] about jwtAuthenticationConverter(authenticationConverter); #91

Closed erdemcanturk closed 1 year ago

erdemcanturk commented 1 year ago

Hi, Great repo. In this line http.oauth2ResourceServer().jwt().jwtAuthenticationConverter(authenticationConverter); I need a parameter jwt. How do you set it?

ch4mpy commented 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);:

Or 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...

erdemcanturk commented 1 year ago

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