use of org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy in project keycloak by keycloak.
the class GroupLDAPStorageMapper method getLDAPGroupMappings.
protected List<LDAPObject> getLDAPGroupMappings(LDAPObject ldapUser) {
String strategyKey = config.getUserGroupsRetrieveStrategy();
UserRolesRetrieveStrategy strategy = factory.getUserGroupsRetrieveStrategy(strategyKey);
LDAPConfig ldapConfig = ldapProvider.getLdapIdentityStore().getConfig();
return strategy.getLDAPRoleMappings(this, ldapUser, ldapConfig);
}
use of org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy in project keycloak by keycloak.
the class RoleLDAPStorageMapper method beforeLDAPQuery.
@Override
public void beforeLDAPQuery(LDAPQuery query) {
String strategyKey = config.getUserRolesRetrieveStrategy();
UserRolesRetrieveStrategy strategy = factory.getUserRolesRetrieveStrategy(strategyKey);
strategy.beforeUserLDAPQuery(this, query);
}
use of org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy in project keycloak by keycloak.
the class GroupLDAPStorageMapper method beforeLDAPQuery.
@Override
public void beforeLDAPQuery(LDAPQuery query) {
String strategyKey = config.getUserGroupsRetrieveStrategy();
UserRolesRetrieveStrategy strategy = factory.getUserGroupsRetrieveStrategy(strategyKey);
strategy.beforeUserLDAPQuery(this, query);
}
use of org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy in project keycloak by keycloak.
the class RoleLDAPStorageMapper method getLDAPRoleMappings.
protected List<LDAPObject> getLDAPRoleMappings(LDAPObject ldapUser) {
String strategyKey = config.getUserRolesRetrieveStrategy();
UserRolesRetrieveStrategy strategy = factory.getUserRolesRetrieveStrategy(strategyKey);
LDAPConfig ldapConfig = ldapProvider.getLdapIdentityStore().getConfig();
return strategy.getLDAPRoleMappings(this, ldapUser, ldapConfig);
}
Aggregations