1 <?xml version="1.0" encoding="US-ASCII"?>
\r
2 <schema targetNamespace="urn:mace:shibboleth:sp:config:2.0"
\r
3 xmlns="http://www.w3.org/2001/XMLSchema"
\r
4 xmlns:conf="urn:mace:shibboleth:sp:config:2.0"
\r
5 xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
\r
6 xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
\r
7 elementFormDefault="qualified"
\r
8 attributeFormDefault="unqualified"
\r
9 blockDefault="substitution"
\r
12 <import namespace="urn:oasis:names:tc:SAML:2.0:assertion" schemaLocation="saml-schema-assertion-2.0.xsd"/>
\r
13 <import namespace="urn:oasis:names:tc:SAML:2.0:metadata" schemaLocation="saml-schema-metadata-2.0.xsd"/>
\r
17 2.0 schema for XML-based configuration of Shibboleth SP instances.
\r
18 First appearing in Shibboleth 2.0 release.
\r
22 <simpleType name="string">
23 <restriction base="string">
24 <minLength value="1"/>
\r
28 <simpleType name="listOfStrings">
\r
29 <list itemType="conf:string"/>
\r
32 <complexType name="PluggableType">
\r
34 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
36 <attribute name="type" type="conf:string" use="required"/>
\r
37 <anyAttribute namespace="##any" processContents="lax"/>
\r
40 <element name="SPConfig">
\r
43 <documentation>Root of configuration</documentation>
46 <element ref="conf:Extensions" minOccurs="0"/>
47 <element ref="conf:OutOfProcess"/>
48 <element ref="conf:InProcess"/>
49 <element ref="conf:Applications"/>
50 <element ref="conf:Credentials" minOccurs="0"/>
51 <element ref="conf:SecurityPolicies"/>
53 <attribute name="logger" type="anyURI"/>
54 <attribute name="clockSkew" type="unsignedInt"/>
55 <anyAttribute namespace="##other" processContents="lax"/>
59 <element name="Extensions">
\r
61 <documentation>Container for extension libraries and custom configuration</documentation>
\r
65 <element name="Library" minOccurs="0" maxOccurs="unbounded">
\r
68 <restriction base="conf:PluggableType">
\r
70 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
72 <attribute name="path" type="anyURI" use="required"/>
\r
73 <attribute name="fatal" type="boolean" default="true"/>
\r
78 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
83 <element name="StorageService">
\r
85 <documentation>References StorageService plugins</documentation>
\r
89 <restriction base="conf:PluggableType">
\r
91 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
93 <attribute name="id" type="conf:string" use="required"/>
\r
94 <attribute name="cleanupInterval" type="unsignedInt" default="900"/>
\r
95 <anyAttribute namespace="##any" processContents="lax"/>
\r
101 <element name="SessionCache">
\r
103 <documentation>References SessionCache plugins</documentation>
\r
107 <restriction base="conf:PluggableType">
\r
109 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
111 <attribute name="cacheTimeout" type="unsignedInt" default="28800"/>
\r
112 <anyAttribute namespace="##any" processContents="lax"/>
\r
118 <element name="ReplayCache">
120 <documentation>Ties ReplayCache to custom StorageService</documentation>
\r
124 <attribute name="StorageService" type="conf:string" use="required"/>
128 <element name="OutOfProcess">
\r
130 <documentation>Container for shibd out-of-process configuration</documentation>
\r
134 <element ref="conf:Extensions" minOccurs="0"/>
136 <element name="UnixListener">
138 <attribute name="address" type="conf:string" use="required"/>
141 <element name="TCPListener">
143 <attribute name="address" type="conf:string" use="required"/>
144 <attribute name="port" type="unsignedInt" use="required"/>
145 <attribute name="acl" type="conf:listOfStrings" default="127.0.0.1"/>
148 <element name="Listener" type="conf:PluggableType"/>
150 <element ref="conf:StorageService" minOccurs="0" maxOccurs="unbounded"/>
151 <element ref="conf:SessionCache" minOccurs="0"/>
152 <element ref="conf:ReplayCache" minOccurs="0"/>
153 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
155 <attribute name="logger" type="anyURI"/>
156 <anyAttribute namespace="##other" processContents="lax"/>
\r
160 <element name="InProcess">
\r
163 Container for configuration of locally integrated or platform-specific
\r
164 features (e.g. web server filters)
\r
169 <element ref="conf:Extensions" minOccurs="0"/>
170 <element name="RequestMapper" type="conf:PluggableType"/>
171 <element name="Implementation" minOccurs="0">
174 <element ref="conf:ISAPI" minOccurs="0"/>
175 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
179 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
181 <attribute name="logger" type="anyURI"/>
182 <attribute name="localRelayState" type="boolean" default="false"/>
183 <anyAttribute namespace="##other" processContents="lax"/>
\r
187 <element name="ISAPI">
\r
190 <element name="Site" maxOccurs="unbounded">
\r
193 <element name="Alias" type="string" minOccurs="0" maxOccurs="unbounded"/>
\r
195 <attribute name="id" type="unsignedInt" use="required"/>
\r
196 <attribute name="name" type="conf:string" use="required"/>
\r
197 <attribute name="port" type="unsignedInt"/>
\r
198 <attribute name="sslport" type="unsignedInt"/>
\r
199 <attribute name="scheme" type="conf:string"/>
\r
202 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
204 <attribute name="normalizeRequest" type="boolean" default="true"/>
\r
205 <anyAttribute namespace="##other" processContents="lax"/>
\r
209 <element name="AccessControl" type="conf:UniOperatorType">
\r
212 A simple example access policy language extension that supersedes Apache .htaccess
\r
216 <element name="OR" type="conf:MultiOperatorType"/>
\r
217 <element name="AND" type="conf:MultiOperatorType"/>
\r
218 <element name="NOT" type="conf:UniOperatorType"/>
\r
219 <complexType name="UniOperatorType">
\r
221 <element ref="conf:AND"/>
\r
222 <element ref="conf:OR"/>
\r
223 <element ref="conf:NOT"/>
\r
224 <element ref="conf:Rule"/>
\r
227 <complexType name="MultiOperatorType">
\r
228 <choice minOccurs="2" maxOccurs="unbounded">
\r
229 <element ref="conf:AND"/>
\r
230 <element ref="conf:OR"/>
\r
231 <element ref="conf:NOT"/>
\r
232 <element ref="conf:Rule"/>
\r
235 <element name="Rule">
\r
238 <extension base="conf:listOfStrings">
\r
239 <attribute name="require" type="conf:string" use="required"/>
\r
245 <attributeGroup name="ContentSettings">
\r
246 <attribute name="authType" type="conf:string"/>
\r
247 <attribute name="requireSession" type="boolean"/>
\r
248 <attribute name="requireSessionWith" type="conf:string"/>
\r
249 <attribute name="exportAssertion" type="boolean"/>
\r
250 <attribute name="redirectToSSL" type="unsignedInt"/>
\r
251 <anyAttribute namespace="##other" processContents="lax"/>
\r
253 <element name="AccessControlProvider" type="conf:PluggableType"/>
\r
254 <element name="htaccess" type="conf:PluggableType"/>
\r
256 <element name="RequestMap">
\r
259 Built-in request mapping syntax, decomposes URLs into Host/Path/Path/...
\r
264 <choice minOccurs="0">
\r
265 <element ref="conf:htaccess"/>
\r
266 <element ref="conf:AccessControl"/>
\r
267 <element ref="conf:AccessControlProvider"/>
\r
269 <element ref="conf:Host" minOccurs="0" maxOccurs="unbounded"/>
\r
271 <attribute name="applicationId" type="conf:string" fixed="default"/>
\r
272 <attributeGroup ref="conf:ContentSettings"/>
\r
276 <element name="Host">
\r
279 <choice minOccurs="0">
\r
280 <element ref="conf:htaccess"/>
\r
281 <element ref="conf:AccessControl"/>
\r
282 <element ref="conf:AccessControlProvider"/>
\r
284 <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
\r
286 <attribute name="scheme">
\r
288 <restriction base="conf:string">
\r
289 <enumeration value="http"/>
\r
290 <enumeration value="https"/>
\r
291 <enumeration value="ftp"/>
\r
292 <enumeration value="ldap"/>
\r
293 <enumeration value="ldaps"/>
\r
297 <attribute name="name" type="conf:string" use="required"/>
\r
298 <attribute name="port" type="unsignedInt"/>
\r
299 <attribute name="applicationId" type="conf:string"/>
\r
300 <attributeGroup ref="conf:ContentSettings"/>
\r
304 <element name="Path">
\r
307 <choice minOccurs="0">
\r
308 <element ref="conf:htaccess"/>
\r
309 <element ref="conf:AccessControl"/>
\r
310 <element ref="conf:AccessControlProvider"/>
\r
312 <element ref="conf:Path" minOccurs="0" maxOccurs="unbounded"/>
\r
314 <attribute name="name" type="conf:string" use="required"/>
\r
315 <attribute name="applicationId" type="conf:string"/>
\r
316 <attributeGroup ref="conf:ContentSettings"/>
\r
320 <element name="Applications">
\r
322 <documentation>Container for global settings and application-specific overrides</documentation>
\r
326 <element ref="conf:Sessions"/>
\r
327 <element ref="conf:Errors"/>
\r
328 <element ref="conf:CredentialUse" minOccurs="0"/>
\r
329 <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
330 <element name="MetadataProvider" type="conf:PluggableType"/>
331 <element name="TrustEngine" type="conf:PluggableType"/>
\r
332 <element name="AttributeResolver" type="conf:PluggableType"/>
\r
333 <element ref="conf:Application" minOccurs="0" maxOccurs="unbounded"/>
\r
335 <attribute name="id" type="conf:string" fixed="default"/>
\r
336 <attribute name="providerId" type="anyURI" use="required"/>
\r
337 <attribute name="policyId" type="conf:string" use="required"/>
\r
338 <attribute name="homeURL" type="anyURI"/>
\r
339 <anyAttribute namespace="##other" processContents="lax"/>
\r
343 <element name="Application">
\r
345 <documentation>Container for application-specific overrides</documentation>
\r
349 <element ref="conf:Sessions" minOccurs="0"/>
\r
350 <element ref="conf:Errors" minOccurs="0"/>
\r
351 <element ref="conf:CredentialUse" minOccurs="0"/>
\r
352 <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
\r
353 <element name="MetadataProvider" type="conf:PluggableType" minOccurs="0"/>
\r
354 <element name="TrustEngine" type="conf:PluggableType" minOccurs="0"/>
\r
355 <element name="AttributeResolver" type="conf:PluggableType" minOccurs="0"/>
\r
357 <attribute name="id" type="conf:string" use="required"/>
\r
358 <attribute name="providerId" type="anyURI"/>
\r
359 <attribute name="policyId" type="conf:string"/>
\r
360 <attribute name="homeURL" type="anyURI"/>
\r
361 <anyAttribute namespace="##other" processContents="lax"/>
\r
365 <element name="Sessions">
\r
367 <documentation>Container for specifying protocol handlers and session policy</documentation>
\r
370 <choice maxOccurs="unbounded">
\r
371 <element ref="conf:SessionInitiator"/>
\r
372 <element ref="md:AssertionConsumerService"/>
\r
373 <element ref="md:SingleLogoutService"/>
\r
374 <element ref="md:ManageNameIDService"/>
\r
375 <element name="Handler">
378 <restriction base="conf:PluggableType">
\r
380 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
382 <attribute name="Location" type="anyURI" use="required"/>
\r
388 <attribute name="handlerURL" type="anyURI"/>
\r
389 <attribute name="handlerSSL" type="boolean" default="true"/>
\r
390 <attribute name="cookieName" type="conf:string"/>
\r
391 <attribute name="cookieProps" type="conf:string"/>
\r
392 <attribute name="idpHistory" type="boolean" default="true"/>
\r
393 <attribute name="idpHistoryDays" type="unsignedInt"/>
\r
394 <attribute name="lifetime" type="unsignedInt" default="28800"/>
\r
395 <attribute name="timeout" type="unsignedInt" default="3600"/>
\r
396 <attribute name="checkAddress" type="boolean" default="true"/>
\r
397 <attribute name="consistentAddress" type="boolean" default="true"/>
\r
398 <anyAttribute namespace="##other" processContents="lax"/>
\r
401 <element name="SessionInitiator">
\r
403 <documentation>Used to specify handlers that can issue AuthnRequests</documentation>
\r
407 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
409 <attribute name="Location" type="anyURI" use="required"/>
\r
410 <attribute name="Binding" type="anyURI" use="required"/>
\r
411 <attribute name="wayfURL" type="anyURI"/>
\r
412 <attribute name="wayfBinding" type="anyURI"/>
\r
413 <attribute name="isDefault" type="boolean"/>
\r
414 <attribute name="id" type="conf:string"/>
\r
415 <anyAttribute namespace="##any" processContents="lax"/>
\r
419 <element name="Errors">
\r
421 <documentation>Container for error templates and associated details</documentation>
\r
425 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
427 <attribute name="session" type="anyURI" use="required"/>
\r
428 <attribute name="metadata" type="anyURI"/>
\r
429 <attribute name="rm" type="anyURI"/>
\r
430 <attribute name="access" type="anyURI"/>
\r
431 <attribute name="ssl" type="anyURI"/>
\r
432 <attribute name="supportContact" type="conf:string"/>
\r
433 <attribute name="logoLocation" type="anyURI"/>
\r
434 <attribute name="styleSheet" type="anyURI"/>
\r
435 <anyAttribute namespace="##any" processContents="lax"/>
\r
439 <attributeGroup name="CredentialUseGroup">
\r
440 <attribute name="TLS" type="conf:string"/>
\r
441 <attribute name="Signing" type="conf:string"/>
\r
442 <attribute name="signRequests" type="boolean" default="false"/>
\r
443 <attribute name="signatureAlg" type="anyURI"/>
\r
444 <attribute name="authType">
\r
446 <restriction base="conf:string">
\r
447 <enumeration value="basic"/>
\r
448 <enumeration value="digest"/>
\r
449 <enumeration value="ntlm"/>
\r
450 <enumeration value="gss"/>
\r
454 <attribute name="authUsername"/>
\r
455 <attribute name="authPassword"/>
\r
458 <element name="CredentialUse">
\r
460 <documentation>Container for specifying security methods to use with particular peers</documentation>
\r
464 <element name="RelyingParty" minOccurs="0" maxOccurs="unbounded">
\r
467 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
469 <attribute name="Name" type="conf:string" use="required"/>
\r
470 <attributeGroup ref="conf:CredentialUseGroup"/>
\r
471 <anyAttribute namespace="##other" processContents="lax"/>
\r
474 <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
\r
476 <attributeGroup ref="conf:CredentialUseGroup"/>
\r
477 <anyAttribute namespace="##other" processContents="lax"/>
\r
481 <element name="Credentials">
483 <documentation>Container for specifying sources of credentials</documentation>
\r
487 <element name="CredentialResolver" minOccurs="1" maxOccurs="unbounded">
489 <documentation>References CredentialResolver plugins</documentation>
\r
493 <restriction base="conf:PluggableType">
495 <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
497 <attribute name="id" type="conf:string" use="required"/>
\r
498 <anyAttribute namespace="##any" processContents="lax"/>
507 <element name="SecurityPolicies">
509 <documentation>Container for specifying sets of policy rules to apply to incoming messages</documentation>
\r
513 <element name="Policy" minOccurs="1" maxOccurs="unbounded">
\r
515 <documentation>Specifies a set of SecurityPolicyRule plugins</documentation>
\r
519 <element name="Rule" type="conf:PluggableType" minOccurs="1" maxOccurs="unbounded"/>
521 <attribute name="id" type="conf:string" use="required"/>
\r
522 <attribute name="validate" type="boolean" default="false"/>
\r
523 <attribute name="signedAssertions" type="boolean" default="false"/>
\r
524 <attribute name="requireConfidentiality" type="boolean" default="true"/>
\r
525 <attribute name="requireTransportAuth" type="boolean" default="true"/>
\r
526 <attribute name="chunkedEncoding" type="boolean" default="true"/>
\r
527 <attribute name="connectTimeout" type="unsignedShort" default="15"/>
\r
528 <attribute name="timeout" type="unsignedShort" default="30"/>
\r
529 <anyAttribute namespace="##any" processContents="lax"/>
\r