Package org.keycloak.broker.provider
Interface IdentityProviderMapper
- All Superinterfaces:
- ConfiguredProvider,- Provider,- ProviderFactory<IdentityProviderMapper>
- All Known Implementing Classes:
- AbstractAttributeToGroupMapper,- AbstractAttributeToRoleMapper,- AbstractClaimMapper,- AbstractClaimToGroupMapper,- AbstractClaimToRoleMapper,- AbstractIdentityProviderMapper,- AbstractJsonUserAttributeMapper,- AdvancedAttributeToGroupMapper,- AdvancedAttributeToRoleMapper,- AdvancedClaimToGroupMapper,- AdvancedClaimToRoleMapper,- AttributeToRoleMapper,- ClaimToRoleMapper,- ClaimToUserSessionNoteMapper,- ExternalKeycloakRoleToRoleMapper,- FacebookUserAttributeMapper,- GitHubUserAttributeMapper,- GoogleUserAttributeMapper,- HardcodedAttributeMapper,- HardcodedGroupMapper,- HardcodedRoleMapper,- HardcodedUserSessionAttributeMapper,- InstagramUserAttributeMapper,- LinkedInUserAttributeMapper,- MicrosoftUserAttributeMapper,- OpenshiftV4AttributeMapper,- PayPalUserAttributeMapper,- StackoverflowUserAttributeMapper,- UserAttributeMapper,- UserAttributeMapper,- UsernameTemplateMapper,- UsernameTemplateMapper,- XPathAttributeMapper
public interface IdentityProviderMapper
extends Provider, ProviderFactory<IdentityProviderMapper>, ConfiguredProvider
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionString[]voidimportNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Called after UserModel is created for first time for this user.voidpreprocessFederatedIdentity(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.default booleansupportsSyncMode(IdentityProviderSyncMode syncMode) voidupdateBrokeredUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Called when this user has logged in before and has already been imported.voidupdateBrokeredUserLegacy(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Called when this user has logged in before and has already been imported.Methods inherited from interface org.keycloak.provider.ConfiguredProvidergetConfig, getConfigProperties, getHelpTextMethods inherited from interface org.keycloak.provider.ProviderFactoryclose, create, getConfigMetadata, getId, init, order, postInit
- 
Field Details- 
ANY_PROVIDER- See Also:
 
- 
DEFAULT_IDENTITY_PROVIDER_MAPPER_SYNC_MODES
 
- 
- 
Method Details- 
getCompatibleProvidersString[] getCompatibleProviders()
- 
getDisplayCategoryString getDisplayCategory()
- 
getDisplayTypeString getDisplayType()
- 
supportsSyncMode
- 
preprocessFederatedIdentityvoid 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. It's called before "FirstBrokerLogin" flow, so can be used to map attributes to BrokeredIdentityContext ( BrokeredIdentityContext.setUserAttribute ), which will be available on "Review Profile" page and in authenticators during FirstBrokerLogin flow- Parameters:
- session-
- realm-
- mapperModel-
- context-
 
- 
importNewUservoid importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Called after UserModel is created for first time for this user. Called after "FirstBrokerLogin" flow- Parameters:
- session-
- realm-
- user-
- mapperModel-
- context-
 
- 
updateBrokeredUserLegacyvoid updateBrokeredUserLegacy(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Called when this user has logged in before and has already been imported. Legacy behaviour. When updating the mapper to correctly update brokered users in all sync modes, move the old behavior into this method.- Parameters:
- session-
- realm-
- user-
- mapperModel-
- context-
 
- 
updateBrokeredUservoid updateBrokeredUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Called when this user has logged in before and has already been imported.- Parameters:
- session-
- realm-
- user-
- mapperModel-
- context-
 
 
-