Namespace: urn:mace:shibboleth:2.0:afp
Schema: http://shibboleth.net/schema/idp/shibboleth-afp.xsd
Overview
The ScopeRegex
type matches attributes values against the supplied Java Regular ExpressionPattern.
Confusingly, the The ScopeRegex
type can be a Matcher or a PolicyRequirement.
If no
that value if it isattributeID
attribute is specified then it is a Matcher (returningthe matching values present amongst the filtered attribute's values, and the empty set otherwise)
If an
that thatattributeID
attribute is specified then it is a PolicyRule (returning true ifa matching value is present amongst the values
forof the specified attribute).
Schema Name
The ScopeRegex
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
Attributes
...
Reference
Expand | ||||
---|---|---|---|---|
| ||||
|
...
|
...
|
...
|
...
Child Elements
None
ExamplesExamples
Apply this rule if the attribute "EPSA" contains at least one scope value whose scope ends .edu:
Simple Profile Policy
Code Block | ||||
---|---|---|---|---|
| ||||
<afp:PolicyRequirementRule xsi:type="AttributeScopeRegex" regex="^.*\.edu$" attributeID="EPSA"/> |
Apply this rule if Add any scoped values of the attribute "EPSA" contains at least one scope value whose scope ends .edu.uid" with scope ending ".edu" to its permitted values list:
Simple Matcher
Code Block | ||||
---|---|---|---|---|
| ||||
<AttributeRule attributeID="uid"> <PermitValueRule xsi:type="ScopeRegex" regex="^.*\.edu$" /> </AttributeRule> |
Add any scoped values of the attribute "uid" with scope ending ".edu" to its permitted values list.Apply this rule if any attribute contains a scope value whose scope ends .edu:
Compound PolicyRule (deprecated)
Code Block | ||||
---|---|---|---|---|
| ||||
<afp:PolicyRequirementRule xsi:type="AttributeScopeRegex" regex="^.*\.edu$"/> |
Apply this rule if any attribute contains a scope value whose scope ends .edu
If the attribute "epsa" contains any scoped which starts ends .edu then release all values of "email":
Compound Matcher (deprecated)
Code Block | ||||
---|---|---|---|---|
| ||||
<AttributeRule attributeID="email"> <PermitValueRule xsi:type="ScopeRegex" regex="^.*\.edu$" attributeID="EPSA"/> </AttributeRule> |
...