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 1/2 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 <element name="Attribute" type="am:AttributeType" maxOccurs="unbounded"/>
51 <element ref="ds:Signature" minOccurs="0"/>
53 <attribute name="metadataPolicyId" type="am:string"/>
57 <complexType name="AttributeType">
59 <documentation>Rule for mapping a SAML 1/2 attribute to an internal attribute.</documentation>
62 <element name="AttributeDecoder" type="am:AttributeDecoderType" minOccurs="0"/>
64 <attribute name="id" type="am:string" use="required">
66 <documentation>The internal attribute ID to which this SAML attribute maps.</documentation>
69 <attribute name="aliases" type="am:listOfStrings">
71 <documentation>Optional aliases for the internal attribute to which this SAML attribute maps.</documentation>
74 <attribute name="name" type="am:string" use="required">
76 <documentation>The SAML 1 AttributeName or SAML 2 Name of the attribute.</documentation>
79 <attribute name="nameFormat" type="am:string">
81 <documentation>The SAML 1 Namespace or SAML 2 NameFormat of the attribute.</documentation>
84 <attribute name="isRequested" type="boolean">
86 <documentation>Marks an attribute as requested by the service.</documentation>
89 <attribute name="isRequired" type="boolean">
91 <documentation>Marks an attribute as required by the service.</documentation>
96 <complexType name="AttributeDecoderType" abstract="true">
99 Decodes a SAML attribute into its Shibboleth-internal representation.
102 <attribute name="caseSensitive" type="boolean">
105 Flag controlling case sensitivity when comparisons to the attribute's values are done.
109 <attribute name="internal" type="boolean">
111 <documentation>Flag controlling whether the resulting attribute should be exported for CGI use.</documentation>
114 <attribute name="hashAlg" type="am:string">
117 Crypto-provider-specific name of hash algorithm to use,
118 turning the decoded result into a simple string.
124 <complexType name="StringAttributeDecoder">
127 Decoder for attributes with string values.
131 <extension base="am:AttributeDecoderType" />
135 <complexType name="ScopedAttributeDecoder">
138 Decoder for attributes with scoped values.
142 <extension base="am:AttributeDecoderType">
143 <attribute name="scopeDelimiter" type="am:string">
146 The character(s) used to delimit the scoped information from the scope.
154 <complexType name="NameIDAttributeDecoder">
157 Decoder for attributes with NameID values.
161 <extension base="am:AttributeDecoderType">
162 <attribute name="formatter" type="am:string">
165 The pattern used to generate string versions of the attribute's values.
169 <attribute name="defaultQualifiers" type="boolean">
172 Flag controlling whether to default in values for NameQualifier/SPNameQualifier if not set.
180 <complexType name="NameIDFromScopedAttributeDecoder">
183 Decoder for attributes with scoped values that produces a NameID attribute with
184 the scope dropped and the NameQualifiers defaulted.
188 <extension base="am:ScopedAttributeDecoder">
189 <attribute name="format" type="am:anyURI">
192 Value to use as the NameID Format.
196 <attribute name="defaultQualifiers" type="boolean">
199 Flag controlling whether to default in values for NameQualifier/SPNameQualifier if not set.
203 <attribute name="formatter" type="am:string">
206 The pattern used to generate string versions of the attribute's values.
214 <complexType name="KeyInfoAttributeDecoder">
217 Decoder for attributes with ds:KeyInfo values.
221 <extension base="am:AttributeDecoderType">
223 <element name="KeyInfoResolver" type="am:PluggableType" minOccurs="0"/>
225 <attribute name="hash" type="boolean">
228 Flag controlling whether to hash keys before base64-encoding them.
232 <attribute name="keyInfoHashAlg" type="am:string">
235 Crypto-provider-specific name of hash algorithm to use.
243 <complexType name="XMLAttributeDecoder">
246 Decoder for directly serializing XML values.
250 <extension base="am:AttributeDecoderType"/>
254 <complexType name="DOMAttributeDecoder">
257 Decoder for extracting information from XML values.
261 <extension base="am:AttributeDecoderType">
263 <element name="Mapping" minOccurs="0">
265 <documentation>Optional transform to turn qualified XML names into string names.</documentation>
268 <attribute name="from" type="QName" use="required"/>
269 <attribute name="to" type="am:string" use="required"/>
273 <attribute name="formatter" type="am:string">
276 The pattern used to generate strings from the XML.
284 <complexType name="Base64AttributeDecoder">
287 Decoder for attributes with base64-encoded string values.
291 <extension base="am:AttributeDecoderType" />