GeoFence InternalServer - InternalUserResolver unnecessarily reload Roles from services
Description
The GeoFence internalUserResolver implementation retrieves roles by role Services while the authorities are already present in the Spring SecuirtyContextHolder since the method is invoked only when the authentication process already happened. This causes performance degradation that can be fixed by retrieving the roles directly from the Authentication object.
The GeoFence internalUserResolver implementation retrieves roles by role Services while the authorities are already present in the Spring SecuirtyContextHolder since the method is invoked only when the authentication process already happened. This causes performance degradation that can be fixed by retrieving the roles directly from the Authentication object.