keycloak-service
公開メンバ関数 | 静的公開変数類 | 静的限定公開変数類 | 静的関数 | 非公開メンバ関数 | 全メンバ一覧
org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper クラス
org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper の継承関係図
Inheritance graph
org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper 連携図
Collaboration graph

公開メンバ関数

List< ProviderConfigProperty > getConfigProperties ()
 
String getDisplayCategory ()
 
String getDisplayType ()
 
String getId ()
 
String [] getCompatibleProviders ()
 
void preprocessFederatedIdentity (KeycloakSession session, RealmModel realm, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
 
void updateBrokeredUser (KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
 
void importNewUser (KeycloakSession session, RealmModel realm, UserModel user, IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
 
String getHelpText ()
 

静的公開変数類

static final String ATTRIBUTE = "attribute"
 
static final String ATTRIBUTE_VALUE = "attribute.value"
 
static final String [] COMPATIBLE_PROVIDERS = {ANY_PROVIDER}
 
static final String PROVIDER_ID = "hardcoded-user-session-attribute-idp-mapper"
 

静的限定公開変数類

static final List< ProviderConfigProperty > configProperties = new ArrayList<ProviderConfigProperty>()
 

静的関数

 [static initializer]
 

非公開メンバ関数

void setHardcodedUserSessionAttribute (IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
 

詳解

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ [static initializer]()

org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.[static initializer] ( )
inlinestaticpackage

◆ getCompatibleProviders()

String [] org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.getCompatibleProviders ( )
inline
82  {
83  return COMPATIBLE_PROVIDERS;
84  }
static final String [] COMPATIBLE_PROVIDERS
Definition: HardcodedUserSessionAttributeMapper.java:71

◆ getConfigProperties()

List<ProviderConfigProperty> org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.getConfigProperties ( )
inline
57  {
58  return configProperties;
59  }
static final List< ProviderConfigProperty > configProperties
Definition: HardcodedUserSessionAttributeMapper.java:36

◆ getDisplayCategory()

String org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.getDisplayCategory ( )
inline
62  {
63  return "Attribute Importer";
64  }

◆ getDisplayType()

String org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.getDisplayType ( )
inline
67  {
68  return "Hardcoded User Session Attribute";
69  }

◆ getHelpText()

String org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.getHelpText ( )
inline
102  {
103  return "When user is imported from provider, hardcode a value to a specific user session attribute.";
104  }

◆ getId()

String org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.getId ( )
inline
77  {
78  return PROVIDER_ID;
79  }
static final String PROVIDER_ID
Definition: HardcodedUserSessionAttributeMapper.java:74

◆ importNewUser()

void org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.importNewUser ( KeycloakSession  session,
RealmModel  realm,
UserModel  user,
IdentityProviderMapperModel  mapperModel,
BrokeredIdentityContext  context 
)
inline
97  {
98  setHardcodedUserSessionAttribute(mapperModel, context);
99  }
void setHardcodedUserSessionAttribute(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
Definition: HardcodedUserSessionAttributeMapper.java:106

◆ preprocessFederatedIdentity()

void org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.preprocessFederatedIdentity ( KeycloakSession  session,
RealmModel  realm,
IdentityProviderMapperModel  mapperModel,
BrokeredIdentityContext  context 
)
inline
87  {
88  setHardcodedUserSessionAttribute(mapperModel, context);
89  }
void setHardcodedUserSessionAttribute(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
Definition: HardcodedUserSessionAttributeMapper.java:106

◆ setHardcodedUserSessionAttribute()

void org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.setHardcodedUserSessionAttribute ( IdentityProviderMapperModel  mapperModel,
BrokeredIdentityContext  context 
)
inlineprivate
106  {
107  String attribute = mapperModel.getConfig().get(ATTRIBUTE);
108  String attributeValue = mapperModel.getConfig().get(ATTRIBUTE_VALUE);
109  context.getAuthenticationSession().setUserSessionNote(attribute, attributeValue);
110  }
static final String ATTRIBUTE_VALUE
Definition: HardcodedUserSessionAttributeMapper.java:35
static final String ATTRIBUTE
Definition: HardcodedUserSessionAttributeMapper.java:34

◆ updateBrokeredUser()

void org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.updateBrokeredUser ( KeycloakSession  session,
RealmModel  realm,
UserModel  user,
IdentityProviderMapperModel  mapperModel,
BrokeredIdentityContext  context 
)
inline
92  {
93  setHardcodedUserSessionAttribute(mapperModel, context);
94  }
void setHardcodedUserSessionAttribute(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)
Definition: HardcodedUserSessionAttributeMapper.java:106

メンバ詳解

◆ ATTRIBUTE

final String org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.ATTRIBUTE = "attribute"
static

◆ ATTRIBUTE_VALUE

final String org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.ATTRIBUTE_VALUE = "attribute.value"
static

◆ COMPATIBLE_PROVIDERS

final String [] org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.COMPATIBLE_PROVIDERS = {ANY_PROVIDER}
static

◆ configProperties

final List<ProviderConfigProperty> org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.configProperties = new ArrayList<ProviderConfigProperty>()
staticprotected

◆ PROVIDER_ID

final String org.keycloak.broker.provider.HardcodedUserSessionAttributeMapper.PROVIDER_ID = "hardcoded-user-session-attribute-idp-mapper"
static

このクラス詳解は次のファイルから抽出されました: