The Shibboleth IdP V4 software will leave support on September 1, 2024.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

The predicate bean named shibboleth.Conditions.Expression executes a Spring Expression Language (SpEL) expression against a ProfileRequestContext to produce a true/false result.

An Expression Predicate is instantiated by simply supplying a string argument that contains a SpEL expression.

Example

<bean id="MyCondition" parent="shibboleth.Conditions.Expression"
	c:expression="#input.isBrowserProfile()" />

Reference

Properties

The following additional bean properties are available:

PropertyName

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 expression fails

hideExceptions

boolean

false

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

Expression Context

The expression context will have two variables populated:

  • input - the ProfileRequestContext being evaluated

  • custom - the object set via the customObject property, if any


  • No labels