public class HardcodedRoleMapper extends AbstractIdentityProviderMapper
| Modifier and Type | Field and Description |
|---|---|
static String[] |
COMPATIBLE_PROVIDERS |
protected static List<ProviderConfigProperty> |
configProperties |
static String |
PROVIDER_ID |
static String |
ROLE |
ANY_PROVIDER| Constructor and Description |
|---|
HardcodedRoleMapper() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCompatibleProviders() |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
String |
getHelpText() |
String |
getId() |
static RoleModel |
getRoleFromString(RealmModel realm,
String roleName) |
void |
importNewUser(KeycloakSession session,
RealmModel realm,
UserModel user,
IdentityProviderMapperModel mapperModel,
BrokeredIdentityContext context)
Called after UserModel is created for first time for this user.
|
static String[] |
parseRole(String role) |
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.
|
close, create, init, postInit, preprocessFederatedIdentitypublic static final String ROLE
protected static final List<ProviderConfigProperty> configProperties
public static final String[] COMPATIBLE_PROVIDERS
public static final String PROVIDER_ID
public static RoleModel getRoleFromString(RealmModel realm, String roleName)
public List<ProviderConfigProperty> getConfigProperties()
public String getDisplayCategory()
public String getDisplayType()
public String getId()
public String[] getCompatibleProviders()
public void importNewUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
IdentityProviderMapperpublic void updateBrokeredUser(KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
IdentityProviderMapperpublic String getHelpText()
Copyright © 2015 JBoss by Red Hat. All rights reserved.