You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in JwtAuthenticationConverter the authorities passed into new JwtAuthenticationToken come only from the scopes on the token. If the user has set a UserDetailsService or ReactiveUserDetailsService then the authorities returned from userDetailsService.loadByUsername(subject).getAuthorities() / reactiveUserDetailsService.findByUsername(subject).getAuthorities() should be merged into the authorities in the JwtAuthenticationToken.
The text was updated successfully, but these errors were encountered:
I think what was done in #6273 will solve this as well. It will allow someone to be able to assemble their own JwtGrantedAuthoritiesConverter in whichever way they want.
I'm fine to close this out unless there is more to add. We can re-open at that point.
Currently in
JwtAuthenticationConverter
the authorities passed intonew JwtAuthenticationToken
come only from the scopes on the token. If the user has set aUserDetailsService
orReactiveUserDetailsService
then the authorities returned fromuserDetailsService.loadByUsername(subject).getAuthorities()
/reactiveUserDetailsService.findByUsername(subject).getAuthorities()
should be merged into the authorities in theJwtAuthenticationToken
.The text was updated successfully, but these errors were encountered: