PingAccess provides the Groovy script and OAuth Groovy script rule types, which enable the use of Groovy, a dynamic programming language for the Java Virtual Machine (JVM).
Groovy scripts provide advanced rule logic that extends PingAccess rule development beyond the capabilities of the packaged rules. For more information, see the Groovy documentation.
Groovy scripts have access to important PingAccess runtime objects, such as the Exchange and PolicyContext objects, which the scripts can interrogate and modify.
Groovy script rules and OAuth Groovy script rules must end execution with a matcher instance. For more information, see Matcher usage reference.
Groovy functions treat strings literally, and matchers perform case-sensitive string evaluation unless otherwise specified. For example, in the following line of code, the caseSensitive parameter determines whether the Groovy function performs case-sensitive comparison on the value.
requestHeaderContains(Map<String, String> fieldValuesMap, boolean caseSensitive)