How to add user authorities(Role) to the Authentication.getAuthorities.
For jwt token, I can customize a class implement the Converter
Converter<Jwt, Collection<GrantedAuthority>>
http.jwt().jwtAuthenticationConverter(jwtAuthenticationConverter)
But for the opaqueToken, we don't have a opaqueAuthenticationConverter method.
Could you please help take a look? Thanks.
Comment From: jgrandja
Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. We prefer to use GitHub issues only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add a minimal sample that reproduces this issue if you feel this is a genuine bug.
Please see the reference for OAuth 2.0 Resource Server Opaque Token, specifically, http.opaqueToken().authenticationConverter(opaqueTokenAuthenticationConverter).