Class UserRolesRetrieveStrategy.LoadRolesByMemberRecursively
java.lang.Object
org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy.LoadRolesByMember
org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy.LoadRolesByMemberRecursively
- All Implemented Interfaces:
UserRolesRetrieveStrategy
- Enclosing interface:
- UserRolesRetrieveStrategy
public static class UserRolesRetrieveStrategy.LoadRolesByMemberRecursively
extends UserRolesRetrieveStrategy.LoadRolesByMember
Extension specific to Active Directory. Roles of user will be retrieved by sending LDAP query to retrieve all roles where "member" is our user.
The query will be able to retrieve memberships recursively with usage of AD specific extension LDAP_MATCHING_RULE_IN_CHAIN, so likely doesn't work on other LDAP servers
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy
UserRolesRetrieveStrategy.GetRolesFromUserMemberOfAttribute, UserRolesRetrieveStrategy.LoadRolesByMember, UserRolesRetrieveStrategy.LoadRolesByMemberRecursively
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Condition
getMembershipCondition
(String membershipAttr, String userMembership) Methods inherited from class org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy.LoadRolesByMember
beforeUserLDAPQuery, getLDAPRoleMappings
-
Constructor Details
-
LoadRolesByMemberRecursively
public LoadRolesByMemberRecursively()
-
-
Method Details
-
getMembershipCondition
- Overrides:
getMembershipCondition
in classUserRolesRetrieveStrategy.LoadRolesByMember
-