Class ScriptableIdentityAssertionPlugin
java.lang.Object
org.forgerock.openig.script.AbstractScriptableHeapObject<IdentityAssertionClaims>
org.forgerock.openig.assertion.plugin.ScriptableIdentityAssertionPlugin
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IdentityAssertionPlugin
public class ScriptableIdentityAssertionPlugin
extends AbstractScriptableHeapObject<IdentityAssertionClaims>
implements IdentityAssertionPlugin
A scriptable
IdentityAssertionPlugin
. If there is an issue during script processing then it will be wrapped
in an IdentityAssertionPluginException
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Creates and initializes a ScriptableIdentityAssertionPlugin in a heap environment.Nested classes/interfaces inherited from class org.forgerock.openig.script.AbstractScriptableHeapObject
AbstractScriptableHeapObject.AbstractScriptableHeaplet<V>
-
Method Summary
Modifier and TypeMethodDescriptionReturn aFilter
to deal with any pre-processing requirements such as challenging the user for credentials by returning aWWW-Authenticate
header.Preform some processing and return a set of claims to be returned in the Identity Assertion JWT.Methods inherited from class org.forgerock.openig.script.AbstractScriptableHeapObject
close, runScript, runScriptAsync, setArgs, setClientHandler
-
Method Details
-
preProcessingFilter
Description copied from interface:IdentityAssertionPlugin
Return aFilter
to deal with any pre-processing requirements such as challenging the user for credentials by returning aWWW-Authenticate
header. The default implementation simply calls the nextHandler
without doing any processing. This filter is only triggered after the Identity Request JWT has been validated.- Specified by:
preProcessingFilter
in interfaceIdentityAssertionPlugin
- Returns:
- a
Filter
to deal with any pre-processing requirements.
-
process
public Promise<IdentityAssertionClaims,IdentityAssertionPluginException> process(Context context, Request request) Description copied from interface:IdentityAssertionPlugin
Preform some processing and return a set of claims to be returned in the Identity Assertion JWT. The processing may include some form of local authentication and/or authorization.- Specified by:
process
in interfaceIdentityAssertionPlugin
- Parameters:
context
- The context.request
- The request.- Returns:
- An
IdentityAssertionClaims
promise that represents claims to be returned in the Assertion JWT.
-