aaf-mdqt 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/codeql-analysis.yml +70 -0
  3. data/.github/workflows/ruby.yml +41 -0
  4. data/.gitignore +25 -0
  5. data/.rspec +2 -0
  6. data/.rubocop.yml +1 -0
  7. data/.rubocop_todo.yml +296 -0
  8. data/.ruby-version +1 -0
  9. data/.tool-versions +1 -0
  10. data/.travis.yml +7 -0
  11. data/CHANGELOG.md +168 -0
  12. data/CODE_OF_CONDUCT.md +74 -0
  13. data/Gemfile +9 -0
  14. data/LICENSE.txt +21 -0
  15. data/Makefile +4 -0
  16. data/README.md +268 -0
  17. data/Rakefile +5 -0
  18. data/aaf-mdqt.gemspec +46 -0
  19. data/bin/console +14 -0
  20. data/bin/setup +8 -0
  21. data/cucumber.yml +2 -0
  22. data/exe/mdqt +174 -0
  23. data/lib/mdqt/cli/base.rb +190 -0
  24. data/lib/mdqt/cli/cache_control.rb +25 -0
  25. data/lib/mdqt/cli/check.rb +78 -0
  26. data/lib/mdqt/cli/compliance.rb +0 -0
  27. data/lib/mdqt/cli/defaults.rb +70 -0
  28. data/lib/mdqt/cli/entities.rb +47 -0
  29. data/lib/mdqt/cli/exists.rb +0 -0
  30. data/lib/mdqt/cli/get.rb +130 -0
  31. data/lib/mdqt/cli/list.rb +65 -0
  32. data/lib/mdqt/cli/ln.rb +81 -0
  33. data/lib/mdqt/cli/ls.rb +54 -0
  34. data/lib/mdqt/cli/rename.rb +75 -0
  35. data/lib/mdqt/cli/reset.rb +27 -0
  36. data/lib/mdqt/cli/services.rb +25 -0
  37. data/lib/mdqt/cli/transform.rb +33 -0
  38. data/lib/mdqt/cli/url.rb +37 -0
  39. data/lib/mdqt/cli/version.rb +17 -0
  40. data/lib/mdqt/cli.rb +24 -0
  41. data/lib/mdqt/client/identifier_utils.rb +51 -0
  42. data/lib/mdqt/client/metadata_file.rb +144 -0
  43. data/lib/mdqt/client/metadata_response.rb +182 -0
  44. data/lib/mdqt/client/metadata_service.rb +194 -0
  45. data/lib/mdqt/client/metadata_validator.rb +81 -0
  46. data/lib/mdqt/client.rb +83 -0
  47. data/lib/mdqt/schema/MetadataExchange.xsd +112 -0
  48. data/lib/mdqt/schema/mdqt_check_schema.xsd +5 -0
  49. data/lib/mdqt/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd +195 -0
  50. data/lib/mdqt/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd +108 -0
  51. data/lib/mdqt/schema/saml-schema-assertion-2.0.xsd +283 -0
  52. data/lib/mdqt/schema/saml-schema-metadata-2.0.xsd +337 -0
  53. data/lib/mdqt/schema/ws-addr.xsd +137 -0
  54. data/lib/mdqt/schema/ws-authorization.xsd +145 -0
  55. data/lib/mdqt/schema/ws-federation.xsd +471 -0
  56. data/lib/mdqt/schema/ws-securitypolicy-1.2.xsd +1205 -0
  57. data/lib/mdqt/schema/xenc-schema.xsd +136 -0
  58. data/lib/mdqt/schema/xml.xsd +287 -0
  59. data/lib/mdqt/schema/xmldsig-core-schema.xsd +309 -0
  60. data/lib/mdqt/version.rb +3 -0
  61. data/lib/mdqt.rb +5 -0
  62. data/lib/tasks/cucumber.rake +8 -0
  63. data/lib/tasks/spec.rake +5 -0
  64. data/lib/tasks/tests.rake +6 -0
  65. data/lib/tasks/yard.rake +6 -0
  66. metadata +332 -0
@@ -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>
@@ -0,0 +1,137 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ W3C XML Schema defined in the Web Services Addressing 1.0 specification
4
+ http://www.w3.org/TR/ws-addr-core
5
+
6
+ Copyright © 2005 World Wide Web Consortium,
7
+
8
+ (Massachusetts Institute of Technology, European Research Consortium for
9
+ Informatics and Mathematics, Keio University). All Rights Reserved. This
10
+ work is distributed under the W3C® Software License [1] in the hope that
11
+ it will be useful, but WITHOUT ANY WARRANTY; without even the implied
12
+ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
+
14
+ [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
15
+
16
+ $Id: ws-addr.xsd,v 1.2 2008/07/23 13:38:16 plehegar Exp $
17
+ -->
18
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2005/08/addressing" targetNamespace="http://www.w3.org/2005/08/addressing" blockDefault="#all" elementFormDefault="qualified" finalDefault="" attributeFormDefault="unqualified">
19
+
20
+ <!-- Constructs from the WS-Addressing Core -->
21
+
22
+ <xs:element name="EndpointReference" type="tns:EndpointReferenceType"/>
23
+ <xs:complexType name="EndpointReferenceType" mixed="false">
24
+ <xs:sequence>
25
+ <xs:element name="Address" type="tns:AttributedURIType"/>
26
+ <xs:element ref="tns:ReferenceParameters" minOccurs="0"/>
27
+ <xs:element ref="tns:Metadata" minOccurs="0"/>
28
+ <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
29
+ </xs:sequence>
30
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
31
+ </xs:complexType>
32
+
33
+ <xs:element name="ReferenceParameters" type="tns:ReferenceParametersType"/>
34
+ <xs:complexType name="ReferenceParametersType" mixed="false">
35
+ <xs:sequence>
36
+ <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
37
+ </xs:sequence>
38
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
39
+ </xs:complexType>
40
+
41
+ <xs:element name="Metadata" type="tns:MetadataType"/>
42
+ <xs:complexType name="MetadataType" mixed="false">
43
+ <xs:sequence>
44
+ <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
45
+ </xs:sequence>
46
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
47
+ </xs:complexType>
48
+
49
+ <xs:element name="MessageID" type="tns:AttributedURIType"/>
50
+ <xs:element name="RelatesTo" type="tns:RelatesToType"/>
51
+ <xs:complexType name="RelatesToType" mixed="false">
52
+ <xs:simpleContent>
53
+ <xs:extension base="xs:anyURI">
54
+ <xs:attribute name="RelationshipType" type="tns:RelationshipTypeOpenEnum" use="optional" default="http://www.w3.org/2005/08/addressing/reply"/>
55
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
56
+ </xs:extension>
57
+ </xs:simpleContent>
58
+ </xs:complexType>
59
+
60
+ <xs:simpleType name="RelationshipTypeOpenEnum">
61
+ <xs:union memberTypes="tns:RelationshipType xs:anyURI"/>
62
+ </xs:simpleType>
63
+
64
+ <xs:simpleType name="RelationshipType">
65
+ <xs:restriction base="xs:anyURI">
66
+ <xs:enumeration value="http://www.w3.org/2005/08/addressing/reply"/>
67
+ </xs:restriction>
68
+ </xs:simpleType>
69
+
70
+ <xs:element name="ReplyTo" type="tns:EndpointReferenceType"/>
71
+ <xs:element name="From" type="tns:EndpointReferenceType"/>
72
+ <xs:element name="FaultTo" type="tns:EndpointReferenceType"/>
73
+ <xs:element name="To" type="tns:AttributedURIType"/>
74
+ <xs:element name="Action" type="tns:AttributedURIType"/>
75
+
76
+ <xs:complexType name="AttributedURIType" mixed="false">
77
+ <xs:simpleContent>
78
+ <xs:extension base="xs:anyURI">
79
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
80
+ </xs:extension>
81
+ </xs:simpleContent>
82
+ </xs:complexType>
83
+
84
+ <!-- Constructs from the WS-Addressing SOAP binding -->
85
+
86
+ <xs:attribute name="IsReferenceParameter" type="xs:boolean"/>
87
+
88
+ <xs:simpleType name="FaultCodesOpenEnumType">
89
+ <xs:union memberTypes="tns:FaultCodesType xs:QName"/>
90
+ </xs:simpleType>
91
+
92
+ <xs:simpleType name="FaultCodesType">
93
+ <xs:restriction base="xs:QName">
94
+ <xs:enumeration value="tns:InvalidAddressingHeader"/>
95
+ <xs:enumeration value="tns:InvalidAddress"/>
96
+ <xs:enumeration value="tns:InvalidEPR"/>
97
+ <xs:enumeration value="tns:InvalidCardinality"/>
98
+ <xs:enumeration value="tns:MissingAddressInEPR"/>
99
+ <xs:enumeration value="tns:DuplicateMessageID"/>
100
+ <xs:enumeration value="tns:ActionMismatch"/>
101
+ <xs:enumeration value="tns:MessageAddressingHeaderRequired"/>
102
+ <xs:enumeration value="tns:DestinationUnreachable"/>
103
+ <xs:enumeration value="tns:ActionNotSupported"/>
104
+ <xs:enumeration value="tns:EndpointUnavailable"/>
105
+ </xs:restriction>
106
+ </xs:simpleType>
107
+
108
+ <xs:element name="RetryAfter" type="tns:AttributedUnsignedLongType"/>
109
+ <xs:complexType name="AttributedUnsignedLongType" mixed="false">
110
+ <xs:simpleContent>
111
+ <xs:extension base="xs:unsignedLong">
112
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
113
+ </xs:extension>
114
+ </xs:simpleContent>
115
+ </xs:complexType>
116
+
117
+ <xs:element name="ProblemHeaderQName" type="tns:AttributedQNameType"/>
118
+ <xs:complexType name="AttributedQNameType" mixed="false">
119
+ <xs:simpleContent>
120
+ <xs:extension base="xs:QName">
121
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
122
+ </xs:extension>
123
+ </xs:simpleContent>
124
+ </xs:complexType>
125
+
126
+ <xs:element name="ProblemIRI" type="tns:AttributedURIType"/>
127
+
128
+ <xs:element name="ProblemAction" type="tns:ProblemActionType"/>
129
+ <xs:complexType name="ProblemActionType" mixed="false">
130
+ <xs:sequence>
131
+ <xs:element ref="tns:Action" minOccurs="0"/>
132
+ <xs:element name="SoapAction" minOccurs="0" type="xs:anyURI"/>
133
+ </xs:sequence>
134
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
135
+ </xs:complexType>
136
+
137
+ </xs:schema>
@@ -0,0 +1,145 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the
4
+ implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available;
5
+ neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS
6
+ specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made
7
+ available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users
8
+ of this specification, can be obtained from the OASIS Executive Director.
9
+ OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may
10
+ cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
11
+ Copyright © OASIS Open 2002-2007. All Rights Reserved.
12
+ This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist
13
+ in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the
14
+ above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified
15
+ in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications,
16
+ in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate
17
+ it into languages other than English.
18
+ The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
19
+ This document and the information contained herein is provided on an AS IS basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
20
+ INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
21
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
22
+ -->
23
+
24
+ <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'
25
+ xmlns:xenc='http://www.w3.org/2001/04/xmlenc#'
26
+ xmlns:tns='http://docs.oasis-open.org/wsfed/authorization/200706'
27
+ targetNamespace='http://docs.oasis-open.org/wsfed/authorization/200706'
28
+ elementFormDefault='qualified' >
29
+ <xs:import namespace='http://www.w3.org/2001/04/xmlenc#'
30
+ schemaLocation='http://www.w3.org/TR/2002/REC-xmlenc-core-20021210/xenc-schema.xsd'/>
31
+
32
+ <!-- Section 9.2 -->
33
+ <xs:element name='AdditionalContext' type='tns:AdditionalContextType' />
34
+ <xs:complexType name='AdditionalContextType' >
35
+ <xs:sequence>
36
+ <xs:element name='ContextItem' type='tns:ContextItemType' minOccurs='0' maxOccurs='unbounded' />
37
+ <xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' />
38
+ </xs:sequence>
39
+ <xs:anyAttribute namespace='##other' processContents='lax' />
40
+ </xs:complexType>
41
+
42
+ <xs:complexType name='ContextItemType' >
43
+ <xs:choice minOccurs='0'>
44
+ <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />
45
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
46
+ </xs:choice>
47
+ <xs:attribute name='Name' type='xs:anyURI' use='required' />
48
+ <xs:attribute name='Scope' type='xs:anyURI' use='optional' />
49
+ <xs:anyAttribute namespace='##other' processContents='lax' />
50
+ </xs:complexType>
51
+
52
+ <!-- Section 9.3 -->
53
+ <xs:element name='ClaimType' type='tns:ClaimType' />
54
+ <xs:complexType name='ClaimType' >
55
+ <xs:sequence>
56
+ <xs:element name="DisplayName" type="tns:DisplayNameType" minOccurs="0" maxOccurs="1" />
57
+ <xs:element name="Description" type="tns:DescriptionType" minOccurs="0" maxOccurs="1" />
58
+ <xs:element name="DisplayValue" type="tns:DisplayValueType" minOccurs="0" maxOccurs="1" />
59
+ <xs:choice minOccurs='0'>
60
+ <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />
61
+ <xs:element name='EncryptedValue' type='tns:EncryptedValueType' minOccurs='1' maxOccurs='1' />
62
+ <xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='1' />
63
+ <xs:element name='ConstrainedValue' type='tns:ConstrainedValueType' minOccurs='1' maxOccurs='1' />
64
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='1' />
65
+ </xs:choice>
66
+ </xs:sequence>
67
+ <xs:attribute name='Uri' type='xs:anyURI' use='required' />
68
+ <xs:attribute name='Optional' type='xs:boolean' use='optional' />
69
+ <xs:anyAttribute namespace='##other' processContents='lax' />
70
+ </xs:complexType>
71
+
72
+ <xs:complexType name="DisplayNameType">
73
+ <xs:simpleContent>
74
+ <xs:extension base="xs:string">
75
+ <xs:anyAttribute namespace="##other" processContents="lax" />
76
+ </xs:extension>
77
+ </xs:simpleContent>
78
+ </xs:complexType>
79
+ <xs:complexType name="DescriptionType">
80
+ <xs:simpleContent>
81
+ <xs:extension base="xs:string">
82
+ <xs:anyAttribute namespace="##other" processContents="lax" />
83
+ </xs:extension>
84
+ </xs:simpleContent>
85
+ </xs:complexType>
86
+ <xs:complexType name="DisplayValueType">
87
+ <xs:simpleContent>
88
+ <xs:extension base="xs:string">
89
+ <xs:anyAttribute namespace="##other" processContents="lax" />
90
+ </xs:extension>
91
+ </xs:simpleContent>
92
+ </xs:complexType>
93
+
94
+ <xs:complexType name="EncryptedValueType">
95
+ <xs:sequence>
96
+ <xs:element ref="xenc:EncryptedData" minOccurs="1" maxOccurs="1"/>
97
+ </xs:sequence>
98
+ <xs:attribute name="DecryptionCondition" type="xs:anyURI" use="optional"/>
99
+ </xs:complexType>
100
+
101
+ <xs:complexType name="StructuredValueType">
102
+ <xs:sequence>
103
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />
104
+ </xs:sequence>
105
+ <xs:anyAttribute namespace='##other' processContents='lax' />
106
+ </xs:complexType>
107
+
108
+ <!-- Section 9.3.1 -->
109
+
110
+ <xs:complexType name='ConstrainedValueType'>
111
+ <xs:sequence>
112
+ <xs:choice minOccurs='1'>
113
+ <xs:element name='ValueLessThan' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
114
+ <xs:element name='ValueLessThanOrEqual' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
115
+ <xs:element name='ValueGreaterThan' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
116
+ <xs:element name='ValueGreaterThanOrEqual' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
117
+ <xs:element name='ValueInRangen' type='tns:ValueInRangeType' minOccurs='1' maxOccurs='1'/>
118
+ <xs:element name='ValueOneOf' type='tns:ConstrainedManyValueType' minOccurs='1' maxOccurs='1'/>
119
+ </xs:choice>
120
+ <xs:any namespace='##other' processContents='lax' minOccurs='1' maxOccurs='unbounded' />
121
+ </xs:sequence>
122
+ <xs:attribute name='AssertConstraint' type='xs:boolean' use='optional' />
123
+ </xs:complexType>
124
+ <xs:complexType name='ValueInRangeType'>
125
+ <xs:sequence>
126
+ <xs:element name='ValueUpperBound' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
127
+ <xs:element name='ValueLowerBound' type='tns:ConstrainedSingleValueType' minOccurs='1' maxOccurs='1'/>
128
+ </xs:sequence>
129
+ </xs:complexType>
130
+
131
+ <xs:complexType name='ConstrainedSingleValueType'>
132
+ <xs:choice minOccurs='0'>
133
+ <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='1' />
134
+ <xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='1' />
135
+ </xs:choice>
136
+ </xs:complexType>
137
+
138
+ <xs:complexType name='ConstrainedManyValueType'>
139
+ <xs:choice minOccurs='0'>
140
+ <xs:element name='Value' type='xs:string' minOccurs='1' maxOccurs='unbounded' />
141
+ <xs:element name='StructuredValue' type='tns:StructuredValueType' minOccurs='1' maxOccurs='unbounded' />
142
+ </xs:choice>
143
+ </xs:complexType>
144
+
145
+ </xs:schema>