Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleresourceScript

If provided with one parameter this is the location (usually the file name) of the resource (file) containing the script. If two parameters are provided, the the first is the name of the (installed) JSR-223 lanuage and the second is the location.

Code Block
<bean id="MyCondition" parent="shibboleth.Conditions.Scripted" factory-method="resourceScript"
 	 	 	 c:_0="javascript"
  c:_01="%{idp.home}/conf/script.js" c:_1="javascript" />

Reference

Expand
titleBean Properties

The following additional bean properties are available:

Name

Type

Default

Description

customObject

Bean/Reference

An object to make available to the script via a variable named custom

returnOnError

boolean

false

What to return if the script fails

hideExceptions

boolean

false

If true, then the returnOnError value is returned if the script raises an exception, otherwise the exception is passed out

...