Refactor UserAuthoritiesResolver - to run in tenant context (#2756)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-10-14 17:28:57 +03:00
committed by GitHub
parent 04cd9fb30d
commit 6ad20252ba
4 changed files with 9 additions and 21 deletions

View File

@@ -18,11 +18,10 @@ import java.util.Collection;
public interface UserAuthoritiesResolver {
/**
* User authorities/roles lookup based on the tenant and the username
* User authorities/roles lookup based on the username and the tenant context
*
* @param tenant The tenant that this user belongs to
* @param username The username of the user
* @return a {@link Collection} of authorities/roles for this user
*/
Collection<String> getUserAuthorities(String tenant, String username);
Collection<String> getUserAuthorities(String username);
}