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>
86 <complexType name="AttributeDecoderType" abstract="true">
89 Decodes a SAML attribute into its Shibboleth-internal representation.
92 <attribute name="caseSensitive" type="boolean">
95 Flag controlling case sensitivity when comparisons to the attribute's values are done.
99 <attribute name="internal" type="boolean">
101 <documentation>Flag controlling whether the resulting attribute should be exported for CGI use.</documentation>
104 <attribute name="hashAlg" type="am:string">
107 Crypto-provider-specific name of hash algorithm to use,
108 turning the decoded result into a simple string.
114 <complexType name="StringAttributeDecoder">
117 Decoder for attributes with string values.
121 <extension base="am:AttributeDecoderType" />
125 <complexType name="ScopedAttributeDecoder">
128 Decoder for attributes with scoped values.
132 <extension base="am:AttributeDecoderType">
133 <attribute name="scopeDelimiter" type="am:string">
136 The character(s) used to delimit the scoped information from the scope.
144 <complexType name="NameIDAttributeDecoder">
147 Decoder for attributes with NameID values.
151 <extension base="am:AttributeDecoderType">
152 <attribute name="formatter" type="am:string">
155 The pattern used to generate string versions of the attribute's values.
159 <attribute name="defaultQualifiers" type="boolean">
162 Flag controlling whether to default in values for NameQualifier/SPNameQualifier if not set.
170 <complexType name="NameIDFromScopedAttributeDecoder">
173 Decoder for attributes with scoped values that produces a NameID attribute with
174 the scope dropped and the NameQualifiers defaulted.
178 <extension base="am:ScopedAttributeDecoder">
179 <attribute name="format" type="am:anyURI">
182 Value to use as the NameID Format.
186 <attribute name="defaultQualifiers" type="boolean">
189 Flag controlling whether to default in values for NameQualifier/SPNameQualifier if not set.
193 <attribute name="formatter" type="am:string">
196 The pattern used to generate string versions of the attribute's values.
204 <complexType name="KeyInfoAttributeDecoder">
207 Decoder for attributes with ds:KeyInfo values.
211 <extension base="am:AttributeDecoderType">
213 <element name="KeyInfoResolver" type="am:PluggableType" minOccurs="0"/>
215 <attribute name="hash" type="boolean">
218 Flag controlling whether to hash keys before base64-encoding them.
222 <attribute name="keyInfoHashAlg" type="am:string">
225 Crypto-provider-specific name of hash algorithm to use.
233 <complexType name="XMLAttributeDecoder">
236 Decoder for directly serializing XML values.
240 <extension base="am:AttributeDecoderType"/>
244 <complexType name="DOMAttributeDecoder">
247 Decoder for extracting information from XML values.
251 <extension base="am:AttributeDecoderType">
253 <element name="Mapping" minOccurs="0">
255 <documentation>Optional transform to turn qualified XML names into string names.</documentation>
258 <attribute name="from" type="QName" use="required"/>
259 <attribute name="to" type="am:string" use="required"/>
263 <attribute name="formatter" type="am:string">
266 The pattern used to generate strings from the XML.