Class ClaimRoles
java.lang.Object
dev.relism.flash.ext.security.oidc.ClaimRoles
- All Implemented Interfaces:
dev.relism.flash.ext.security.RoleResolver
Roles read from the provider's token instead of the application's own data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClaimRolesRoles at a dot-separated claim path —realm_access.rolesfor Keycloak,groupsfor most others.booleanhasRole(dev.relism.flash.ext.security.SecurityIdentity identity, String role, dev.relism.flash.ext.security.Target on) of(dev.relism.flash.ext.security.Principal principal) The rolesprincipal's token carries; none for a caller OIDC did not authenticate.
-
Method Details
-
at
Roles at a dot-separated claim path —realm_access.rolesfor Keycloak,groupsfor most others. -
of
The rolesprincipal's token carries; none for a caller OIDC did not authenticate. -
hasRole
public boolean hasRole(dev.relism.flash.ext.security.SecurityIdentity identity, String role, dev.relism.flash.ext.security.Target on) - Specified by:
hasRolein interfacedev.relism.flash.ext.security.RoleResolver
-