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 elementFormDefault="qualified"
7 attributeFormDefault="unqualified"
8 blockDefault="substitution"
11 <import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/>
12 <import namespace="urn:oasis:names:tc:SAML:1.0:assertion" schemaLocation="cs-sstc-schema-assertion-1.1.xsd"/>
16 1.0 schema for XML-based configuration of Shibboleth target libraries and modules.
17 First appearing in Shibboleth 1.2 release.
21 <complexType name="PluggableType">
23 <extension base="anyType">
24 <attribute name="type" type="string" use="required"/>
29 <element name="ShibbolethTargetConfig">
31 <documentation>Outer element of configuration file</documentation>
35 <element ref="conf:Extensions" minOccurs="0"/>
36 <element ref="conf:SHAR" minOccurs="0"/>
37 <element ref="conf:SHIRE" minOccurs="0"/>
38 <element ref="conf:Applications"/>
39 <element name="CredentialsProvider" type="conf:PluggableType" maxOccurs="unbounded"/>
41 <attribute name="logger" type="anyURI" use="optional"/>
42 <attribute name="clockSkew" type="unsignedInt" use="optional"/>
43 <anyAttribute namespace="##other" processContents="lax"/>
47 <element name="Extensions">
49 <documentation>Container for extension libraries and custom configuration</documentation>
53 <element name="Library" minOccurs="0" maxOccurs="unbounded">
56 <extension base="anyType">
57 <attribute name="path" type="anyURI" use="required"/>
58 <attribute name="fatal" type="boolean" use="optional"/>
63 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
70 <documentation>Container for SHAR configuration</documentation>
74 <element ref="conf:Extensions" minOccurs="0"/>
76 <element name="UnixListener">
79 <extension base="anyType">
80 <attribute name="address" type="string" use="required"/>
85 <element name="TCPListener">
88 <extension base="anyType">
89 <attribute name="address" type="string" use="required"/>
90 <attribute name="port" type="unsignedInt" use="required"/>
91 <attribute name="acl" use="optional" default="127.0.0.1">
93 <list itemType="string"/>
100 <element name="Listener" type="conf:PluggableType"/>
103 <element name="MemorySessionCache">
106 <restriction base="anyType" mixed="false">
108 <attributeGroup ref="conf:SessionCacheProperties"/>
109 <anyAttribute namespace="##other" processContents="lax"/>
114 <element name="MySQLSessionCache">
117 <restriction base="anyType" mixed="false">
119 <element name="Argument" type="string" minOccurs="0" maxOccurs="unbounded"/>
121 <attributeGroup ref="conf:SessionCacheProperties"/>
122 <attribute name="mysqlTimeout" type="unsignedInt" use="optional" default="14400"/>
123 <anyAttribute namespace="##other" processContents="lax"/>
128 <element name="SessionCache">
131 <extension base="conf:PluggableType">
132 <attributeGroup ref="conf:SessionCacheProperties"/>
138 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
140 <attribute name="logger" type="anyURI" use="optional"/>
141 <anyAttribute namespace="##other" processContents="lax"/>
145 <attributeGroup name="SessionCacheProperties">
146 <attribute name="cleanupInterval" type="unsignedInt" use="optional" default="300"/>
147 <attribute name="cacheTimeout" type="unsignedInt" use="optional" default="28800"/>
148 <attribute name="AAConnectTimeout" type="unsignedInt" use="optional" default="15"/>
149 <attribute name="AATimeout" type="unsignedInt" use="optional" default="30"/>
150 <attribute name="defaultLifetime" type="unsignedInt" use="optional" default="1800"/>
151 <attribute name="retryInterval" type="unsignedInt" use="optional" default="300"/>
152 <attribute name="strictValidity" type="boolean" use="optional" default="true"/>
153 <attribute name="propagateErrors" type="boolean" use="optional" default="false"/>
156 <element name="SHIRE">
159 Container for configuration glue between target library and the surrounding application environment.
164 <element ref="conf:Extensions" minOccurs="0"/>
165 <element name="RequestMapProvider" type="conf:PluggableType" minOccurs="0"/>
166 <element name="Implementation" minOccurs="0">
168 <choice maxOccurs="unbounded">
169 <element ref="conf:ISAPI"/>
170 <element ref="conf:NSAPI"/>
171 <element ref="conf:Java"/>
172 <any namespace="##other" processContents="lax"/>
176 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
178 <attribute name="logger" type="anyURI" use="optional"/>
179 <anyAttribute namespace="##other" processContents="lax"/>
183 <element name="ISAPI">
186 <element name="Site" maxOccurs="unbounded">
189 <extension base="anyType">
190 <attribute name="id" type="unsignedInt" use="required"/>
191 <attribute name="name" type="string" use="required"/>
192 <attribute name="port" type="unsignedInt" use="optional"/>
193 <attribute name="scheme" type="string" use="optional"/>
198 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
200 <attribute name="normalizeRequest" type="boolean" use="optional"/>
201 <anyAttribute namespace="##other" 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="##other" 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 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
323 <element ref="conf:Sessions"/>
324 <element ref="conf:Errors"/>
325 <element ref="conf:CredentialUse" minOccurs="0"/>
326 <choice minOccurs="0" maxOccurs="unbounded">
327 <element ref="saml:AttributeDesignator"/>
328 <element ref="saml:Audience"/>
329 <element name="AAPProvider" type="conf:PluggableType"/>
330 <element name="FederationProvider" type="conf:PluggableType"/>
331 <element name="TrustProvider" type="conf:PluggableType"/>
332 <element name="RevocationProvider" type="conf:PluggableType"/>
334 <element ref="conf:Application" minOccurs="0" maxOccurs="unbounded"/>
336 <attribute name="id" type="string" fixed="default"/>
337 <attribute name="providerId" type="anyURI" use="required"/>
338 <attribute name="signRequest" type="boolean" use="optional" default="false"/>
339 <attribute name="signedResponse" type="boolean" use="optional" default="false"/>
340 <attribute name="signedAssertions" type="boolean" use="optional" default="false"/>
341 <anyAttribute namespace="##other" processContents="lax"/>
345 <element name="Application">
348 Container for application-specific overrides
353 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
354 <element ref="conf:Sessions"/>
355 <element ref="conf:Errors" minOccurs="0"/>
356 <element ref="conf:CredentialUse" minOccurs="0"/>
357 <choice minOccurs="0" maxOccurs="unbounded">
358 <element ref="saml:AttributeDesignator"/>
359 <element ref="saml:Audience"/>
360 <element name="AAPProvider" type="conf:PluggableType"/>
361 <element name="FederationProvider" type="conf:PluggableType"/>
362 <element name="TrustProvider" type="conf:PluggableType"/>
363 <element name="RevocationProvider" type="conf:PluggableType"/>
366 <attribute name="id" type="string" use="required"/>
367 <attribute name="providerId" type="anyURI" use="optional"/>
368 <attribute name="signRequest" type="boolean" use="optional" default="false"/>
369 <attribute name="signedResponse" type="boolean" use="optional" default="false"/>
370 <attribute name="signedAssertions" type="boolean" use="optional" default="false"/>
371 <anyAttribute namespace="##other" processContents="lax"/>
375 <element name="Sessions">
377 <documentation>Container for specifying app session establishment and policy</documentation>
381 <extension base="anyType">
382 <attribute name="wayfURL" type="anyURI" use="required"/>
383 <attribute name="shireURL" type="anyURI" use="required"/>
384 <attribute name="shireSSL" type="boolean" use="optional"/>
385 <attribute name="cookieName" type="string" use="optional"/>
386 <attribute name="cookieProps" type="string" use="optional"/>
387 <attribute name="lifetime" type="unsignedInt" use="optional"/>
388 <attribute name="timeout" type="unsignedInt" use="optional"/>
389 <attribute name="checkAddress" type="boolean" use="optional"/>
390 <attribute name="oldAuthnRequest" type="boolean" use="optional"/>
396 <element name="Errors">
398 <documentation>Container for error templates and associated details</documentation>
402 <extension base="anyType">
403 <attribute name="shire" type="anyURI" use="required"/>
404 <attribute name="rm" type="anyURI" use="required"/>
405 <attribute name="access" type="anyURI" use="required"/>
406 <attribute name="supportContact" type="string" use="optional"/>
407 <attribute name="logoLocation" type="anyURI" use="optional"/>
408 <attribute name="styleSheet" type="anyURI" use="optional"/>
414 <element name="CredentialUse">
416 <documentation>Container for specifying credentials to use</documentation>
420 <element name="RelyingParty" minOccurs="0" maxOccurs="unbounded">
423 <extension base="anyType">
424 <attribute name="Name" type="string" use="required"/>
425 <attribute name="TLS" type="string" use="required"/>
426 <attribute name="Signing" type="string" use="required"/>
431 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
433 <attribute name="TLS" type="string" use="required"/>
434 <attribute name="Signing" type="string" use="required"/>
435 <anyAttribute namespace="##other" processContents="lax"/>