public class ExternalKeycloakRoleToRoleMapper extends AbstractClaimToRoleMapper
| Modifier and Type | Field and Description |
|---|---|
static String[] |
COMPATIBLE_PROVIDERS |
static String |
PROVIDER_ID |
CLAIM, CLAIM_VALUEANY_PROVIDER, DEFAULT_IDENTITY_PROVIDER_MAPPER_SYNC_MODES| Constructor and Description |
|---|
ExternalKeycloakRoleToRoleMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
applies(IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context)
This method must be implemented by subclasses and they must return
true if their mapping can be applied
(i.e. |
String[] |
getCompatibleProviders() |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
String |
getHelpText() |
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.
|
importNewUser, updateBrokeredUsergetClaimValue, getClaimValue, getClaimValue, hasClaimValue, valueEqualsclose, create, init, postInit, preprocessFederatedIdentityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitorderpublic static final String[] COMPATIBLE_PROVIDERS
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()
protected boolean applies(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
AbstractClaimToRoleMappertrue if their mapping can be applied
(i.e. user has the OIDC claim that should be mapped) or false otherwise.applies in class AbstractClaimToRoleMappermapperModel - a reference to the IdentityProviderMapperModel.context - a reference to the BrokeredIdentityContext.true if the mapping can be applied or false otherwise.*public void updateBrokeredUserLegacy(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
IdentityProviderMapperupdateBrokeredUserLegacy in interface IdentityProviderMapperupdateBrokeredUserLegacy in class AbstractClaimToRoleMapperpublic String getHelpText()
Copyright © 2021 JBoss by Red Hat. All rights reserved.