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="host" type="string" use="required"/>
196 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
198 <attribute name="normalizeRequest" type="boolean" use="optional"/>
199 <anyAttribute namespace="##other" processContents="lax"/>
202 <element name="NSAPI" type="anyType"/>
203 <element name="Java" type="anyType"/>
205 <element name="htaccess" type="conf:UniOperatorType">
208 A simple example access policy language extension that supersedes Apache .htaccess
212 <element name="OR" type="conf:MultiOperatorType"/>
213 <element name="AND" type="conf:MultiOperatorType"/>
214 <element name="NOT" type="conf:UniOperatorType"/>
215 <complexType name="UniOperatorType">
217 <element ref="conf:AND"/>
218 <element ref="conf:OR"/>
219 <element ref="conf:NOT"/>
220 <element ref="conf:Rule"/>
223 <complexType name="MultiOperatorType">
224 <choice minOccurs="2" maxOccurs="unbounded">
225 <element ref="conf:AND"/>
226 <element ref="conf:OR"/>
227 <element ref="conf:NOT"/>
228 <element ref="conf:Rule"/>
231 <element name="Rule">
234 <extension base="conf:listOfStrings">
235 <attribute name="require" type="string" use="required"/>
240 <simpleType name="listOfStrings">
241 <list itemType='string'/>
244 <attributeGroup name="ContentSettings">
245 <attribute name="requireSession" type="boolean" use="optional"/>
246 <attribute name="exportAssertion" type="boolean" use="optional"/>
247 <anyAttribute namespace="##other" processContents="lax"/>
249 <element name="AccessControlProvider" type="conf:PluggableType"/>
251 <element name="RequestMap">
254 Built-in request mapping syntax, decomposes URLs into Host/Path/Path/...
259 <choice minOccurs="0">
260 <element ref="conf:htaccess"/>
261 <element ref="conf:AccessControlProvider"/>
263 <element ref="conf:Host" minOccurs="0" maxOccurs="unbounded"/>
265 <attribute name="applicationId" type="string" fixed="default"/>
266 <attributeGroup ref="conf:ContentSettings"/>
270 <element name="Host">
273 <choice minOccurs="0">
274 <element ref="conf:htaccess"/>
275 <element ref="conf:AccessControlProvider"/>
277 <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
279 <attribute name="scheme" use="optional" default="http">
281 <restriction base="string">
282 <enumeration value="http"/>
283 <enumeration value="https"/>
284 <enumeration value="ftp"/>
285 <enumeration value="ldap"/>
286 <enumeration value="ldaps"/>
290 <attribute name="name" type="string" use="required"/>
291 <attribute name="port" type="unsignedInt" use="optional"/>
292 <attribute name="applicationId" type="string" use="optional"/>
293 <attributeGroup ref="conf:ContentSettings"/>
297 <element name="Path">
300 <choice minOccurs="0">
301 <element ref="conf:htaccess"/>
302 <element ref="conf:AccessControlProvider"/>
304 <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
306 <attribute name="name" type="string" use="required"/>
307 <attribute name="applicationId" type="string" use="optional"/>
308 <attributeGroup ref="conf:ContentSettings"/>
312 <element name="Applications">
315 Container for global target settings and application-specific overrides
320 <element ref="conf:Sessions"/>
321 <element ref="conf:Errors"/>
322 <element ref="conf:Policy" minOccurs="0"/>
323 <element ref="conf:CredentialUse" minOccurs="0"/>
324 <element ref="conf:Application" minOccurs="0" maxOccurs="unbounded"/>
325 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
327 <attribute name="id" type="string" fixed="default"/>
328 <attribute name="providerId" type="anyURI" use="required"/>
329 <anyAttribute namespace="##other" processContents="lax"/>
333 <element name="Application">
336 Container for application-specific overrides
341 <element ref="conf:Sessions"/>
342 <element ref="conf:Errors" minOccurs="0"/>
343 <element ref="conf:Policy" minOccurs="0"/>
344 <element ref="conf:CredentialUse" minOccurs="0"/>
345 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
347 <attribute name="id" type="string" use="required"/>
348 <attribute name="providerId" type="anyURI" use="optional"/>
349 <anyAttribute namespace="##other" processContents="lax"/>
353 <element name="Sessions">
355 <documentation>Container for specifying app session establishment and policy</documentation>
359 <extension base="anyType">
360 <attribute name="wayfURL" type="anyURI" use="required"/>
361 <attribute name="shireURL" type="anyURI" use="required"/>
362 <attribute name="shireSSL" type="boolean" use="optional"/>
363 <attribute name="cookieName" type="string" use="optional"/>
364 <attribute name="cookieProps" type="string" use="optional"/>
365 <attribute name="lifetime" type="unsignedInt" use="optional"/>
366 <attribute name="timeout" type="unsignedInt" use="optional"/>
367 <attribute name="checkAddress" type="boolean" use="optional"/>
368 <attribute name="oldAuthnRequest" type="boolean" use="optional"/>
374 <element name="Errors">
376 <documentation>Container for error templates and associated details</documentation>
380 <extension base="anyType">
381 <attribute name="shire" type="anyURI" use="required"/>
382 <attribute name="rm" type="anyURI" use="required"/>
383 <attribute name="access" type="anyURI" use="required"/>
384 <attribute name="supportContact" type="string" use="optional"/>
385 <attribute name="logoLocation" type="anyURI" use="optional"/>
386 <attribute name="styleSheet" type="anyURI" use="optional"/>
392 <element name="Policy">
395 Container for specifying various policies for attributes, trust, and federations
400 <element ref="saml:AttributeDesignator" minOccurs="0" maxOccurs="unbounded"/>
401 <element name="AAPProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
402 <element name="FederationProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
403 <element name="TrustProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
404 <element name="RevocationProvider" type="conf:PluggableType" minOccurs="0" maxOccurs="unbounded"/>
405 <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
406 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
408 <attribute name="signRequest" type="boolean" use="optional" default="false"/>
409 <attribute name="signedResponse" type="boolean" use="optional" default="false"/>
410 <attribute name="signedAssertions" type="boolean" use="optional" default="false"/>
411 <anyAttribute namespace="##other" processContents="lax"/>
415 <element name="CredentialUse">
417 <documentation>Container for specifying credentials to use</documentation>
421 <element name="RelyingParty" minOccurs="0" maxOccurs="unbounded">
424 <extension base="anyType">
425 <attribute name="Name" type="string" use="required"/>
426 <attribute name="TLS" type="string" use="required"/>
427 <attribute name="Signing" type="string" use="required"/>
432 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
434 <attribute name="TLS" type="string" use="required"/>
435 <attribute name="Signing" type="string" use="required"/>
436 <anyAttribute namespace="##other" processContents="lax"/>