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 <choice minOccurs="0">
166 <element ref="conf:RequestMap"/>
167 <element name="RequestMapProvider" type="conf:PluggableType"/>
169 <element name="Implementation" minOccurs="0">
171 <choice maxOccurs="unbounded">
172 <element ref="conf:ISAPI"/>
173 <element ref="conf:NSAPI"/>
174 <element ref="conf:Java"/>
175 <any namespace="##other" processContents="lax"/>
179 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
181 <attribute name="logger" type="anyURI" use="optional"/>
182 <anyAttribute namespace="##other" processContents="lax"/>
186 <element name="ISAPI">
189 <element name="Site" maxOccurs="unbounded">
192 <extension base="anyType">
193 <attribute name="id" type="unsignedInt" use="required"/>
194 <attribute name="host" type="string" use="required"/>
199 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
201 <attribute name="normalizeRequest" type="boolean" use="optional"/>
202 <anyAttribute namespace="##other" processContents="lax"/>
205 <element name="NSAPI" type="anyType"/>
206 <element name="Java" type="anyType"/>
208 <element name="htaccess" type="conf:UniOperatorType">
211 A simple example access policy language extension that supersedes Apache .htaccess
215 <element name="OR" type="conf:MultiOperatorType"/>
216 <element name="AND" type="conf:MultiOperatorType"/>
217 <element name="NOT" type="conf:UniOperatorType"/>
218 <complexType name="UniOperatorType">
220 <element ref="conf:AND"/>
221 <element ref="conf:OR"/>
222 <element ref="conf:NOT"/>
223 <element ref="conf:Rule"/>
226 <complexType name="MultiOperatorType">
227 <choice minOccurs="2" maxOccurs="unbounded">
228 <element ref="conf:AND"/>
229 <element ref="conf:OR"/>
230 <element ref="conf:NOT"/>
231 <element ref="conf:Rule"/>
234 <element name="Rule">
237 <extension base="conf:listOfStrings">
238 <attribute name="require" type="string" use="required"/>
243 <simpleType name="listOfStrings">
244 <list itemType='string'/>
247 <attributeGroup name="ContentSettings">
248 <attribute name="requireSession" type="boolean" use="optional"/>
249 <attribute name="exportAssertion" type="boolean" use="optional"/>
250 <anyAttribute namespace="##other" processContents="lax"/>
252 <element name="AccessControlProvider" type="conf:PluggableType"/>
254 <element name="RequestMap">
257 Built-in request mapping syntax, decomposes URLs into Host/Path/Path/...
262 <choice minOccurs="0">
263 <element ref="conf:htaccess"/>
264 <element ref="conf:AccessControlProvider"/>
266 <element ref="conf:Host" minOccurs="0" maxOccurs="unbounded"/>
268 <attribute name="applicationId" type="string" fixed="default"/>
269 <attributeGroup ref="conf:ContentSettings"/>
273 <element name="Host">
276 <choice minOccurs="0">
277 <element ref="conf:htaccess"/>
278 <element ref="conf:AccessControlProvider"/>
280 <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
282 <attribute name="scheme" use="optional" default="http">
284 <restriction base="string">
285 <enumeration value="http"/>
286 <enumeration value="https"/>
287 <enumeration value="ftp"/>
288 <enumeration value="ldap"/>
289 <enumeration value="ldaps"/>
293 <attribute name="name" type="string" use="required"/>
294 <attribute name="port" type="unsignedInt" use="optional"/>
295 <attribute name="applicationId" type="string" use="optional"/>
296 <attributeGroup ref="conf:ContentSettings"/>
300 <element name="Path">
303 <choice minOccurs="0">
304 <element ref="conf:htaccess"/>
305 <element ref="conf:AccessControlProvider"/>
307 <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
309 <attribute name="name" type="string" use="required"/>
310 <attribute name="applicationId" type="string" use="optional"/>
311 <attributeGroup ref="conf:ContentSettings"/>
315 <element name="Applications">
318 Container for global target settings and application-specific overrides
323 <element ref="conf:Sessions"/>
324 <element ref="conf:Errors"/>
325 <element ref="conf:Policy" minOccurs="0"/>
326 <element ref="conf:CredentialUse" minOccurs="0"/>
327 <element ref="conf:Application" minOccurs="0" maxOccurs="unbounded"/>
328 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
330 <attribute name="id" type="string" fixed="default"/>
331 <attribute name="providerId" type="anyURI" use="required"/>
332 <anyAttribute namespace="##other" processContents="lax"/>
336 <element name="Application">
339 Container for application-specific overrides
344 <element ref="conf:Sessions"/>
345 <element ref="conf:Errors" minOccurs="0"/>
346 <element ref="conf:Policy" minOccurs="0"/>
347 <element ref="conf:CredentialUse" minOccurs="0"/>
348 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
350 <attribute name="id" type="string" use="required"/>
351 <attribute name="providerId" type="anyURI" use="optional"/>
352 <anyAttribute namespace="##other" processContents="lax"/>
356 <element name="Sessions">
358 <documentation>Container for specifying app session establishment and policy</documentation>
362 <extension base="anyType">
363 <attribute name="wayfURL" type="anyURI" use="required"/>
364 <attribute name="shireURL" type="anyURI" use="required"/>
365 <attribute name="shireSSL" type="boolean" use="optional"/>
366 <attribute name="cookieName" type="string" use="optional"/>
367 <attribute name="cookieProps" type="string" use="optional"/>
368 <attribute name="lifetime" type="unsignedInt" use="optional"/>
369 <attribute name="timeout" type="unsignedInt" use="optional"/>
370 <attribute name="checkAddress" type="boolean" use="optional"/>
371 <attribute name="oldAuthnRequest" type="boolean" use="optional"/>
377 <element name="Errors">
379 <documentation>Container for error templates and associated details</documentation>
383 <extension base="anyType">
384 <attribute name="shire" type="anyURI" use="required"/>
385 <attribute name="rm" type="anyURI" use="required"/>
386 <attribute name="access" type="anyURI" use="required"/>
387 <attribute name="supportContact" type="string" use="optional"/>
388 <attribute name="logoLocation" type="anyURI" use="optional"/>
389 <attribute name="styleSheet" type="anyURI" use="optional"/>
395 <element name="Policy">
398 Container for specifying various policies for attributes, trust, and federations
403 <element ref="saml:AttributeDesignator" minOccurs="0" maxOccurs="unbounded"/>
404 <element name="AAPProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
405 <element name="FederationProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
406 <element name="TrustProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
407 <element name="RevocationProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
408 <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
409 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
411 <attribute name="signRequest" type="boolean" use="optional" default="false"/>
412 <attribute name="signedResponse" type="boolean" use="optional" default="false"/>
413 <attribute name="signedAssertions" type="boolean" use="optional" default="false"/>
414 <anyAttribute namespace="##other" processContents="lax"/>
418 <element name="CredentialUse">
420 <documentation>Container for specifying credentials to use</documentation>
424 <element name="RelyingParty" minOccurs="0" maxOccurs="unbounded">
427 <extension base="anyType">
428 <attribute name="Name" type="string" use="required"/>
429 <attribute name="TLS" type="string" use="required"/>
430 <attribute name="Signing" type="string" use="required"/>
435 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
437 <attribute name="TLS" type="string" use="required"/>
438 <attribute name="Signing" type="string" use="required"/>
439 <anyAttribute namespace="##other" processContents="lax"/>