Versions Compared

Key

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

...

The following example demonstrates the idea. Here the

The custom metadata policy operator bean is EchoDemoOperator. Its valueOperator simply echoes back the value candidate (input1). As the validator is not explicitly defined, its default value (shibboleth.Conditions.TRUE) is used.

Code Block
<bean id="EchoDemoOperator" parent="shibboleth.oidc.MetadataPolicyOperator">
    <property name="valueOperator">
        <bean parent="shibboleth.BiFunctions.Expression" c:expression="#input1">
        </bean>
    </property>   
</bean>

That operator could then be wired to a metadata policy in the following way:

Code Block
{
    "client_name": {
        "default": "A known test application",
        "bean": "EchoDemoOperator"
    }
}

Policy Examples

The following JSON contains an example of a metadata policy:

...