mdqt 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,26 @@ module MDQT
18
18
  end
19
19
  end
20
20
 
21
+ def valid?(response)
22
+ begin
23
+ errors = schema.validate(Nokogiri::XML(response.data) { |config| config.strict } )
24
+ return false unless errors.length.zero?
25
+ true
26
+ rescue => oops
27
+ false
28
+ end
29
+ end
30
+
31
+ def validation_error(response)
32
+ begin
33
+ errors = schema.validate(Nokogiri::XML(response.data) { |config| config.strict } )
34
+ return nil if errors.empty?
35
+ errors.join("\n")
36
+ rescue => oops
37
+ return "Invalid XML! #{oops.to_s}"
38
+ end
39
+ end
40
+
21
41
  def certificates?
22
42
  certificates.present?
23
43
  end
@@ -45,6 +65,15 @@ module MDQT
45
65
  raise
46
66
  end
47
67
  end
68
+
69
+ def schema
70
+ @schema ||= Nokogiri::XML::Schema(schema_data_fh)
71
+ end
72
+
73
+ def schema_data_fh
74
+ File.open(File.join(__dir__, '../schema/saml-schema-metadata-2.0.xsd'))
75
+ end
76
+
48
77
  end
49
78
 
50
79
  end
@@ -0,0 +1,283 @@
1
+ <?xml version="1.0" encoding="US-ASCII"?>
2
+ <schema
3
+ targetNamespace="urn:oasis:names:tc:SAML:2.0:assertion"
4
+ xmlns="http://www.w3.org/2001/XMLSchema"
5
+ xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
6
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
7
+ xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
8
+ elementFormDefault="unqualified"
9
+ attributeFormDefault="unqualified"
10
+ blockDefault="substitution"
11
+ version="2.0">
12
+ <import namespace="http://www.w3.org/2000/09/xmldsig#"
13
+ schemaLocation="xmldsig-core-schema.xsd"/>
14
+ <import namespace="http://www.w3.org/2001/04/xmlenc#"
15
+ schemaLocation="xenc-schema.xsd"/>
16
+ <annotation>
17
+ <documentation>
18
+ Document identifier: saml-schema-assertion-2.0
19
+ Location: http://docs.oasis-open.org/security/saml/v2.0/
20
+ Revision history:
21
+ V1.0 (November, 2002):
22
+ Initial Standard Schema.
23
+ V1.1 (September, 2003):
24
+ Updates within the same V1.0 namespace.
25
+ V2.0 (March, 2005):
26
+ New assertion schema for SAML V2.0 namespace.
27
+ </documentation>
28
+ </annotation>
29
+ <attributeGroup name="IDNameQualifiers">
30
+ <attribute name="NameQualifier" type="string" use="optional"/>
31
+ <attribute name="SPNameQualifier" type="string" use="optional"/>
32
+ </attributeGroup>
33
+ <element name="BaseID" type="saml:BaseIDAbstractType"/>
34
+ <complexType name="BaseIDAbstractType" abstract="true">
35
+ <attributeGroup ref="saml:IDNameQualifiers"/>
36
+ </complexType>
37
+ <element name="NameID" type="saml:NameIDType"/>
38
+ <complexType name="NameIDType">
39
+ <simpleContent>
40
+ <extension base="string">
41
+ <attributeGroup ref="saml:IDNameQualifiers"/>
42
+ <attribute name="Format" type="anyURI" use="optional"/>
43
+ <attribute name="SPProvidedID" type="string" use="optional"/>
44
+ </extension>
45
+ </simpleContent>
46
+ </complexType>
47
+ <complexType name="EncryptedElementType">
48
+ <sequence>
49
+ <element ref="xenc:EncryptedData"/>
50
+ <element ref="xenc:EncryptedKey" minOccurs="0" maxOccurs="unbounded"/>
51
+ </sequence>
52
+ </complexType>
53
+ <element name="EncryptedID" type="saml:EncryptedElementType"/>
54
+ <element name="Issuer" type="saml:NameIDType"/>
55
+ <element name="AssertionIDRef" type="NCName"/>
56
+ <element name="AssertionURIRef" type="anyURI"/>
57
+ <element name="Assertion" type="saml:AssertionType"/>
58
+ <complexType name="AssertionType">
59
+ <sequence>
60
+ <element ref="saml:Issuer"/>
61
+ <element ref="ds:Signature" minOccurs="0"/>
62
+ <element ref="saml:Subject" minOccurs="0"/>
63
+ <element ref="saml:Conditions" minOccurs="0"/>
64
+ <element ref="saml:Advice" minOccurs="0"/>
65
+ <choice minOccurs="0" maxOccurs="unbounded">
66
+ <element ref="saml:Statement"/>
67
+ <element ref="saml:AuthnStatement"/>
68
+ <element ref="saml:AuthzDecisionStatement"/>
69
+ <element ref="saml:AttributeStatement"/>
70
+ </choice>
71
+ </sequence>
72
+ <attribute name="Version" type="string" use="required"/>
73
+ <attribute name="ID" type="ID" use="required"/>
74
+ <attribute name="IssueInstant" type="dateTime" use="required"/>
75
+ </complexType>
76
+ <element name="Subject" type="saml:SubjectType"/>
77
+ <complexType name="SubjectType">
78
+ <choice>
79
+ <sequence>
80
+ <choice>
81
+ <element ref="saml:BaseID"/>
82
+ <element ref="saml:NameID"/>
83
+ <element ref="saml:EncryptedID"/>
84
+ </choice>
85
+ <element ref="saml:SubjectConfirmation" minOccurs="0" maxOccurs="unbounded"/>
86
+ </sequence>
87
+ <element ref="saml:SubjectConfirmation" maxOccurs="unbounded"/>
88
+ </choice>
89
+ </complexType>
90
+ <element name="SubjectConfirmation" type="saml:SubjectConfirmationType"/>
91
+ <complexType name="SubjectConfirmationType">
92
+ <sequence>
93
+ <choice minOccurs="0">
94
+ <element ref="saml:BaseID"/>
95
+ <element ref="saml:NameID"/>
96
+ <element ref="saml:EncryptedID"/>
97
+ </choice>
98
+ <element ref="saml:SubjectConfirmationData" minOccurs="0"/>
99
+ </sequence>
100
+ <attribute name="Method" type="anyURI" use="required"/>
101
+ </complexType>
102
+ <element name="SubjectConfirmationData" type="saml:SubjectConfirmationDataType"/>
103
+ <complexType name="SubjectConfirmationDataType" mixed="true">
104
+ <complexContent>
105
+ <restriction base="anyType">
106
+ <sequence>
107
+ <any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
108
+ </sequence>
109
+ <attribute name="NotBefore" type="dateTime" use="optional"/>
110
+ <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
111
+ <attribute name="Recipient" type="anyURI" use="optional"/>
112
+ <attribute name="InResponseTo" type="NCName" use="optional"/>
113
+ <attribute name="Address" type="string" use="optional"/>
114
+ <anyAttribute namespace="##other" processContents="lax"/>
115
+ </restriction>
116
+ </complexContent>
117
+ </complexType>
118
+ <complexType name="KeyInfoConfirmationDataType" mixed="false">
119
+ <complexContent>
120
+ <restriction base="saml:SubjectConfirmationDataType">
121
+ <sequence>
122
+ <element ref="ds:KeyInfo" maxOccurs="unbounded"/>
123
+ </sequence>
124
+ </restriction>
125
+ </complexContent>
126
+ </complexType>
127
+ <element name="Conditions" type="saml:ConditionsType"/>
128
+ <complexType name="ConditionsType">
129
+ <choice minOccurs="0" maxOccurs="unbounded">
130
+ <element ref="saml:Condition"/>
131
+ <element ref="saml:AudienceRestriction"/>
132
+ <element ref="saml:OneTimeUse"/>
133
+ <element ref="saml:ProxyRestriction"/>
134
+ </choice>
135
+ <attribute name="NotBefore" type="dateTime" use="optional"/>
136
+ <attribute name="NotOnOrAfter" type="dateTime" use="optional"/>
137
+ </complexType>
138
+ <element name="Condition" type="saml:ConditionAbstractType"/>
139
+ <complexType name="ConditionAbstractType" abstract="true"/>
140
+ <element name="AudienceRestriction" type="saml:AudienceRestrictionType"/>
141
+ <complexType name="AudienceRestrictionType">
142
+ <complexContent>
143
+ <extension base="saml:ConditionAbstractType">
144
+ <sequence>
145
+ <element ref="saml:Audience" maxOccurs="unbounded"/>
146
+ </sequence>
147
+ </extension>
148
+ </complexContent>
149
+ </complexType>
150
+ <element name="Audience" type="anyURI"/>
151
+ <element name="OneTimeUse" type="saml:OneTimeUseType" />
152
+ <complexType name="OneTimeUseType">
153
+ <complexContent>
154
+ <extension base="saml:ConditionAbstractType"/>
155
+ </complexContent>
156
+ </complexType>
157
+ <element name="ProxyRestriction" type="saml:ProxyRestrictionType"/>
158
+ <complexType name="ProxyRestrictionType">
159
+ <complexContent>
160
+ <extension base="saml:ConditionAbstractType">
161
+ <sequence>
162
+ <element ref="saml:Audience" minOccurs="0" maxOccurs="unbounded"/>
163
+ </sequence>
164
+ <attribute name="Count" type="nonNegativeInteger" use="optional"/>
165
+ </extension>
166
+ </complexContent>
167
+ </complexType>
168
+ <element name="Advice" type="saml:AdviceType"/>
169
+ <complexType name="AdviceType">
170
+ <choice minOccurs="0" maxOccurs="unbounded">
171
+ <element ref="saml:AssertionIDRef"/>
172
+ <element ref="saml:AssertionURIRef"/>
173
+ <element ref="saml:Assertion"/>
174
+ <element ref="saml:EncryptedAssertion"/>
175
+ <any namespace="##other" processContents="lax"/>
176
+ </choice>
177
+ </complexType>
178
+ <element name="EncryptedAssertion" type="saml:EncryptedElementType"/>
179
+ <element name="Statement" type="saml:StatementAbstractType"/>
180
+ <complexType name="StatementAbstractType" abstract="true"/>
181
+ <element name="AuthnStatement" type="saml:AuthnStatementType"/>
182
+ <complexType name="AuthnStatementType">
183
+ <complexContent>
184
+ <extension base="saml:StatementAbstractType">
185
+ <sequence>
186
+ <element ref="saml:SubjectLocality" minOccurs="0"/>
187
+ <element ref="saml:AuthnContext"/>
188
+ </sequence>
189
+ <attribute name="AuthnInstant" type="dateTime" use="required"/>
190
+ <attribute name="SessionIndex" type="string" use="optional"/>
191
+ <attribute name="SessionNotOnOrAfter" type="dateTime" use="optional"/>
192
+ </extension>
193
+ </complexContent>
194
+ </complexType>
195
+ <element name="SubjectLocality" type="saml:SubjectLocalityType"/>
196
+ <complexType name="SubjectLocalityType">
197
+ <attribute name="Address" type="string" use="optional"/>
198
+ <attribute name="DNSName" type="string" use="optional"/>
199
+ </complexType>
200
+ <element name="AuthnContext" type="saml:AuthnContextType"/>
201
+ <complexType name="AuthnContextType">
202
+ <sequence>
203
+ <choice>
204
+ <sequence>
205
+ <element ref="saml:AuthnContextClassRef"/>
206
+ <choice minOccurs="0">
207
+ <element ref="saml:AuthnContextDecl"/>
208
+ <element ref="saml:AuthnContextDeclRef"/>
209
+ </choice>
210
+ </sequence>
211
+ <choice>
212
+ <element ref="saml:AuthnContextDecl"/>
213
+ <element ref="saml:AuthnContextDeclRef"/>
214
+ </choice>
215
+ </choice>
216
+ <element ref="saml:AuthenticatingAuthority" minOccurs="0" maxOccurs="unbounded"/>
217
+ </sequence>
218
+ </complexType>
219
+ <element name="AuthnContextClassRef" type="anyURI"/>
220
+ <element name="AuthnContextDeclRef" type="anyURI"/>
221
+ <element name="AuthnContextDecl" type="anyType"/>
222
+ <element name="AuthenticatingAuthority" type="anyURI"/>
223
+ <element name="AuthzDecisionStatement" type="saml:AuthzDecisionStatementType"/>
224
+ <complexType name="AuthzDecisionStatementType">
225
+ <complexContent>
226
+ <extension base="saml:StatementAbstractType">
227
+ <sequence>
228
+ <element ref="saml:Action" maxOccurs="unbounded"/>
229
+ <element ref="saml:Evidence" minOccurs="0"/>
230
+ </sequence>
231
+ <attribute name="Resource" type="anyURI" use="required"/>
232
+ <attribute name="Decision" type="saml:DecisionType" use="required"/>
233
+ </extension>
234
+ </complexContent>
235
+ </complexType>
236
+ <simpleType name="DecisionType">
237
+ <restriction base="string">
238
+ <enumeration value="Permit"/>
239
+ <enumeration value="Deny"/>
240
+ <enumeration value="Indeterminate"/>
241
+ </restriction>
242
+ </simpleType>
243
+ <element name="Action" type="saml:ActionType"/>
244
+ <complexType name="ActionType">
245
+ <simpleContent>
246
+ <extension base="string">
247
+ <attribute name="Namespace" type="anyURI" use="required"/>
248
+ </extension>
249
+ </simpleContent>
250
+ </complexType>
251
+ <element name="Evidence" type="saml:EvidenceType"/>
252
+ <complexType name="EvidenceType">
253
+ <choice maxOccurs="unbounded">
254
+ <element ref="saml:AssertionIDRef"/>
255
+ <element ref="saml:AssertionURIRef"/>
256
+ <element ref="saml:Assertion"/>
257
+ <element ref="saml:EncryptedAssertion"/>
258
+ </choice>
259
+ </complexType>
260
+ <element name="AttributeStatement" type="saml:AttributeStatementType"/>
261
+ <complexType name="AttributeStatementType">
262
+ <complexContent>
263
+ <extension base="saml:StatementAbstractType">
264
+ <choice maxOccurs="unbounded">
265
+ <element ref="saml:Attribute"/>
266
+ <element ref="saml:EncryptedAttribute"/>
267
+ </choice>
268
+ </extension>
269
+ </complexContent>
270
+ </complexType>
271
+ <element name="Attribute" type="saml:AttributeType"/>
272
+ <complexType name="AttributeType">
273
+ <sequence>
274
+ <element ref="saml:AttributeValue" minOccurs="0" maxOccurs="unbounded"/>
275
+ </sequence>
276
+ <attribute name="Name" type="string" use="required"/>
277
+ <attribute name="NameFormat" type="anyURI" use="optional"/>
278
+ <attribute name="FriendlyName" type="string" use="optional"/>
279
+ <anyAttribute namespace="##other" processContents="lax"/>
280
+ </complexType>
281
+ <element name="AttributeValue" type="anyType" nillable="true"/>
282
+ <element name="EncryptedAttribute" type="saml:EncryptedElementType"/>
283
+ </schema>
@@ -0,0 +1,337 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <schema
3
+ targetNamespace="urn:oasis:names:tc:SAML:2.0:metadata"
4
+ xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
5
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
6
+ xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
7
+ xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
8
+ xmlns="http://www.w3.org/2001/XMLSchema"
9
+ elementFormDefault="unqualified"
10
+ attributeFormDefault="unqualified"
11
+ blockDefault="substitution"
12
+ version="2.0">
13
+ <import namespace="http://www.w3.org/2000/09/xmldsig#"
14
+ schemaLocation="xmldsig-core-schema.xsd"/>
15
+ <import namespace="http://www.w3.org/2001/04/xmlenc#"
16
+ schemaLocation="xenc-schema.xsd"/>
17
+ <import namespace="urn:oasis:names:tc:SAML:2.0:assertion"
18
+ schemaLocation="saml-schema-assertion-2.0.xsd"/>
19
+ <import namespace="http://www.w3.org/XML/1998/namespace"
20
+ schemaLocation="xml.xsd"/>
21
+ <annotation>
22
+ <documentation>
23
+ Document identifier: saml-schema-metadata-2.0
24
+ Location: http://docs.oasis-open.org/security/saml/v2.0/
25
+ Revision history:
26
+ V2.0 (March, 2005):
27
+ Schema for SAML metadata, first published in SAML 2.0.
28
+ </documentation>
29
+ </annotation>
30
+
31
+ <simpleType name="entityIDType">
32
+ <restriction base="anyURI">
33
+ <maxLength value="1024"/>
34
+ </restriction>
35
+ </simpleType>
36
+ <complexType name="localizedNameType">
37
+ <simpleContent>
38
+ <extension base="string">
39
+ <attribute ref="xml:lang" use="required"/>
40
+ </extension>
41
+ </simpleContent>
42
+ </complexType>
43
+ <complexType name="localizedURIType">
44
+ <simpleContent>
45
+ <extension base="anyURI">
46
+ <attribute ref="xml:lang" use="required"/>
47
+ </extension>
48
+ </simpleContent>
49
+ </complexType>
50
+
51
+ <element name="Extensions" type="md:ExtensionsType"/>
52
+ <complexType final="#all" name="ExtensionsType">
53
+ <sequence>
54
+ <any namespace="##other" processContents="lax" maxOccurs="unbounded"/>
55
+ </sequence>
56
+ </complexType>
57
+
58
+ <complexType name="EndpointType">
59
+ <sequence>
60
+ <any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
61
+ </sequence>
62
+ <attribute name="Binding" type="anyURI" use="required"/>
63
+ <attribute name="Location" type="anyURI" use="required"/>
64
+ <attribute name="ResponseLocation" type="anyURI" use="optional"/>
65
+ <anyAttribute namespace="##other" processContents="lax"/>
66
+ </complexType>
67
+
68
+ <complexType name="IndexedEndpointType">
69
+ <complexContent>
70
+ <extension base="md:EndpointType">
71
+ <attribute name="index" type="unsignedShort" use="required"/>
72
+ <attribute name="isDefault" type="boolean" use="optional"/>
73
+ </extension>
74
+ </complexContent>
75
+ </complexType>
76
+
77
+ <element name="EntitiesDescriptor" type="md:EntitiesDescriptorType"/>
78
+ <complexType name="EntitiesDescriptorType">
79
+ <sequence>
80
+ <element ref="ds:Signature" minOccurs="0"/>
81
+ <element ref="md:Extensions" minOccurs="0"/>
82
+ <choice minOccurs="1" maxOccurs="unbounded">
83
+ <element ref="md:EntityDescriptor"/>
84
+ <element ref="md:EntitiesDescriptor"/>
85
+ </choice>
86
+ </sequence>
87
+ <attribute name="validUntil" type="dateTime" use="optional"/>
88
+ <attribute name="cacheDuration" type="duration" use="optional"/>
89
+ <attribute name="ID" type="ID" use="optional"/>
90
+ <attribute name="Name" type="string" use="optional"/>
91
+ </complexType>
92
+
93
+ <element name="EntityDescriptor" type="md:EntityDescriptorType"/>
94
+ <complexType name="EntityDescriptorType">
95
+ <sequence>
96
+ <element ref="ds:Signature" minOccurs="0"/>
97
+ <element ref="md:Extensions" minOccurs="0"/>
98
+ <choice>
99
+ <choice maxOccurs="unbounded">
100
+ <element ref="md:RoleDescriptor"/>
101
+ <element ref="md:IDPSSODescriptor"/>
102
+ <element ref="md:SPSSODescriptor"/>
103
+ <element ref="md:AuthnAuthorityDescriptor"/>
104
+ <element ref="md:AttributeAuthorityDescriptor"/>
105
+ <element ref="md:PDPDescriptor"/>
106
+ </choice>
107
+ <element ref="md:AffiliationDescriptor"/>
108
+ </choice>
109
+ <element ref="md:Organization" minOccurs="0"/>
110
+ <element ref="md:ContactPerson" minOccurs="0" maxOccurs="unbounded"/>
111
+ <element ref="md:AdditionalMetadataLocation" minOccurs="0" maxOccurs="unbounded"/>
112
+ </sequence>
113
+ <attribute name="entityID" type="md:entityIDType" use="required"/>
114
+ <attribute name="validUntil" type="dateTime" use="optional"/>
115
+ <attribute name="cacheDuration" type="duration" use="optional"/>
116
+ <attribute name="ID" type="ID" use="optional"/>
117
+ <anyAttribute namespace="##other" processContents="lax"/>
118
+ </complexType>
119
+
120
+ <element name="Organization" type="md:OrganizationType"/>
121
+ <complexType name="OrganizationType">
122
+ <sequence>
123
+ <element ref="md:Extensions" minOccurs="0"/>
124
+ <element ref="md:OrganizationName" maxOccurs="unbounded"/>
125
+ <element ref="md:OrganizationDisplayName" maxOccurs="unbounded"/>
126
+ <element ref="md:OrganizationURL" maxOccurs="unbounded"/>
127
+ </sequence>
128
+ <anyAttribute namespace="##other" processContents="lax"/>
129
+ </complexType>
130
+ <element name="OrganizationName" type="md:localizedNameType"/>
131
+ <element name="OrganizationDisplayName" type="md:localizedNameType"/>
132
+ <element name="OrganizationURL" type="md:localizedURIType"/>
133
+ <element name="ContactPerson" type="md:ContactType"/>
134
+ <complexType name="ContactType">
135
+ <sequence>
136
+ <element ref="md:Extensions" minOccurs="0"/>
137
+ <element ref="md:Company" minOccurs="0"/>
138
+ <element ref="md:GivenName" minOccurs="0"/>
139
+ <element ref="md:SurName" minOccurs="0"/>
140
+ <element ref="md:EmailAddress" minOccurs="0" maxOccurs="unbounded"/>
141
+ <element ref="md:TelephoneNumber" minOccurs="0" maxOccurs="unbounded"/>
142
+ </sequence>
143
+ <attribute name="contactType" type="md:ContactTypeType" use="required"/>
144
+ <anyAttribute namespace="##other" processContents="lax"/>
145
+ </complexType>
146
+ <element name="Company" type="string"/>
147
+ <element name="GivenName" type="string"/>
148
+ <element name="SurName" type="string"/>
149
+ <element name="EmailAddress" type="anyURI"/>
150
+ <element name="TelephoneNumber" type="string"/>
151
+ <simpleType name="ContactTypeType">
152
+ <restriction base="string">
153
+ <enumeration value="technical"/>
154
+ <enumeration value="support"/>
155
+ <enumeration value="administrative"/>
156
+ <enumeration value="billing"/>
157
+ <enumeration value="other"/>
158
+ </restriction>
159
+ </simpleType>
160
+
161
+ <element name="AdditionalMetadataLocation" type="md:AdditionalMetadataLocationType"/>
162
+ <complexType name="AdditionalMetadataLocationType">
163
+ <simpleContent>
164
+ <extension base="anyURI">
165
+ <attribute name="namespace" type="anyURI" use="required"/>
166
+ </extension>
167
+ </simpleContent>
168
+ </complexType>
169
+
170
+ <element name="RoleDescriptor" type="md:RoleDescriptorType"/>
171
+ <complexType name="RoleDescriptorType" abstract="true">
172
+ <sequence>
173
+ <element ref="ds:Signature" minOccurs="0"/>
174
+ <element ref="md:Extensions" minOccurs="0"/>
175
+ <element ref="md:KeyDescriptor" minOccurs="0" maxOccurs="unbounded"/>
176
+ <element ref="md:Organization" minOccurs="0"/>
177
+ <element ref="md:ContactPerson" minOccurs="0" maxOccurs="unbounded"/>
178
+ </sequence>
179
+ <attribute name="ID" type="ID" use="optional"/>
180
+ <attribute name="validUntil" type="dateTime" use="optional"/>
181
+ <attribute name="cacheDuration" type="duration" use="optional"/>
182
+ <attribute name="protocolSupportEnumeration" type="md:anyURIListType" use="required"/>
183
+ <attribute name="errorURL" type="anyURI" use="optional"/>
184
+ <anyAttribute namespace="##other" processContents="lax"/>
185
+ </complexType>
186
+ <simpleType name="anyURIListType">
187
+ <list itemType="anyURI"/>
188
+ </simpleType>
189
+
190
+ <element name="KeyDescriptor" type="md:KeyDescriptorType"/>
191
+ <complexType name="KeyDescriptorType">
192
+ <sequence>
193
+ <element ref="ds:KeyInfo"/>
194
+ <element ref="md:EncryptionMethod" minOccurs="0" maxOccurs="unbounded"/>
195
+ </sequence>
196
+ <attribute name="use" type="md:KeyTypes" use="optional"/>
197
+ </complexType>
198
+ <simpleType name="KeyTypes">
199
+ <restriction base="string">
200
+ <enumeration value="encryption"/>
201
+ <enumeration value="signing"/>
202
+ </restriction>
203
+ </simpleType>
204
+ <element name="EncryptionMethod" type="xenc:EncryptionMethodType"/>
205
+
206
+ <complexType name="SSODescriptorType" abstract="true">
207
+ <complexContent>
208
+ <extension base="md:RoleDescriptorType">
209
+ <sequence>
210
+ <element ref="md:ArtifactResolutionService" minOccurs="0" maxOccurs="unbounded"/>
211
+ <element ref="md:SingleLogoutService" minOccurs="0" maxOccurs="unbounded"/>
212
+ <element ref="md:ManageNameIDService" minOccurs="0" maxOccurs="unbounded"/>
213
+ <element ref="md:NameIDFormat" minOccurs="0" maxOccurs="unbounded"/>
214
+ </sequence>
215
+ </extension>
216
+ </complexContent>
217
+ </complexType>
218
+ <element name="ArtifactResolutionService" type="md:IndexedEndpointType"/>
219
+ <element name="SingleLogoutService" type="md:EndpointType"/>
220
+ <element name="ManageNameIDService" type="md:EndpointType"/>
221
+ <element name="NameIDFormat" type="anyURI"/>
222
+
223
+ <element name="IDPSSODescriptor" type="md:IDPSSODescriptorType"/>
224
+ <complexType name="IDPSSODescriptorType">
225
+ <complexContent>
226
+ <extension base="md:SSODescriptorType">
227
+ <sequence>
228
+ <element ref="md:SingleSignOnService" maxOccurs="unbounded"/>
229
+ <element ref="md:NameIDMappingService" minOccurs="0" maxOccurs="unbounded"/>
230
+ <element ref="md:AssertionIDRequestService" minOccurs="0" maxOccurs="unbounded"/>
231
+ <element ref="md:AttributeProfile" minOccurs="0" maxOccurs="unbounded"/>
232
+ <element ref="saml:Attribute" minOccurs="0" maxOccurs="unbounded"/>
233
+ </sequence>
234
+ <attribute name="WantAuthnRequestsSigned" type="boolean" use="optional"/>
235
+ </extension>
236
+ </complexContent>
237
+ </complexType>
238
+ <element name="SingleSignOnService" type="md:EndpointType"/>
239
+ <element name="NameIDMappingService" type="md:EndpointType"/>
240
+ <element name="AssertionIDRequestService" type="md:EndpointType"/>
241
+ <element name="AttributeProfile" type="anyURI"/>
242
+
243
+ <element name="SPSSODescriptor" type="md:SPSSODescriptorType"/>
244
+ <complexType name="SPSSODescriptorType">
245
+ <complexContent>
246
+ <extension base="md:SSODescriptorType">
247
+ <sequence>
248
+ <element ref="md:AssertionConsumerService" maxOccurs="unbounded"/>
249
+ <element ref="md:AttributeConsumingService" minOccurs="0" maxOccurs="unbounded"/>
250
+ </sequence>
251
+ <attribute name="AuthnRequestsSigned" type="boolean" use="optional"/>
252
+ <attribute name="WantAssertionsSigned" type="boolean" use="optional"/>
253
+ </extension>
254
+ </complexContent>
255
+ </complexType>
256
+ <element name="AssertionConsumerService" type="md:IndexedEndpointType"/>
257
+ <element name="AttributeConsumingService" type="md:AttributeConsumingServiceType"/>
258
+ <complexType name="AttributeConsumingServiceType">
259
+ <sequence>
260
+ <element ref="md:ServiceName" maxOccurs="unbounded"/>
261
+ <element ref="md:ServiceDescription" minOccurs="0" maxOccurs="unbounded"/>
262
+ <element ref="md:RequestedAttribute" maxOccurs="unbounded"/>
263
+ </sequence>
264
+ <attribute name="index" type="unsignedShort" use="required"/>
265
+ <attribute name="isDefault" type="boolean" use="optional"/>
266
+ </complexType>
267
+ <element name="ServiceName" type="md:localizedNameType"/>
268
+ <element name="ServiceDescription" type="md:localizedNameType"/>
269
+ <element name="RequestedAttribute" type="md:RequestedAttributeType"/>
270
+ <complexType name="RequestedAttributeType">
271
+ <complexContent>
272
+ <extension base="saml:AttributeType">
273
+ <attribute name="isRequired" type="boolean" use="optional"/>
274
+ </extension>
275
+ </complexContent>
276
+ </complexType>
277
+
278
+ <element name="AuthnAuthorityDescriptor" type="md:AuthnAuthorityDescriptorType"/>
279
+ <complexType name="AuthnAuthorityDescriptorType">
280
+ <complexContent>
281
+ <extension base="md:RoleDescriptorType">
282
+ <sequence>
283
+ <element ref="md:AuthnQueryService" maxOccurs="unbounded"/>
284
+ <element ref="md:AssertionIDRequestService" minOccurs="0" maxOccurs="unbounded"/>
285
+ <element ref="md:NameIDFormat" minOccurs="0" maxOccurs="unbounded"/>
286
+ </sequence>
287
+ </extension>
288
+ </complexContent>
289
+ </complexType>
290
+ <element name="AuthnQueryService" type="md:EndpointType"/>
291
+
292
+ <element name="PDPDescriptor" type="md:PDPDescriptorType"/>
293
+ <complexType name="PDPDescriptorType">
294
+ <complexContent>
295
+ <extension base="md:RoleDescriptorType">
296
+ <sequence>
297
+ <element ref="md:AuthzService" maxOccurs="unbounded"/>
298
+ <element ref="md:AssertionIDRequestService" minOccurs="0" maxOccurs="unbounded"/>
299
+ <element ref="md:NameIDFormat" minOccurs="0" maxOccurs="unbounded"/>
300
+ </sequence>
301
+ </extension>
302
+ </complexContent>
303
+ </complexType>
304
+ <element name="AuthzService" type="md:EndpointType"/>
305
+
306
+ <element name="AttributeAuthorityDescriptor" type="md:AttributeAuthorityDescriptorType"/>
307
+ <complexType name="AttributeAuthorityDescriptorType">
308
+ <complexContent>
309
+ <extension base="md:RoleDescriptorType">
310
+ <sequence>
311
+ <element ref="md:AttributeService" maxOccurs="unbounded"/>
312
+ <element ref="md:AssertionIDRequestService" minOccurs="0" maxOccurs="unbounded"/>
313
+ <element ref="md:NameIDFormat" minOccurs="0" maxOccurs="unbounded"/>
314
+ <element ref="md:AttributeProfile" minOccurs="0" maxOccurs="unbounded"/>
315
+ <element ref="saml:Attribute" minOccurs="0" maxOccurs="unbounded"/>
316
+ </sequence>
317
+ </extension>
318
+ </complexContent>
319
+ </complexType>
320
+ <element name="AttributeService" type="md:EndpointType"/>
321
+
322
+ <element name="AffiliationDescriptor" type="md:AffiliationDescriptorType"/>
323
+ <complexType name="AffiliationDescriptorType">
324
+ <sequence>
325
+ <element ref="ds:Signature" minOccurs="0"/>
326
+ <element ref="md:Extensions" minOccurs="0"/>
327
+ <element ref="md:AffiliateMember" maxOccurs="unbounded"/>
328
+ <element ref="md:KeyDescriptor" minOccurs="0" maxOccurs="unbounded"/>
329
+ </sequence>
330
+ <attribute name="affiliationOwnerID" type="md:entityIDType" use="required"/>
331
+ <attribute name="validUntil" type="dateTime" use="optional"/>
332
+ <attribute name="cacheDuration" type="duration" use="optional"/>
333
+ <attribute name="ID" type="ID" use="optional"/>
334
+ <anyAttribute namespace="##other" processContents="lax"/>
335
+ </complexType>
336
+ <element name="AffiliateMember" type="md:entityIDType"/>
337
+ </schema>