public class AttributeToRoleMapper extends AbstractIdentityProviderMapper
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_FRIENDLY_NAME |
static String |
ATTRIBUTE_NAME |
static String |
ATTRIBUTE_VALUE |
static String[] |
COMPATIBLE_PROVIDERS |
static String |
PROVIDER_ID |
ANY_PROVIDER, DEFAULT_IDENTITY_PROVIDER_MAPPER_SYNC_MODES
Constructor and Description |
---|
AttributeToRoleMapper() |
Modifier and Type | Method and Description |
---|---|
String[] |
getCompatibleProviders() |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
String |
getHelpText() |
String |
getId() |
void |
importNewUser(KeycloakSession session,
RealmModel realm,
UserModel user,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context)
Called after UserModel is created for first time for this user.
|
protected boolean |
isAttributePresent(IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context) |
boolean |
supportsSyncMode(IdentityProviderSyncMode syncMode) |
void |
updateBrokeredUser(KeycloakSession session,
RealmModel realm,
UserModel user,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context)
Called when this user has logged in before and has already been imported.
|
close, create, init, postInit, preprocessFederatedIdentity, updateBrokeredUserLegacy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public static final String[] COMPATIBLE_PROVIDERS
public static final String ATTRIBUTE_NAME
public static final String ATTRIBUTE_FRIENDLY_NAME
public static final String ATTRIBUTE_VALUE
public static final String PROVIDER_ID
public boolean supportsSyncMode(IdentityProviderSyncMode syncMode)
public List<ProviderConfigProperty> getConfigProperties()
public String getId()
public String[] getCompatibleProviders()
public String getDisplayCategory()
public String getDisplayType()
public void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
IdentityProviderMapper
importNewUser
in interface IdentityProviderMapper
importNewUser
in class AbstractIdentityProviderMapper
protected boolean isAttributePresent(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
public void updateBrokeredUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
IdentityProviderMapper
updateBrokeredUser
in interface IdentityProviderMapper
updateBrokeredUser
in class AbstractIdentityProviderMapper
public String getHelpText()
Copyright © 2020 JBoss by Red Hat. All rights reserved.