public class UserAttributeMapper extends AbstractClaimMapper
Modifier and Type | Field and Description |
---|---|
static String[] |
COMPATIBLE_PROVIDERS |
static String |
EMAIL |
static String |
FIRST_NAME |
static String |
LAST_NAME |
static String |
PROVIDER_ID |
static String |
USER_ATTRIBUTE |
CLAIM, CLAIM_VALUE
ANY_PROVIDER, DEFAULT_IDENTITY_PROVIDER_MAPPER_SYNC_MODES
Constructor and Description |
---|
UserAttributeMapper() |
Modifier and Type | Method and Description |
---|---|
String[] |
getCompatibleProviders() |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
String |
getHelpText() |
String |
getId() |
void |
preprocessFederatedIdentity(KeycloakSession session,
RealmModel realm,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context)
Called to determine what keycloak username and email to use to process the login request from the external IDP.
|
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.
|
getClaimValue, getClaimValue, getClaimValue, hasClaimValue, valueEquals
close, create, importNewUser, init, postInit, updateBrokeredUserLegacy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public static final String[] COMPATIBLE_PROVIDERS
public static final String USER_ATTRIBUTE
public static final String EMAIL
public static final String FIRST_NAME
public static final String LAST_NAME
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 preprocessFederatedIdentity(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
IdentityProviderMapper
preprocessFederatedIdentity
in interface IdentityProviderMapper
preprocessFederatedIdentity
in class AbstractIdentityProviderMapper
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.