public abstract class AbstractJsonUserAttributeMapper extends AbstractIdentityProviderMapper
JsonNode
user profile.Modifier and Type | Field and Description |
---|---|
static String |
CONF_JSON_FIELD
Config param where name of mapping source JSON User Profile field is stored.
|
static String |
CONF_USER_ATTRIBUTE
Config param where name of mapping target USer attribute is stored.
|
static String |
CONTEXT_JSON_NODE
Key in
BrokeredIdentityContext.getContextData() where JsonNode with user profile is stored. |
protected static org.jboss.logging.Logger |
logger |
protected static org.jboss.logging.Logger |
LOGGER_DUMP_USER_PROFILE |
ANY_PROVIDER, DEFAULT_IDENTITY_PROVIDER_MAPPER_SYNC_MODES
Constructor and Description |
---|
AbstractJsonUserAttributeMapper() |
close, create, importNewUser, init, postInit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCompatibleProviders
getId, order
protected static final org.jboss.logging.Logger logger
protected static final org.jboss.logging.Logger LOGGER_DUMP_USER_PROFILE
public static final String CONF_JSON_FIELD
public static final String CONF_USER_ATTRIBUTE
public static final String CONTEXT_JSON_NODE
BrokeredIdentityContext.getContextData()
where JsonNode
with user profile is stored.public static void storeUserProfileForMapper(BrokeredIdentityContext user, com.fasterxml.jackson.databind.JsonNode profile, String provider)
user
- context to store profile data intoprofile
- to store into contextprovider
- identification of social provider to be used in log dumppreprocessFederatedIdentity(KeycloakSession, RealmModel, IdentityProviderMapperModel, BrokeredIdentityContext)
,
BrokeredIdentityContext.getContextData()
public boolean supportsSyncMode(IdentityProviderSyncMode syncMode)
public List<ProviderConfigProperty> getConfigProperties()
public String getDisplayCategory()
public String getDisplayType()
public String getHelpText()
public void preprocessFederatedIdentity(KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
preprocessFederatedIdentity
in interface IdentityProviderMapper
preprocessFederatedIdentity
in class AbstractIdentityProviderMapper
public void updateBrokeredUserLegacy(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
updateBrokeredUserLegacy
in interface IdentityProviderMapper
updateBrokeredUserLegacy
in class AbstractIdentityProviderMapper
public void updateBrokeredUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
updateBrokeredUser
in interface IdentityProviderMapper
updateBrokeredUser
in class AbstractIdentityProviderMapper
protected static Object getJsonValue(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
Copyright © 2021 JBoss by Red Hat. All rights reserved.