Package io.jmix.oidc.claimsmapper
Interface ClaimsRolesMapper
- All Known Implementing Classes:
BaseClaimsRolesMapper
,DefaultClaimsRolesMapper
public interface ClaimsRolesMapper
Mapper of claims received from the OpenID Provider into Jmix resource roles and row-level roles. Some
OidcUserMapper
implementations delegate roles mapping to the instance of this interface. If you want to replace standard claims mapper
with your own one, then register a spring bean implementing the current interface in your application.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>
toGrantedAuthorities
(Map<String, Object> claims) toResourceRoles
(Map<String, Object> claims) toRowLevelRoles
(Map<String, Object> claims)
-
Method Details
-
toResourceRoles
-
toRowLevelRoles
-
toGrantedAuthorities
Collection<? extends org.springframework.security.core.GrantedAuthority> toGrantedAuthorities(Map<String, Object> claims)
-