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="GSSAPI" type="base64Binary">
43 <documentation>A wrapper element for GSS-API contexts.</documentation>
47 <element name="Attributes">
49 <documentation>The set of SAML or GSS-API attribute mappings.</documentation>
53 <element name="MetadataProvider" type="am:PluggableType" minOccurs="0"/>
54 <element name="TrustEngine" type="am:PluggableType" minOccurs="0"/>
55 <element name="AttributeFilter" type="am:PluggableType" minOccurs="0"/>
56 <choice maxOccurs="unbounded">
57 <element name="Attribute" type="am:AttributeType"/>
58 <element name="GSSAPIAttribute" type="am:GSSAPIAttributeType"/>
60 <element ref="ds:Signature" minOccurs="0"/>
62 <attribute name="metadataPolicyId" type="am:string"/>
66 <complexType name="AttributeType">
68 <documentation>Rule for mapping a SAML attribute to an internal attribute.</documentation>
71 <element name="AttributeDecoder" type="am:AttributeDecoderType" minOccurs="0"/>
73 <attribute name="id" type="am:string" use="required">
75 <documentation>The internal attribute ID to which this SAML attribute maps.</documentation>
78 <attribute name="aliases" type="am:listOfStrings">
80 <documentation>Optional aliases for the internal attribute to which this SAML attribute maps.</documentation>
83 <attribute name="name" type="am:string" use="required">
85 <documentation>The SAML 1 AttributeName or SAML 2 Name of the attribute.</documentation>
88 <attribute name="nameFormat" type="am:string">
90 <documentation>The SAML 1 Namespace or SAML 2 NameFormat of the attribute.</documentation>
93 <attribute name="isRequested" type="boolean">
95 <documentation>Marks an attribute as requested by the service.</documentation>
98 <attribute name="isRequired" type="boolean">
100 <documentation>Marks an attribute as required by the service.</documentation>
105 <complexType name="GSSAPIAttributeType">
107 <documentation>Rule for mapping a GSS-API naming attribute to an internal attribute.</documentation>
109 <attribute name="id" type="am:string" use="required">
111 <documentation>The internal attribute ID to which this SAML attribute maps.</documentation>
114 <attribute name="aliases" type="am:listOfStrings">
116 <documentation>Optional aliases for the internal attribute to which this SAML attribute maps.</documentation>
119 <attribute name="name" type="am:string" use="required">
121 <documentation>The SAML 1 AttributeName or SAML 2 Name of the attribute.</documentation>
124 <attribute name="authenticated" type="boolean">
126 <documentation>If true, only an authenticated GSS-API naming attribute will be mapped.</documentation>
129 <attribute name="scopeDelimiter" type="am:string">
132 The character(s) used to delimit the scoped information from the scope.
138 <complexType name="AttributeDecoderType" abstract="true">
141 Decodes a SAML attribute into its Shibboleth-internal representation.
144 <attribute name="caseSensitive" type="boolean">
147 Flag controlling case sensitivity when comparisons to the attribute's values are done.
151 <attribute name="internal" type="boolean">
153 <documentation>Flag controlling whether the resulting attribute should be exported for CGI use.</documentation>
156 <attribute name="hashAlg" type="am:string">
159 Crypto-provider-specific name of hash algorithm to use,
160 turning the decoded result into a simple string.
166 <complexType name="StringAttributeDecoder">
169 Decoder for attributes with string values.
173 <extension base="am:AttributeDecoderType" />
177 <complexType name="ScopedAttributeDecoder">
180 Decoder for attributes with scoped values.
184 <extension base="am:AttributeDecoderType">
185 <attribute name="scopeDelimiter" type="am:string">
188 The character(s) used to delimit the scoped information from the scope.
196 <complexType name="NameIDAttributeDecoder">
199 Decoder for attributes with NameID values.
203 <extension base="am:AttributeDecoderType">
204 <attribute name="formatter" type="am:string">
207 The pattern used to generate string versions of the attribute's values.
211 <attribute name="defaultQualifiers" type="boolean">
214 Flag controlling whether to default in values for NameQualifier/SPNameQualifier if not set.
222 <complexType name="NameIDFromScopedAttributeDecoder">
225 Decoder for attributes with scoped values that produces a NameID attribute with
226 the scope dropped and the NameQualifiers defaulted.
230 <extension base="am:ScopedAttributeDecoder">
231 <attribute name="format" type="am:anyURI">
234 Value to use as the NameID Format.
238 <attribute name="defaultQualifiers" type="boolean">
241 Flag controlling whether to default in values for NameQualifier/SPNameQualifier if not set.
245 <attribute name="formatter" type="am:string">
248 The pattern used to generate string versions of the attribute's values.
256 <complexType name="KeyInfoAttributeDecoder">
259 Decoder for attributes with ds:KeyInfo values.
263 <extension base="am:AttributeDecoderType">
265 <element name="KeyInfoResolver" type="am:PluggableType" minOccurs="0"/>
267 <attribute name="hash" type="boolean">
270 Flag controlling whether to hash keys before base64-encoding them.
274 <attribute name="keyInfoHashAlg" type="am:string">
277 Crypto-provider-specific name of hash algorithm to use.
285 <complexType name="XMLAttributeDecoder">
288 Decoder for directly serializing XML values.
292 <extension base="am:AttributeDecoderType"/>
296 <complexType name="DOMAttributeDecoder">
299 Decoder for extracting information from XML values.
303 <extension base="am:AttributeDecoderType">
305 <element name="Mapping" minOccurs="0">
307 <documentation>Optional transform to turn qualified XML names into string names.</documentation>
310 <attribute name="from" type="QName" use="required"/>
311 <attribute name="to" type="am:string" use="required"/>
315 <attribute name="formatter" type="am:string">
318 The pattern used to generate strings from the XML.
326 <complexType name="Base64AttributeDecoder">
329 Decoder for attributes with base64-encoded string values.
333 <extension base="am:AttributeDecoderType" />