Versions Compared

Key

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

Overview

The RequesterRegex (basic:AttributeRequesterRegex is prior to V3.2) is a PolicyRule which returns true if the entityID of the party requesting the attributes (usually the SP) matches the supplied Java regular expression. 

Schema Name

The RequesterRegex  type is defined in the urn:mace:shibboleth:2.0:afp namespace, the schema for which can be located at http://shibboleth.net/schema/idp/shibboleth-afp.xsd

The deprecated basic:AttributeRequesterRegex  type is defined by the defined in the urn:mace:shibboleth:2.0:afp:mf:basic  namespace, the schema , for which can be located at http://shibboleth.net/schema/idp/shibboleth-afp-mf-basic.xsd.

Attributes

Only one attribute may be specified

  • regex : a required attribute which specifies the java regular expression to match against

Child Elements

None

Example

Code Block
<afp:PolicyRequirementRule<PolicyRequirementRule xsi:type="basic:AttributeRequesterRegexRequesterRegex" valueregex="^https://sp.example.org/.*$" />

...

Apply this rule if the SP edtityID started with entityID starts with "https://sp.example.org/".