1 <?xml version="1.0" encoding="UTF-8"?>
2 <schema targetNamespace="urn:mace:shibboleth:2.0:attribute-map"
3 xmlns="http://www.w3.org/2001/XMLSchema"
4 xmlns:am="urn:mace:shibboleth:2.0:attribute-map"
5 xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
6 elementFormDefault="qualified"
9 <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd" />
13 This schema maps SAML attributes into Shibboleth internal attributes.
17 <simpleType name="string">
18 <restriction base="string">
19 <minLength value="1"/>
23 <simpleType name="anyURI">
24 <restriction base="anyURI">
25 <minLength value="1"/>
29 <simpleType name="listOfStrings">
30 <list itemType="am:string"/>
33 <complexType name="PluggableType">
35 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
37 <attribute name="type" type="am:string" use="required"/>
38 <anyAttribute namespace="##any" processContents="lax"/>
41 <element name="Attributes">
43 <documentation>The set of SAML or GSS-API attribute mappings.</documentation>
47 <element name="MetadataProvider" type="am:PluggableType" minOccurs="0"/>
48 <element name="TrustEngine" type="am:PluggableType" minOccurs="0"/>
49 <element name="AttributeFilter" type="am:PluggableType" minOccurs="0"/>
50 <choice maxOccurs="unbounded">
51 <element name="Attribute" type="am:AttributeType"/>
52 <element name="GSSAPIAttribute" type="am:GSSAPIAttributeType"/>
54 <element ref="ds:Signature" minOccurs="0"/>
56 <attribute name="metadataPolicyId" type="am:string"/>
60 <complexType name="AttributeType">
62 <documentation>Rule for mapping a SAML attribute to an internal attribute.</documentation>
65 <element name="AttributeDecoder" type="am:AttributeDecoderType" minOccurs="0"/>
67 <attribute name="id" type="am:string" use="required">
69 <documentation>The internal attribute ID to which this SAML attribute maps.</documentation>
72 <attribute name="aliases" type="am:listOfStrings">
74 <documentation>Optional aliases for the internal attribute to which this SAML attribute maps.</documentation>
77 <attribute name="name" type="am:string" use="required">
79 <documentation>The SAML 1 AttributeName or SAML 2 Name of the attribute.</documentation>
82 <attribute name="nameFormat" type="am:string">
84 <documentation>The SAML 1 Namespace or SAML 2 NameFormat of the attribute.</documentation>
87 <attribute name="isRequested" type="boolean">
89 <documentation>Marks an attribute as requested by the service.</documentation>
92 <attribute name="isRequired" type="boolean">
94 <documentation>Marks an attribute as required by the service.</documentation>
99 <complexType name="GSSAPIAttributeType">
101 <documentation>Rule for mapping a GSS-API naming attribute to an internal attribute.</documentation>
103 <attribute name="id" type="am:string" use="required">
105 <documentation>The internal attribute ID to which this SAML attribute maps.</documentation>
108 <attribute name="aliases" type="am:listOfStrings">
110 <documentation>Optional aliases for the internal attribute to which this SAML attribute maps.</documentation>
113 <attribute name="name" type="am:string" use="required">
115 <documentation>The SAML 1 AttributeName or SAML 2 Name of the attribute.</documentation>
118 <attribute name="authenticated" type="boolean">
120 <documentation>If true, only an authenticated GSS-API naming attribute will be mapped.</documentation>
123 <attribute name="scopeDelimiter" type="am:string">
126 The character(s) used to delimit the scoped information from the scope.
132 <complexType name="AttributeDecoderType" abstract="true">
135 Decodes a SAML attribute into its Shibboleth-internal representation.
138 <attribute name="caseSensitive" type="boolean">
141 Flag controlling case sensitivity when comparisons to the attribute's values are done.
145 <attribute name="internal" type="boolean">
147 <documentation>Flag controlling whether the resulting attribute should be exported for CGI use.</documentation>
150 <attribute name="hashAlg" type="am:string">
153 Crypto-provider-specific name of hash algorithm to use,
154 turning the decoded result into a simple string.
160 <complexType name="StringAttributeDecoder">
163 Decoder for attributes with string values.
167 <extension base="am:AttributeDecoderType" />
171 <complexType name="ScopedAttributeDecoder">
174 Decoder for attributes with scoped values.
178 <extension base="am:AttributeDecoderType">
179 <attribute name="scopeDelimiter" type="am:string">
182 The character(s) used to delimit the scoped information from the scope.
190 <complexType name="NameIDAttributeDecoder">
193 Decoder for attributes with NameID values.
197 <extension base="am:AttributeDecoderType">
198 <attribute name="formatter" type="am:string">
201 The pattern used to generate string versions of the attribute's values.
205 <attribute name="defaultQualifiers" type="boolean">
208 Flag controlling whether to default in values for NameQualifier/SPNameQualifier if not set.
216 <complexType name="NameIDFromScopedAttributeDecoder">
219 Decoder for attributes with scoped values that produces a NameID attribute with
220 the scope dropped and the NameQualifiers defaulted.
224 <extension base="am:ScopedAttributeDecoder">
225 <attribute name="format" type="am:anyURI">
228 Value to use as the NameID Format.
232 <attribute name="defaultQualifiers" type="boolean">
235 Flag controlling whether to default in values for NameQualifier/SPNameQualifier if not set.
239 <attribute name="formatter" type="am:string">
242 The pattern used to generate string versions of the attribute's values.
250 <complexType name="KeyInfoAttributeDecoder">
253 Decoder for attributes with ds:KeyInfo values.
257 <extension base="am:AttributeDecoderType">
259 <element name="KeyInfoResolver" type="am:PluggableType" minOccurs="0"/>
261 <attribute name="hash" type="boolean">
264 Flag controlling whether to hash keys before base64-encoding them.
268 <attribute name="keyInfoHashAlg" type="am:string">
271 Crypto-provider-specific name of hash algorithm to use.
279 <complexType name="XMLAttributeDecoder">
282 Decoder for directly serializing XML values.
286 <extension base="am:AttributeDecoderType"/>
290 <complexType name="DOMAttributeDecoder">
293 Decoder for extracting information from XML values.
297 <extension base="am:AttributeDecoderType">
299 <element name="Mapping" minOccurs="0">
301 <documentation>Optional transform to turn qualified XML names into string names.</documentation>
304 <attribute name="from" type="QName" use="required"/>
305 <attribute name="to" type="am:string" use="required"/>
309 <attribute name="formatter" type="am:string">
312 The pattern used to generate strings from the XML.
320 <complexType name="Base64AttributeDecoder">
323 Decoder for attributes with base64-encoded string values.
327 <extension base="am:AttributeDecoderType" />