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:md="urn:oasis:names:tc:SAML:2.0:metadata"
7 elementFormDefault="qualified"
8 attributeFormDefault="unqualified"
9 blockDefault="substitution"
12 <import namespace="urn:oasis:names:tc:SAML:1.0:assertion" schemaLocation="cs-sstc-schema-assertion-1.1.xsd"/>
13 <import namespace="urn:oasis:names:tc:SAML:2.0:metadata" schemaLocation="saml-schema-metadata-2.0.xsd"/>
17 1.0 schema for XML-based configuration of Shibboleth target libraries and modules.
18 First appearing in Shibboleth 1.2 release.
22 <complexType name="PluggableType">
24 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
26 <attribute name="type" type="string" use="required"/>
27 <attribute name="uri" type="anyURI" use="optional"/>
28 <anyAttribute namespace="##any" processContents="lax"/>
31 <element name="ShibbolethTargetConfig" type="conf:SPConfigType"/>
32 <element name="SPConfig" type="conf:SPConfigType"/>
33 <complexType name="SPConfigType">
35 <documentation>Root element of configuration file</documentation>
38 <element ref="conf:Extensions" minOccurs="0"/>
39 <choice minOccurs="0">
40 <element name="Global" type="conf:GlobalConfigurationType"/>
41 <element name="SHAR" type="conf:GlobalConfigurationType"/>
43 <choice minOccurs="0">
44 <element name="Local" type="conf:LocalConfigurationType"/>
45 <element name="SHIRE" type="conf:LocalConfigurationType"/>
47 <element ref="conf:Applications"/>
48 <element name="CredentialsProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
49 <element ref="conf:AttributeFactory" minOccurs="0" maxOccurs="unbounded"/>
51 <attribute name="logger" type="anyURI" use="optional"/>
52 <attribute name="clockSkew" type="unsignedInt" use="optional"/>
53 <anyAttribute namespace="##other" processContents="lax"/>
56 <element name="Extensions">
58 <documentation>Container for extension libraries and custom configuration</documentation>
62 <element name="Library" minOccurs="0" maxOccurs="unbounded">
65 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
67 <attribute name="path" type="anyURI" use="required"/>
68 <attribute name="fatal" type="boolean" use="optional"/>
69 <anyAttribute namespace="##other" processContents="lax"/>
72 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
77 <complexType name="GlobalConfigurationType">
79 <documentation>Container for global (server independent) configuration</documentation>
82 <element ref="conf:Extensions" minOccurs="0"/>
84 <element name="UnixListener">
86 <attribute name="address" type="string" use="required"/>
89 <element name="TCPListener">
91 <attribute name="address" type="string" use="required"/>
92 <attribute name="port" type="unsignedInt" use="required"/>
93 <attribute name="acl" use="optional" default="127.0.0.1">
95 <list itemType="string"/>
100 <element name="MemoryListener" type="conf:PluggableType"/>
101 <element name="Listener" type="conf:PluggableType"/>
104 <element name="MemorySessionCache">
106 <attributeGroup ref="conf:SessionCacheProperties"/>
107 <anyAttribute namespace="##other" processContents="lax"/>
110 <element name="MySQLSessionCache">
113 <element name="Argument" type="string" minOccurs="0" maxOccurs="unbounded"/>
115 <attributeGroup ref="conf:SessionCacheProperties"/>
116 <attribute name="mysqlTimeout" type="unsignedInt" use="optional" default="14400"/>
117 <attribute name="storeAttributes" type="boolean" use="optional" default="false"/>
118 <anyAttribute namespace="##other" processContents="lax"/>
121 <element name="SessionCache">
124 <extension base="conf:PluggableType">
125 <attributeGroup ref="conf:SessionCacheProperties"/>
131 <choice minOccurs="0">
132 <element name="MySQLReplayCache">
135 <element name="Argument" type="string" minOccurs="0" maxOccurs="unbounded"/>
137 <anyAttribute namespace="##other" processContents="lax"/>
140 <element name="ReplayCache" type="conf:PluggableType"/>
142 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
144 <attribute name="logger" type="anyURI" use="optional"/>
145 <anyAttribute namespace="##other" processContents="lax"/>
148 <attributeGroup name="SessionCacheProperties">
149 <attribute name="cleanupInterval" type="unsignedInt" use="optional" default="300"/>
150 <attribute name="cacheTimeout" type="unsignedInt" use="optional" default="28800"/>
151 <attribute name="AAConnectTimeout" type="unsignedInt" use="optional" default="15"/>
152 <attribute name="AATimeout" type="unsignedInt" use="optional" default="30"/>
153 <attribute name="defaultLifetime" type="unsignedInt" use="optional" default="1800"/>
154 <attribute name="retryInterval" type="unsignedInt" use="optional" default="300"/>
155 <attribute name="strictValidity" type="boolean" use="optional" default="true"/>
156 <attribute name="propagateErrors" type="boolean" use="optional" default="false"/>
159 <complexType name="LocalConfigurationType">
162 Container for configuration of locally integrated or platform-specific
163 features (e.g. web server filters)
167 <element ref="conf:Extensions" minOccurs="0"/>
168 <element name="RequestMapProvider" type="conf:PluggableType" minOccurs="0"/>
169 <element name="Implementation" minOccurs="0">
171 <choice maxOccurs="unbounded">
172 <element ref="conf:ISAPI"/>
173 <any namespace="##other" processContents="lax"/>
177 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
179 <attribute name="logger" type="anyURI" use="optional"/>
180 <attribute name="localRelayState" type="boolean" use="optional" default="false"/>
181 <anyAttribute namespace="##other" processContents="lax"/>
184 <element name="ISAPI">
187 <element name="Site" maxOccurs="unbounded">
190 <element name="Alias" type="string" minOccurs="0" maxOccurs="unbounded"/>
192 <attribute name="id" type="unsignedInt" use="required"/>
193 <attribute name="name" type="string" use="required"/>
194 <attribute name="port" type="unsignedInt" use="optional"/>
195 <attribute name="sslport" type="unsignedInt" use="optional"/>
196 <attribute name="scheme" type="string" use="optional"/>
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="AccessControl" 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="authType" type="string" use="optional"/>
249 <attribute name="requireSession" type="boolean" use="optional"/>
250 <attribute name="requireSessionWith" type="string" use="optional"/>
251 <attribute name="exportAssertion" type="boolean" use="optional"/>
252 <anyAttribute namespace="##other" processContents="lax"/>
254 <element name="AccessControlProvider" type="conf:PluggableType"/>
255 <element name="htaccess" type="conf:PluggableType"/>
257 <element name="RequestMap">
260 Built-in request mapping syntax, decomposes URLs into Host/Path/Path/...
265 <choice minOccurs="0">
266 <element ref="conf:htaccess"/>
267 <element ref="conf:AccessControl"/>
268 <element ref="conf:AccessControlProvider"/>
270 <element ref="conf:Host" minOccurs="0" maxOccurs="unbounded"/>
272 <attribute name="applicationId" type="string" fixed="default"/>
273 <attributeGroup ref="conf:ContentSettings"/>
277 <element name="Host">
280 <choice minOccurs="0">
281 <element ref="conf:htaccess"/>
282 <element ref="conf:AccessControl"/>
283 <element ref="conf:AccessControlProvider"/>
285 <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
287 <attribute name="scheme" use="optional">
289 <restriction base="string">
290 <enumeration value="http"/>
291 <enumeration value="https"/>
292 <enumeration value="ftp"/>
293 <enumeration value="ldap"/>
294 <enumeration value="ldaps"/>
298 <attribute name="name" type="string" use="required"/>
299 <attribute name="port" type="unsignedInt" use="optional"/>
300 <attribute name="applicationId" type="string" use="optional"/>
301 <attributeGroup ref="conf:ContentSettings"/>
305 <element name="Path">
308 <choice minOccurs="0">
309 <element ref="conf:htaccess"/>
310 <element ref="conf:AccessControl"/>
311 <element ref="conf:AccessControlProvider"/>
313 <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
315 <attribute name="name" type="string" use="required"/>
316 <attribute name="applicationId" type="string" use="optional"/>
317 <attributeGroup ref="conf:ContentSettings"/>
321 <element name="Applications">
323 <documentation>Container for global target settings and application-specific overrides</documentation>
327 <element ref="conf:Sessions"/>
328 <element ref="conf:Errors"/>
329 <element ref="conf:CredentialUse" minOccurs="0"/>
330 <choice minOccurs="0" maxOccurs="unbounded">
331 <element ref="saml:AttributeDesignator"/>
332 <element ref="saml:Audience"/>
333 <element name="AAPProvider" type="conf:PluggableType"/>
334 <!-- deprecated --> <element name="FederationProvider" type="conf:PluggableType"/>
335 <element name="MetadataProvider" type="conf:PluggableType"/>
336 <element name="TrustProvider" type="conf:PluggableType"/>
338 <element ref="conf:Application" minOccurs="0" maxOccurs="unbounded"/>
340 <attribute name="id" type="string" fixed="default"/>
341 <attribute name="providerId" type="anyURI" use="required"/>
342 <attribute name="homeURL" type="anyURI" use="optional"/>
343 <anyAttribute namespace="##other" processContents="lax"/>
347 <element name="Application">
349 <documentation>Container for application-specific overrides</documentation>
353 <element ref="conf:Sessions" minOccurs="0"/>
354 <element ref="conf:Errors" minOccurs="0"/>
355 <element ref="conf:CredentialUse" minOccurs="0"/>
356 <choice minOccurs="0" maxOccurs="unbounded">
357 <element ref="saml:AttributeDesignator"/>
358 <element ref="saml:Audience"/>
359 <element name="AAPProvider" type="conf:PluggableType"/>
360 <!-- deprecated --> <element name="FederationProvider" type="conf:PluggableType"/>
361 <element name="MetadataProvider" type="conf:PluggableType"/>
362 <element name="TrustProvider" type="conf:PluggableType"/>
365 <attribute name="id" type="string" use="required"/>
366 <attribute name="providerId" type="anyURI" use="optional"/>
367 <attribute name="homeURL" type="anyURI" use="optional"/>
368 <anyAttribute namespace="##other" processContents="lax"/>
372 <element name="KeyInfoResolver" type="conf:PluggableType">
375 Custom plug-in that resolves ds:KeyInfo elements into public keys, used in
376 TrustProvider elements.
381 <element name="Sessions">
383 <documentation>Container for specifying app session establishment and policy</documentation>
386 <choice minOccurs="0" maxOccurs="unbounded">
387 <element ref="conf:SessionInitiator"/>
388 <element ref="md:AssertionConsumerService"/>
389 <element ref="md:SingleLogoutService"/>
390 <element ref="conf:DiagnosticService"/>
391 <element name="ExtensionService" type="conf:PluggableType"/>
393 <!-- deprecated --> <attribute name="wayfURL" type="anyURI" use="optional"/>
394 <!-- deprecated --> <attribute name="shireURL" type="anyURI" use="optional"/>
395 <!-- deprecated --> <attribute name="shireSSL" type="boolean" use="optional"/>
396 <attribute name="handlerURL" type="anyURI" use="optional"/>
397 <attribute name="handlerSSL" type="boolean" use="optional" default="true"/>
398 <attribute name="cookieName" type="string" use="optional"/>
399 <attribute name="cookieProps" type="string" use="optional"/>
400 <attribute name="idpHistory" type="boolean" use="optional" default="true"/>
401 <attribute name="idpHistoryDays" type="unsignedInt" use="optional"/>
402 <attribute name="lifetime" type="unsignedInt" use="optional"/>
403 <attribute name="timeout" type="unsignedInt" use="optional"/>
404 <attribute name="checkAddress" type="boolean" use="optional"/>
405 <attribute name="checkReplay" type="boolean" use="optional" default="true"/>
406 <anyAttribute namespace="##other" processContents="lax"/>
409 <element name="SessionInitiator">
411 <documentation>Used to specify WAYF/Discovery services (external or internal)</documentation>
415 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
417 <attribute name="Location" type="anyURI" use="required"/>
418 <attribute name="Binding" type="anyURI" use="required"/>
419 <attribute name="wayfURL" type="anyURI" use="optional"/>
420 <attribute name="wayfBinding" type="anyURI" use="optional"/>
421 <attribute name="checkCDC" type="anyURI" use="optional"/>
422 <attribute name="isDefault" type="boolean" use="optional"/>
423 <attribute name="id" type="string" use="optional"/>
426 <element name="DiagnosticService">
428 <documentation>Used to specify internal diagnostic capabilities</documentation>
432 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
434 <attribute name="Location" type="anyURI" use="required"/>
435 <attribute name="Binding" type="anyURI" use="required"/>
436 <attribute name="echo" type="boolean" use="optional"/>
437 <attribute name="log" type="boolean" use="optional"/>
438 <attribute name="config" type="boolean" use="optional"/>
439 <attribute name="acl" use="optional">
441 <list itemType="string"/>
447 <element name="Errors">
449 <documentation>Container for error templates and associated details</documentation>
453 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
455 <!-- deprecated --> <attribute name="shire" type="anyURI" use="optional"/>
456 <attribute name="session" type="anyURI" use="optional"/>
457 <attribute name="metadata" type="anyURI" use="optional"/>
458 <attribute name="rm" type="anyURI" use="required"/>
459 <attribute name="access" type="anyURI" use="optional"/>
460 <attribute name="supportContact" type="string" use="optional"/>
461 <attribute name="logoLocation" type="anyURI" use="optional"/>
462 <attribute name="styleSheet" type="anyURI" use="optional"/>
463 <anyAttribute namespace="##any" processContents="lax"/>
467 <attributeGroup name="CredentialUseGroup">
468 <attribute name="TLS" type="string" use="required"/>
469 <attribute name="Signing" type="string" use="required"/>
470 <attribute name="signRequest" type="boolean" use="optional" default="false"/>
471 <attribute name="signedResponse" type="boolean" use="optional" default="false"/>
472 <attribute name="signedAssertions" type="boolean" use="optional" default="false"/>
475 <element name="CredentialUse">
477 <documentation>Container for specifying credentials to use</documentation>
481 <element name="RelyingParty" minOccurs="0" maxOccurs="unbounded">
484 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
486 <attribute name="Name" type="string" use="required"/>
487 <attributeGroup ref="conf:CredentialUseGroup"/>
488 <anyAttribute namespace="##other" processContents="lax"/>
491 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
493 <attributeGroup ref="conf:CredentialUseGroup"/>
494 <anyAttribute namespace="##other" processContents="lax"/>
498 <element name="AttributeFactory">
500 <documentation>Specifies a plugin that implements a specialized SAML attribute</documentation>
504 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
506 <attribute name="type" type="string" use="required"/>
507 <attribute name="AttributeName" type="string" use="required"/>
508 <anyAttribute namespace="##other" processContents="lax"/>