Package org.keycloak.broker.oidc.mappers
Class ExternalKeycloakRoleToRoleMapper
java.lang.Object
org.keycloak.broker.provider.AbstractIdentityProviderMapper
org.keycloak.broker.oidc.mappers.AbstractClaimMapper
org.keycloak.broker.oidc.mappers.AbstractClaimToRoleMapper
org.keycloak.broker.oidc.mappers.ExternalKeycloakRoleToRoleMapper
- All Implemented Interfaces:
IdentityProviderMapper
,ConfiguredProvider
,Provider
,ProviderFactory<IdentityProviderMapper>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields inherited from class org.keycloak.broker.oidc.mappers.AbstractClaimMapper
CLAIM, CLAIM_VALUE
Fields inherited from interface org.keycloak.broker.provider.IdentityProviderMapper
ANY_PROVIDER, DEFAULT_IDENTITY_PROVIDER_MAPPER_SYNC_MODES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
applies
(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) This method must be implemented by subclasses and they must returntrue
if their mapping can be applied (i.e.String[]
getId()
boolean
supportsSyncMode
(IdentityProviderSyncMode syncMode) void
updateBrokeredUserLegacy
(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 class org.keycloak.broker.oidc.mappers.AbstractClaimToRoleMapper
importNewUser, updateBrokeredUser
Methods inherited from class org.keycloak.broker.oidc.mappers.AbstractClaimMapper
getClaimValue, getClaimValue, getClaimValue, hasClaimValue, valueEquals
Methods inherited from class org.keycloak.broker.provider.AbstractIdentityProviderMapper
close, create, init, postInit, preprocessFederatedIdentity
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Field Details
-
COMPATIBLE_PROVIDERS
-
PROVIDER_ID
- See Also:
-
-
Constructor Details
-
ExternalKeycloakRoleToRoleMapper
public ExternalKeycloakRoleToRoleMapper()
-
-
Method Details
-
supportsSyncMode
-
getConfigProperties
-
getId
-
getCompatibleProviders
-
getDisplayCategory
-
getDisplayType
-
applies
Description copied from class:AbstractClaimToRoleMapper
This method must be implemented by subclasses and they must returntrue
if their mapping can be applied (i.e. user has the OIDC claim that should be mapped) orfalse
otherwise.- Specified by:
applies
in classAbstractClaimToRoleMapper
- Parameters:
mapperModel
- a reference to theIdentityProviderMapperModel
.context
- a reference to theBrokeredIdentityContext
.- Returns:
true
if the mapping can be applied orfalse
otherwise.*
-
updateBrokeredUserLegacy
public void updateBrokeredUserLegacy(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Description copied from interface:IdentityProviderMapper
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.- Specified by:
updateBrokeredUserLegacy
in interfaceIdentityProviderMapper
- Overrides:
updateBrokeredUserLegacy
in classAbstractClaimToRoleMapper
-
getHelpText
-