keycloak
|
公開メンバ関数 | |
List< ProviderConfigProperty > | getConfigProperties () |
String | getId () |
String | getDisplayType () |
String | getDisplayCategory () |
String | getHelpText () |
void | transformAttributeStatement (AttributeStatementType attributeStatement, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) |
void | validateConfig (KeycloakSession session, RealmModel realm, ProtocolMapperContainerModel client, ProtocolMapperModel mapperModel) throws ProtocolMapperConfigException |
String | getProtocol () |
void | close () |
final ProtocolMapper | create (KeycloakSession session) |
void | init (Config.Scope config) |
void | postInit (KeycloakSessionFactory factory) |
default int | order () |
静的公開メンバ関数 | |
static ProtocolMapperModel | create (String name, String samlAttributeName, String nameFormat, String friendlyName, String script, boolean singleAttribute) |
静的公開変数類 | |
static final String | PROVIDER_ID = "saml-javascript-mapper" |
静的関数 | |
[static initializer] | |
静的非公開変数類 | |
static final List< ProviderConfigProperty > | configProperties = new ArrayList<>() |
static final String | SINGLE_VALUE_ATTRIBUTE = "single" |
static final Logger | LOGGER = Logger.getLogger(ScriptBasedMapper.class) |
This class provides a mapper that uses javascript to attach a value to an attribute for SAML tokens. The mapper can handle both a result that is a single value, or multiple values (an array or a list for example). For the latter case, it can return the result as a single attribute with multiple values, or as multiple attributes However, in all cases, the returned values must be castable to String values.
|
inlinestaticpackage |
|
inlineinherited |
org.keycloak.provider.Providerを実装しています。
|
inlineinherited |
|
inlinestatic |
Creates an protocol mapper model for the this script based mapper. This mapper model is meant to be used for testing, as normally such objects are created in a different manner through the keycloak GUI.
name | The name of the mapper (this has no functional use) |
samlAttributeName | The name of the attribute in the SAML attribute |
nameFormat | can be "basic", "URI reference" or "unspecified" |
friendlyName | a display name, only useful for the keycloak GUI |
script | the javascript to be executed by the mapper |
singleAttribute | If true, all groups will be stored under one attribute with multiple attribute values |
|
inline |
org.keycloak.provider.ConfiguredProviderを実装しています。
|
inline |
org.keycloak.protocol.ProtocolMapperを実装しています。
|
inline |
org.keycloak.protocol.ProtocolMapperを実装しています。
|
inline |
|
inline |
org.keycloak.provider.ProviderFactory< T extends Provider >を実装しています。
|
inlineinherited |
org.keycloak.protocol.ProtocolMapperを実装しています。
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
This method attaches one or many attributes to the passed attribute statement. To obtain the attribute values, it executes the mapper's script and returns attaches the returned value to the attribute. If the returned attribute is an Array or is iterable, the mapper will either return multiple attributes, or an attribute with multiple values. The variant chosen depends on the configuration of the mapper
attributeStatement | The attribute statements to be added to a token |
mappingModel | The mapping model reflects the values that are actually input in the GUI |
session | The current session |
userSession | The current user session |
clientSession | The current client session |
org.keycloak.protocol.saml.mappers.SAMLAttributeStatementMapperを実装しています。
|
inline |
org.keycloak.protocol.ProtocolMapperを実装しています。
|
staticprivate |
|
staticprivate |
|
static |
|
staticprivate |