Search in sources :

Example 1 with UserRolesRetrieveStrategy

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);
}
Also used : UserRolesRetrieveStrategy(org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy) LDAPConfig(org.keycloak.storage.ldap.LDAPConfig)

Example 2 with UserRolesRetrieveStrategy

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);
}
Also used : UserRolesRetrieveStrategy(org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy)

Example 3 with UserRolesRetrieveStrategy

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);
}
Also used : UserRolesRetrieveStrategy(org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy)

Example 4 with UserRolesRetrieveStrategy

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);
}
Also used : UserRolesRetrieveStrategy(org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy) LDAPConfig(org.keycloak.storage.ldap.LDAPConfig)

Aggregations

UserRolesRetrieveStrategy (org.keycloak.storage.ldap.mappers.membership.UserRolesRetrieveStrategy)4 LDAPConfig (org.keycloak.storage.ldap.LDAPConfig)2