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.

Environment

None

Activity

Ahmed Ababneh 
June 14, 2022 at 6:06 AM
(edited)

Ahmed Ababneh 
June 14, 2022 at 6:05 AM
(edited)

(2.21.x)

Nuno Oliveira 
May 20, 2022 at 12:51 PM
(edited)

Related PRs:

  • (main, 2.22.x)

Fixed

Details

Assignee

Reporter

Fix versions

Components

Priority

Created May 18, 2022 at 10:31 AM
Updated June 14, 2022 at 6:06 AM
Resolved May 20, 2022 at 12:51 PM