1 <?xml version="1.0" encoding="US-ASCII"?>
2 <schema targetNamespace="urn:mace:shibboleth:target:config:1.0"
3 xmlns="http://www.w3.org/2001/XMLSchema"
4 xmlns:conf="urn:mace:shibboleth:target:config:1.0"
5 xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
6 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7 xsi:schemaLocation="urn:mace:shibboleth:target:config:1.0 shibboleth-targetconfig-1.0.xsd"
8 elementFormDefault="qualified"
9 attributeFormDefault="unqualified"
10 blockDefault="substitution"
13 <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
14 <import namespace="urn:oasis:names:tc:SAML:1.0:assertion" schemaLocation="cs-sstc-schema-assertion-1.1.xsd"/>
18 1.0 schema for XML-based configuration of Shibboleth target libraries and modules.
19 First appearing in Shibboleth 1.2 release.
23 <complexType name="PluggableType">
25 <extension base="anyType">
26 <attribute name="type" type="string" use="required"/>
31 <element name="ShibbolethTargetConfig">
33 <documentation>Outer element of configuration file</documentation>
37 <element ref="conf:Extensions" minOccurs="0"/>
38 <element ref="conf:SHAR" minOccurs="0"/>
39 <element ref="conf:SHIRE" minOccurs="0"/>
40 <element ref="conf:Applications"/>
41 <element name="CredentialsProvider" type="conf:PluggableType" maxOccurs="unbounded"/>
43 <attribute name="logger" type="anyURI" use="optional"/>
44 <anyAttribute namespace="##any" processContents="lax"/>
48 <element name="Extensions">
50 <documentation>Container for extension libraries and custom configuration</documentation>
54 <element name="Library" minOccurs="0" maxOccurs="unbounded">
57 <extension base="anyType">
58 <attribute name="path" type="anyURI" use="required"/>
59 <attribute name="fatal" type="boolean" use="optional"/>
64 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
71 <documentation>Container for SHAR configuration</documentation>
75 <element ref="conf:Extensions" minOccurs="0"/>
77 <element name="UnixListener">
80 <extension base="anyType">
81 <attribute name="address" type="string" use="required"/>
86 <element name="TCPListener">
89 <extension base="anyType">
90 <attribute name="address" type="string" use="required"/>
91 <attribute name="port" type="unsignedInt" use="required"/>
92 <attribute name="acl" use="optional" default="127.0.0.1">
94 <list itemType="string"/>
101 <element name="Listener" type="conf:PluggableType"/>
104 <element name="MemorySessionCache">
107 <extension base="anyType">
108 <attributeGroup ref="conf:SessionCacheProperties"/>
113 <element name="MySQLSessionCache">
116 <restriction base="anyType" mixed="false">
118 <element name="Argument" type="string" minOccurs="0" maxOccurs="unbounded"/>
120 <attributeGroup ref="conf:SessionCacheProperties"/>
121 <attribute name="mysqlTimeout" type="unsignedInt" use="optional" default="14400"/>
122 <anyAttribute namespace="##any" processContents="lax"/>
127 <element name="SessionCache">
130 <extension base="conf:PluggableType">
131 <attributeGroup ref="conf:SessionCacheProperties"/>
137 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
139 <attribute name="logger" type="anyURI" use="optional"/>
140 <anyAttribute namespace="##any" processContents="lax"/>
144 <attributeGroup name="SessionCacheProperties">
145 <attribute name="cleanupInterval" type="unsignedInt" use="optional" default="300"/>
146 <attribute name="cacheTimeout" type="unsignedInt" use="optional" default="28800"/>
147 <attribute name="AAConnectTimeout" type="unsignedInt" use="optional" default="15"/>
148 <attribute name="AATimeout" type="unsignedInt" use="optional" default="30"/>
149 <attribute name="defaultLifetime" type="unsignedInt" use="optional" default="1800"/>
150 <attribute name="retryInterval" type="unsignedInt" use="optional" default="300"/>
151 <attribute name="strictValidity" type="boolean" use="optional" default="true"/>
152 <attribute name="propagateErrors" type="boolean" use="optional" default="false"/>
155 <element name="SHIRE">
158 Container for configuration glue between target library and the surrounding application environment.
163 <element ref="conf:Extensions" minOccurs="0"/>
164 <choice minOccurs="0">
165 <element ref="conf:RequestMap"/>
166 <element name="RequestMapProvider" type="conf:PluggableType"/>
168 <element name="Implementation" minOccurs="0">
170 <choice maxOccurs="unbounded">
171 <element ref="conf:ISAPI"/>
172 <element ref="conf:NSAPI"/>
173 <element ref="conf:Java"/>
174 <any namespace="##other" processContents="lax"/>
178 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
180 <attribute name="logger" type="anyURI" use="optional"/>
181 <anyAttribute namespace="##any" processContents="lax"/>
185 <element name="ISAPI">
188 <element name="Site" maxOccurs="unbounded">
191 <extension base="anyType">
192 <attribute name="id" type="unsignedInt" use="required"/>
193 <attribute name="host" type="string" use="required"/>
198 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
200 <attribute name="normalizeRequest" type="boolean" use="optional"/>
201 <anyAttribute namespace="##any" processContents="lax"/>
204 <element name="NSAPI" type="anyType"/>
205 <element name="Java" type="anyType"/>
207 <element name="htaccess" type="conf:UniOperatorType">
210 A simple example access policy language extension that supersedes Apache .htaccess
214 <element name="OR" type="conf:MultiOperatorType"/>
215 <element name="AND" type="conf:MultiOperatorType"/>
216 <element name="NOT" type="conf:UniOperatorType"/>
217 <complexType name="UniOperatorType">
219 <element ref="conf:AND"/>
220 <element ref="conf:OR"/>
221 <element ref="conf:NOT"/>
222 <element ref="conf:Rule"/>
225 <complexType name="MultiOperatorType">
226 <choice minOccurs="2" maxOccurs="unbounded">
227 <element ref="conf:AND"/>
228 <element ref="conf:OR"/>
229 <element ref="conf:NOT"/>
230 <element ref="conf:Rule"/>
233 <element name="Rule">
236 <extension base="conf:listOfStrings">
237 <attribute name="require" type="string" use="required"/>
242 <simpleType name="listOfStrings">
243 <list itemType='string'/>
246 <attributeGroup name="ContentSettings">
247 <attribute name="requireSession" type="boolean" use="optional"/>
248 <attribute name="exportAssertion" type="boolean" use="optional"/>
249 <anyAttribute namespace="##any" processContents="lax"/>
251 <element name="AccessControlProvider" type="conf:PluggableType"/>
253 <element name="RequestMap">
256 Built-in request mapping syntax, decomposes URLs into Host/Path/Path/...
261 <choice minOccurs="0">
262 <element ref="conf:htaccess"/>
263 <element ref="conf:AccessControlProvider"/>
265 <element ref="conf:Host" minOccurs="0" maxOccurs="unbounded"/>
267 <attribute name="applicationId" type="string" fixed="default"/>
268 <attributeGroup ref="conf:ContentSettings"/>
272 <element name="Host">
275 <choice minOccurs="0">
276 <element ref="conf:htaccess"/>
277 <element ref="conf:AccessControlProvider"/>
279 <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
281 <attribute name="scheme" use="optional" default="http">
283 <restriction base="string">
284 <enumeration value="http"/>
285 <enumeration value="https"/>
286 <enumeration value="ftp"/>
287 <enumeration value="ldap"/>
288 <enumeration value="ldaps"/>
292 <attribute name="name" type="string" use="required"/>
293 <attribute name="port" type="unsignedInt" use="optional"/>
294 <attribute name="applicationId" type="string" use="optional"/>
295 <attributeGroup ref="conf:ContentSettings"/>
299 <element name="Path">
302 <choice minOccurs="0">
303 <element ref="conf:htaccess"/>
304 <element ref="conf:AccessControlProvider"/>
306 <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
308 <attribute name="name" type="string" use="required"/>
309 <attribute name="applicationId" type="string" use="optional"/>
310 <attributeGroup ref="conf:ContentSettings"/>
314 <element name="Applications">
317 Container for global target settings and application-specific overrides
322 <element ref="conf:Sessions"/>
323 <element ref="conf:Errors"/>
324 <element ref="conf:Policy" minOccurs="0"/>
325 <element ref="conf:CredentialUse" minOccurs="0"/>
326 <element ref="conf:Application" minOccurs="0" maxOccurs="unbounded"/>
327 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
329 <attribute name="id" type="string" fixed="default"/>
330 <attribute name="providerId" type="anyURI" use="required"/>
331 <anyAttribute namespace="##any" processContents="lax"/>
335 <element name="Application">
338 Container for application-specific overrides
343 <element ref="conf:Sessions"/>
344 <element ref="conf:Errors" minOccurs="0"/>
345 <element ref="conf:Policy" minOccurs="0"/>
346 <element ref="conf:CredentialUse" minOccurs="0"/>
347 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
349 <attribute name="id" type="string" use="required"/>
350 <attribute name="providerId" type="anyURI" use="optional"/>
351 <anyAttribute namespace="##any" processContents="lax"/>
355 <element name="Sessions">
357 <documentation>Container for specifying app session establishment and policy</documentation>
361 <extension base="anyType">
362 <attribute name="wayfURL" type="anyURI" use="required"/>
363 <attribute name="shireURL" type="anyURI" use="required"/>
364 <attribute name="shireSSL" type="boolean" use="optional"/>
365 <attribute name="cookieName" type="string" use="required"/>
366 <attribute name="cookieProps" type="string" use="optional"/>
367 <attribute name="lifetime" type="unsignedInt" use="optional"/>
368 <attribute name="timeout" type="unsignedInt" use="optional"/>
369 <attribute name="checkAddress" type="boolean" use="optional"/>
370 <anyAttribute namespace="##any" processContents="lax"/>
376 <element name="Errors">
378 <documentation>Container for error templates and associated details</documentation>
382 <extension base="anyType">
383 <attribute name="shire" type="anyURI" use="required"/>
384 <attribute name="rm" type="anyURI" use="required"/>
385 <attribute name="access" type="anyURI" use="required"/>
386 <attribute name="supportContact" type="string" use="required"/>
387 <attribute name="logoLocation" type="anyURI" use="required"/>
388 <anyAttribute namespace="##any" processContents="lax"/>
394 <element name="Policy">
397 Container for specifying various policies for attributes, trust, and federations
402 <element ref="saml:AttributeDesignator" minOccurs="0" maxOccurs="unbounded"/>
403 <element name="AAPProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
404 <element name="FederationProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
405 <element name="TrustProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
406 <element name="RevocationProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
407 <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
408 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
410 <attribute name="signRequest" type="boolean" use="optional" default="false"/>
411 <attribute name="signedResponse" type="boolean" use="optional" default="false"/>
412 <attribute name="signedAssertions" type="boolean" use="optional" default="false"/>
413 <anyAttribute namespace="##any" processContents="lax"/>
417 <element name="CredentialUse">
419 <documentation>Container for specifying credentials to use</documentation>
423 <element name="RelyingParty" minOccurs="0" maxOccurs="unbounded">
426 <extension base="anyType">
427 <attribute name="Name" type="string" use="required"/>
428 <attribute name="TLS" type="string" use="required"/>
429 <attribute name="Signing" type="string" use="required"/>
434 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
436 <attribute name="TLS" type="string" use="required"/>
437 <attribute name="Signing" type="string" use="required"/>
438 <anyAttribute namespace="##any" processContents="lax"/>