My setup is an AuthorizationServer where i authenticate against ldap. When i request the user from the authorizationserver directly he has a specifc Authority depending on the ldap group.
When i look at the Oauth2Authentication in the ResourceServer while debugging, only the userAuthentication.details.authorities has this authority. Any other authority is set to ROLE_USER.
Is ist possible to use the Authority of the user provided by the AuthorizationServer?
If i use spring.oauth2.resource.tokenInfoUri to retrieve the authority, it works. But i want to use the UserDetails provided by the AuthorizationServer..