ContextDerivedAttributeAttributeDefinition
Namespace: urn:mace:shibboleth:2.0:resolver
Schema: http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd
Overview
The ContextDerivedAttribute AttributeDefinition exposes the attributes values generated in some externally specified manner from the ProfileRequestContext. It's an extension point for plugging Java logic into the resolver without requiring custom schema and Spring parsing code.
Reference
Name | Type | Description |
|---|
Name | Type | Description |
|---|---|---|
attributeValuesFunctionRef | Bean ID | Bean ID of a Function<ProfileRequestContext,List<IdPAttributeValue>> to invoke |
Name | Type | Default | Description |
|---|
Name | Type | Default | Description |
|---|---|---|---|
id | String | Identifier for the IdPAttribute as well as its definition. This is used for logging and to establish dependencies and relationships between connectors and definitions, and to reference the data item in filter rules and many other configuration features. Note that the value MUST NOT contain whitespace, and use of certain other special characters will result in warnings that should be addressed in case the rules are made more strict in future versions. | |
activationConditionRef | Bean Reference | Bean ID of a condition to decide whether to resolve this definition, see here. | |
relyingParties | Space-delimited list | List of entity IDs for which this Attribute Definition should be resolved. | |
excludeRelyingParties | Space-delimited list | List of entity IDs for which this Attribute Definition should not be resolved. | |
resolutionPhases | space-delimited list | List of resolution labels for which this Attribute Definition should be resolved; this corresponds to values that are sometimes set in the AttributeResolutionContext’s “resolutionLabel” field. | |
excludeResolutionPhases | space-delimited list | List of resolution labels for which this Attribute Definition should not be resolved; this corresponds to values that are sometimes set in the AttributeResolutionContext’s “resolutionLabel” field. | |
dependencyOnly | Boolean | false | If set to true, the attribute is not exposed outside the resolution process and is available solely within the resolution process |
Boolean | false | If set to true, the attribute (and its dependencies) will be resolved in pre-pass and its value made available to other definitions' ActivationConditions. See PreRequestedAttributes for details. | |
propagateResolutionExceptions | Boolean | true | Whether connector/plugin failure is fatal to the entire attribute resolution process. |
Note that this attribute definition does not require <InputAttributeDefinition> or <InputDataConnector> child elements since the information is not resolved from a dependency. If any are supplied, then they are ignored.
Name | Cardinality | Description |
|---|
Name | Cardinality | Description |
|---|---|---|
<InputAttributeDefinition> | 0 or more | This element identifies an attribute definition which is an input to this attribute definition. |
<InputDataConnector> | 0 or more | This element identifies a data connector whose attributes are to be input to this attribute definition. |
<AttributeEncoder> | 0 or more | An inline definition of how an attribute will be encoded for inclusion in a message to a relying party. These are distinguished by an Replaceable via the more generic AttributeRegistryConfiguration. |
<DisplayName> | 0 or more | A human readable name for this attribute. This name may, for example, be displayed to the user to consent to the attribute's release. If multiple display names are used, then they should bear an Replaceable via the more generic AttributeRegistryConfiguration. |
<DisplayDescription> | 0 or more | A human readable description of for this attribute. This name may, for example, be displayed to the user to consent to the attribute's release. If multiple display descriptions are used, then they should bear an Replaceable via the more generic AttributeRegistryConfiguration. |
Example
<AttributeDefinition xsi:type="ContextDerivedAttribute" id="PD1" attributeValuesFunctionRef="ctxAttributeValuesFunction">