1 <?xml version="1.0" encoding="US-ASCII"?>
2 <schema targetNamespace="urn:mace:shibboleth:1.0"
3 xmlns="http://www.w3.org/2001/XMLSchema"
4 xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
5 xmlns:xml="http://www.w3.org/XML/1998/namespace"
6 xmlns:shib="urn:mace:shibboleth:1.0"
7 xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
8 elementFormDefault="qualified"
9 attributeFormDefault="unqualified"
12 <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
13 <import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
14 <import namespace="urn:oasis:names:tc:SAML:1.0:assertion" schemaLocation="cs-sstc-schema-assertion-1.1.xsd"/>
16 <!-- Status-Related Information -->
19 The following SAML sub-status codes are defined in this namespace:
22 Used with samlp:Requester, signals AA did not recognize handle as valid
26 Relaxes SAML AttributeValue type definition. Xerces-C has a bug that prevents
27 anyAttribute content appearing on anyType. It works in 2.2 but not in later versions.
30 <complexType name="AttributeValueType" mixed="true">
32 <documentation xml:lang="en">
33 By convention, all Shibboleth 1.1 origin attribute values carry this unconstrained xsi:type.
37 <extension base="anyType"/>
41 <!-- Attribute Acceptance Policies -->
43 <simpleType name="AttributeRuleValueType">
44 <restriction base="string">
45 <enumeration value="literal"/>
46 <enumeration value="regexp"/>
47 <enumeration value="xpath"/>
51 <complexType name="SiteRuleType">
53 <element name="Scope" minOccurs="0" maxOccurs="unbounded">
56 <extension base="string">
57 <attribute name="Accept" type="boolean" use="optional" default="true"/>
58 <attribute name="Type" type="shib:AttributeRuleValueType" use="optional" default="literal"/>
59 <anyAttribute namespace="##other" processContents="lax"/>
64 <choice minOccurs="0">
65 <element name="AnyValue">
68 <anyAttribute namespace="##other" processContents="lax"/>
71 <element name="Value" maxOccurs="unbounded">
74 <extension base="string">
75 <attribute name="Type" type="shib:AttributeRuleValueType" use="optional" default="literal"/>
76 <anyAttribute namespace="##other" processContents="lax"/>
85 <element name="AnySite" type="shib:SiteRuleType"/>
86 <element name="SiteRule">
89 <extension base="shib:SiteRuleType">
90 <attribute name="Name" type="string" use="required"/>
91 <anyAttribute namespace="##other" processContents="lax"/>
97 <complexType name="AttributeRuleType">
99 <element ref="shib:AnySite" minOccurs="0"/>
100 <element ref="shib:SiteRule" minOccurs="0" maxOccurs="unbounded"/>
102 <attribute name="Name" type="string" use="required"/>
103 <attribute name="Namespace" type="string" use="optional"/>
104 <attribute name="Factory" type="string" use="optional"/>
105 <attribute name="Alias" type="string" use="optional"/>
106 <attribute name="Header" type="string" use="optional"/>
107 <anyAttribute namespace="##other" processContents="lax"/>
110 <element name="AttributeRule" type="shib:AttributeRuleType">
111 <key name="SiteRuleKey">
112 <selector xpath="./shib:SiteRule"/>
113 <field xpath="@Name"/>
117 <element name="AttributeAcceptancePolicy">
120 <element name="shib:AnyAttribute" minOccurs="0">
125 <element ref="shib:AttributeRule" minOccurs="0" maxOccurs="unbounded"/>
127 <anyAttribute namespace="##other" processContents="lax"/>
132 <!-- Shibboleth Metadata -->
134 <complexType name="SiteType">
136 <documentation xml:lang="en">All sites have a Name attribute, plus optional i18n-ized aliases.</documentation>
139 <element name="Alias" minOccurs="0" maxOccurs="unbounded">
142 <extension base="string">
143 <attribute ref="xml:lang"/>
148 <element name="Contact" type="shib:ContactType" minOccurs="0" maxOccurs="unbounded"/>
150 <attribute name="Name" type="string" use="required"/>
151 <attribute name="ErrorURL" type="anyURI" use="optional"/>
152 <anyAttribute namespace="##any" processContents="lax"/>
155 <simpleType name="ContactTypeType">
156 <restriction base="string">
157 <enumeration value="technical"/>
158 <enumeration value="support"/>
159 <enumeration value="administrative"/>
160 <enumeration value="billing"/>
161 <enumeration value="other"/>
165 <complexType name="ContactType">
166 <annotation><documentation xml:lang="en">A human contact for a site.</documentation></annotation>
168 <attribute name="Type" type="shib:ContactTypeType" use="required"/>
169 <attribute name="Name" type="string" use="required"/>
170 <attribute name="Email" type="string" use="optional"/>
173 <complexType name="regexp_string">
175 <documentation xml:lang="en">A string element with an optional attribute signaling regexp content.</documentation>
178 <extension base="string">
179 <attribute name="regexp" type="boolean" use="optional" default="false"/>
184 <complexType name="AuthorityType">
186 <documentation xml:lang="en">Metadata about a SAML authority.</documentation>
189 <attribute name="Name" type="string" use="required"/>
190 <attribute name="Location" type="anyURI" use="required"/>
191 <anyAttribute namespace="##any" processContents="lax"/>
194 <complexType name="OriginSiteType">
196 <documentation xml:lang="en">
197 Origin sites add at least one handle service (with a name), plus optional domains trusted for attribute scoping.
201 <extension base="shib:SiteType">
203 <element name="HandleService" type="shib:AuthorityType" maxOccurs="unbounded"/>
204 <element name="AttributeAuthority" type="shib:AuthorityType" minOccurs="0" maxOccurs="unbounded"/>
205 <element name="Domain" type="shib:regexp_string" minOccurs="0" maxOccurs="unbounded"/>
211 <complexType name="DestinationSiteType">
213 <documentation xml:lang="en">
214 Destination sites add at least one attribute requester (with a name).
218 <extension base="shib:SiteType">
220 <element name="AssertionConsumerServiceURL" maxOccurs="unbounded">
223 <attribute name="Location" type="string" use="required"/>
224 <attribute name="Id" type="string" use="optional"/>
225 <anyAttribute namespace="##any" processContents="lax"/>
228 <element name="AttributeRequester" maxOccurs="unbounded">
231 <attribute name="Name" type="string" use="required"/>
232 <anyAttribute namespace="##any" processContents="lax"/>
240 <complexType name="SiteGroupType">
242 <documentation xml:lang="en">Used to logically group sites together, optionally signed.</documentation>
245 <choice maxOccurs="unbounded">
246 <element ref="shib:OriginSite"/>
247 <element ref="shib:DestinationSite"/>
248 <element ref="shib:SiteGroup"/>
250 <element ref="ds:Signature" minOccurs="0"/>
252 <attribute name="Name" type="string" use="required"/>
253 <attribute name="lastChanged" type="dateTime" use="optional"/>
254 <attribute name="validUntil" type="dateTime" use="optional"/>
255 <attribute name="cacheDuration" type="duration" use="optional"/>
256 <anyAttribute namespace="##any" processContents="lax"/>
259 <element name="OriginSite" type="shib:OriginSiteType"/>
260 <element name="DestinationSite" type="shib:DestinationSiteType"/>
261 <element name="SiteGroup" type="shib:SiteGroupType"/>
264 <!-- Old (pre 1.2) Trust Metadata -->
266 <complexType name="KeyAuthorityType">
268 <documentation xml:lang="en">
269 Binds a set of keying material to one or more named system entities.
273 <element ref="ds:KeyInfo"/>
274 <element name="Subject" type="shib:regexp_string" minOccurs="0" maxOccurs="unbounded"/>
276 <anyAttribute namespace="##any" processContents="lax"/>
278 <element name="KeyAuthority" type="shib:KeyAuthorityType"/>
280 <element name="Trust">
282 <documentation xml:lang="en">An optionally signed collection of KeyAuthority data.</documentation>
286 <element ref="shib:KeyAuthority" maxOccurs="unbounded"/>
287 <element ref="ds:Signature" minOccurs="0"/>
289 <attribute name="lastChanged" type="dateTime" use="optional"/>
290 <attribute name="validUntil" type="dateTime" use="optional"/>
291 <attribute name="cacheDuration" type="duration" use="optional"/>
292 <anyAttribute namespace="##any" processContents="lax"/>