Class DeployedScriptOIDCProtocolMapper
java.lang.Object
org.keycloak.protocol.oidc.mappers.AbstractOIDCProtocolMapper
org.keycloak.protocol.oidc.mappers.ScriptBasedOIDCProtocolMapper
org.keycloak.protocol.oidc.mappers.DeployedScriptOIDCProtocolMapper
- All Implemented Interfaces:
OIDCAccessTokenMapper
,OIDCAccessTokenResponseMapper
,OIDCIDTokenMapper
,TokenIntrospectionTokenMapper
,UserInfoTokenMapper
,ProtocolMapper
,ConfiguredProvider
,EnvironmentDependentProviderFactory
,Provider
,ProviderFactory<ProtocolMapper>
-
Field Summary
Fields inherited from class org.keycloak.protocol.oidc.mappers.ScriptBasedOIDCProtocolMapper
PROVIDER_ID, SCRIPT
Fields inherited from class org.keycloak.protocol.oidc.mappers.AbstractOIDCProtocolMapper
TOKEN_MAPPER_CATEGORY
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetId()
protected String
getScriptCode
(ProtocolMapperModel mapperModel) void
init
(Config.Scope config) Only called once when the factory is first created.boolean
isSupported
(Config.Scope config) Check if the provider is supported and should be available based on the provider configuration.void
setMetadata
(ScriptProviderMetadata metadata) Methods inherited from class org.keycloak.protocol.oidc.mappers.ScriptBasedOIDCProtocolMapper
create, getDisplayCategory, getPriority, setClaim, setClaim, validateConfig
Methods inherited from class org.keycloak.protocol.oidc.mappers.AbstractOIDCProtocolMapper
close, create, getEffectiveModel, getProtocol, postInit, setClaim, transformAccessToken, transformAccessTokenResponse, transformIDToken, transformIntrospectionToken, transformUserInfoToken
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.protocol.oidc.mappers.OIDCAccessTokenMapper
transformAccessToken
Methods inherited from interface org.keycloak.protocol.oidc.mappers.OIDCAccessTokenResponseMapper
transformAccessTokenResponse
Methods inherited from interface org.keycloak.protocol.oidc.mappers.OIDCIDTokenMapper
transformIDToken
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
Methods inherited from interface org.keycloak.protocol.oidc.mappers.TokenIntrospectionTokenMapper
transformIntrospectionToken
Methods inherited from interface org.keycloak.protocol.oidc.mappers.UserInfoTokenMapper
transformUserInfoToken
-
Field Details
-
metadata
-
-
Constructor Details
-
DeployedScriptOIDCProtocolMapper
-
DeployedScriptOIDCProtocolMapper
public DeployedScriptOIDCProtocolMapper()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceProviderFactory<ProtocolMapper>
- Overrides:
getId
in classScriptBasedOIDCProtocolMapper
-
getDisplayType
- Specified by:
getDisplayType
in interfaceProtocolMapper
- Overrides:
getDisplayType
in classScriptBasedOIDCProtocolMapper
-
getHelpText
- Specified by:
getHelpText
in interfaceConfiguredProvider
- Overrides:
getHelpText
in classScriptBasedOIDCProtocolMapper
-
getScriptCode
- Overrides:
getScriptCode
in classScriptBasedOIDCProtocolMapper
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<ProtocolMapper>
- Overrides:
init
in classAbstractOIDCProtocolMapper
-
getConfigProperties
- Specified by:
getConfigProperties
in interfaceConfiguredProvider
- Overrides:
getConfigProperties
in classScriptBasedOIDCProtocolMapper
-
isSupported
Description copied from interface:EnvironmentDependentProviderFactory
Check if the provider is supported and should be available based on the provider configuration.- Specified by:
isSupported
in interfaceEnvironmentDependentProviderFactory
- Overrides:
isSupported
in classScriptBasedOIDCProtocolMapper
- Parameters:
config
- the provider configuration- Returns:
true
if the provider is supported. Otherwise,false
.
-
setMetadata
-
getMetadata
-