public abstract class AbstractAttributeToRoleMapper extends AbstractIdentityProviderMapper
Keycloak role.ANY_PROVIDER, DEFAULT_IDENTITY_PROVIDER_MAPPER_SYNC_MODES| Constructor and Description |
|---|
AbstractAttributeToRoleMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
applies(IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context)
This method must be implemented by subclasses and they must return
true if their mapping can be applied
(i.e. |
void |
importNewUser(KeycloakSession session,
RealmModel realm,
UserModel user,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context) |
void |
updateBrokeredUser(KeycloakSession session,
RealmModel realm,
UserModel user,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context) |
close, create, init, postInit, preprocessFederatedIdentity, updateBrokeredUserLegacyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompatibleProviders, getDisplayCategory, getDisplayType, supportsSyncModegetId, ordergetConfigProperties, getHelpTextpublic void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
importNewUser in interface IdentityProviderMapperimportNewUser in class AbstractIdentityProviderMapperpublic void updateBrokeredUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
updateBrokeredUser in interface IdentityProviderMapperupdateBrokeredUser in class AbstractIdentityProviderMapperprotected abstract boolean applies(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
true if their mapping can be applied
(i.e. user has the SAML attribute that should be mapped) or false otherwise.mapperModel - a reference to the IdentityProviderMapperModel.context - a reference to the BrokeredIdentityContext.true if the mapping can be applied or false otherwise.Copyright © 2021 JBoss by Red Hat. All rights reserved.