...
The ScriptedDataConnector
data connector allows the creation of multiple IdPAttribute objects via a JSR-223 script. Scripts are somewhat easier to write and maintain than native Java code, though they are slower. They can also be changed dynamically since the resolver is a ReloadableService.
...
The script "context" defines the execution environment for the script and provides the following variables:
resolutionContext
AttributeResolutionContext for the current resolution step, which exists within the tree of state information that tracks the current request
connectorResults
List which the connector populates with IdPAttribute objects and which form the output of the connector
profileContext
ProfileRequestContext for the current resolution request, the "root" of the tree of state information
custom
Contains whatever bean was referenced by the
customObjectRef
XML Attribute
subjects
Array of Subject objects associated with this request. Note that these will only be present if the attribute resolution is associated with a completed authentication step (so is not present for back channel requests or certain other cases).
In addition, each defined dependency of the connector, it exists, will be present via an object which implements ScriptedIdPAttribute.
For an AttributeDefinition dependency, that IdPAttribute is supplied. For a DataConnector dependency, each IdPAttribute produced by that connector is supplied.
...