ory-hydra-client 1.9.0.alpha1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AcceptConsentRequest.md +18 -17
  4. data/docs/AcceptLoginRequest.md +18 -17
  5. data/docs/AdminApi.md +816 -304
  6. data/docs/CompletedRequest.md +8 -7
  7. data/docs/ConsentRequest.md +30 -29
  8. data/docs/ConsentRequestSession.md +10 -9
  9. data/docs/ContainerWaitOKBodyError.md +8 -7
  10. data/docs/FlushInactiveOAuth2TokensRequest.md +8 -7
  11. data/docs/GenericError.md +14 -13
  12. data/docs/HealthNotReadyStatus.md +8 -7
  13. data/docs/HealthStatus.md +8 -7
  14. data/docs/JSONWebKey.md +40 -39
  15. data/docs/JSONWebKeySet.md +8 -7
  16. data/docs/JsonWebKeySetGeneratorRequest.md +12 -11
  17. data/docs/LoginRequest.md +24 -23
  18. data/docs/LogoutRequest.md +14 -13
  19. data/docs/OAuth2Client.md +72 -71
  20. data/docs/OAuth2TokenIntrospection.md +34 -31
  21. data/docs/Oauth2TokenResponse.md +18 -17
  22. data/docs/OpenIDConnectContext.md +16 -15
  23. data/docs/PluginConfig.md +38 -37
  24. data/docs/PluginConfigArgs.md +14 -13
  25. data/docs/PluginConfigInterface.md +10 -9
  26. data/docs/PluginConfigLinux.md +12 -11
  27. data/docs/PluginConfigNetwork.md +8 -7
  28. data/docs/PluginConfigRootfs.md +10 -9
  29. data/docs/PluginConfigUser.md +10 -9
  30. data/docs/PluginDevice.md +14 -13
  31. data/docs/PluginEnv.md +14 -13
  32. data/docs/PluginInterfaceType.md +12 -11
  33. data/docs/PluginMount.md +20 -19
  34. data/docs/PluginSettings.md +14 -13
  35. data/docs/PreviousConsentSession.md +20 -19
  36. data/docs/PublicApi.md +201 -60
  37. data/docs/RejectRequest.md +16 -15
  38. data/docs/UserinfoResponse.md +44 -43
  39. data/docs/Version.md +8 -7
  40. data/docs/VolumeUsageData.md +10 -9
  41. data/docs/WellKnown.md +58 -55
  42. data/lib/ory-hydra-client.rb +2 -2
  43. data/lib/ory-hydra-client/api/admin_api.rb +126 -96
  44. data/lib/ory-hydra-client/api/public_api.rb +34 -26
  45. data/lib/ory-hydra-client/api_client.rb +50 -48
  46. data/lib/ory-hydra-client/api_error.rb +2 -2
  47. data/lib/ory-hydra-client/configuration.rb +34 -7
  48. data/lib/ory-hydra-client/models/accept_consent_request.rb +21 -9
  49. data/lib/ory-hydra-client/models/accept_login_request.rb +20 -8
  50. data/lib/ory-hydra-client/models/completed_request.rb +20 -8
  51. data/lib/ory-hydra-client/models/consent_request.rb +20 -8
  52. data/lib/ory-hydra-client/models/consent_request_session.rb +20 -8
  53. data/lib/ory-hydra-client/models/container_wait_ok_body_error.rb +20 -8
  54. data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +21 -9
  55. data/lib/ory-hydra-client/models/generic_error.rb +20 -8
  56. data/lib/ory-hydra-client/models/health_not_ready_status.rb +20 -8
  57. data/lib/ory-hydra-client/models/health_status.rb +20 -8
  58. data/lib/ory-hydra-client/models/json_web_key.rb +20 -8
  59. data/lib/ory-hydra-client/models/json_web_key_set.rb +20 -8
  60. data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +20 -8
  61. data/lib/ory-hydra-client/models/login_request.rb +20 -8
  62. data/lib/ory-hydra-client/models/logout_request.rb +20 -8
  63. data/lib/ory-hydra-client/models/o_auth2_client.rb +22 -10
  64. data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +32 -10
  65. data/lib/ory-hydra-client/models/oauth2_token_response.rb +20 -8
  66. data/lib/ory-hydra-client/models/open_id_connect_context.rb +20 -8
  67. data/lib/ory-hydra-client/models/plugin_config.rb +20 -8
  68. data/lib/ory-hydra-client/models/plugin_config_args.rb +20 -8
  69. data/lib/ory-hydra-client/models/plugin_config_interface.rb +20 -8
  70. data/lib/ory-hydra-client/models/plugin_config_linux.rb +20 -8
  71. data/lib/ory-hydra-client/models/plugin_config_network.rb +20 -8
  72. data/lib/ory-hydra-client/models/plugin_config_rootfs.rb +20 -8
  73. data/lib/ory-hydra-client/models/plugin_config_user.rb +20 -8
  74. data/lib/ory-hydra-client/models/plugin_device.rb +20 -8
  75. data/lib/ory-hydra-client/models/plugin_env.rb +20 -8
  76. data/lib/ory-hydra-client/models/plugin_interface_type.rb +20 -8
  77. data/lib/ory-hydra-client/models/plugin_mount.rb +20 -8
  78. data/lib/ory-hydra-client/models/plugin_settings.rb +20 -8
  79. data/lib/ory-hydra-client/models/previous_consent_session.rb +21 -9
  80. data/lib/ory-hydra-client/models/reject_request.rb +20 -8
  81. data/lib/ory-hydra-client/models/userinfo_response.rb +20 -8
  82. data/lib/ory-hydra-client/models/version.rb +20 -8
  83. data/lib/ory-hydra-client/models/volume_usage_data.rb +20 -8
  84. data/lib/ory-hydra-client/models/well_known.rb +33 -9
  85. data/lib/ory-hydra-client/version.rb +3 -3
  86. data/ory-hydra-client.gemspec +4 -5
  87. data/spec/api_client_spec.rb +3 -3
  88. data/spec/configuration_spec.rb +2 -2
  89. data/spec/spec_helper.rb +2 -2
  90. metadata +30 -50
@@ -3,14 +3,15 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v1.9.0-alpha.1
6
+ The version of the OpenAPI document: v1.9.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 5.0.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module OryHydraClient
16
17
  # It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms among others.
@@ -54,6 +55,9 @@ module OryHydraClient
54
55
  # URL of the OP's Dynamic Client Registration Endpoint.
55
56
  attr_accessor :registration_endpoint
56
57
 
58
+ # JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter).
59
+ attr_accessor :request_object_signing_alg_values_supported
60
+
57
61
  # Boolean value specifying whether the OP supports use of the request parameter, with true indicating support.
58
62
  attr_accessor :request_parameter_supported
59
63
 
@@ -106,6 +110,7 @@ module OryHydraClient
106
110
  :'issuer' => :'issuer',
107
111
  :'jwks_uri' => :'jwks_uri',
108
112
  :'registration_endpoint' => :'registration_endpoint',
113
+ :'request_object_signing_alg_values_supported' => :'request_object_signing_alg_values_supported',
109
114
  :'request_parameter_supported' => :'request_parameter_supported',
110
115
  :'request_uri_parameter_supported' => :'request_uri_parameter_supported',
111
116
  :'require_request_uri_registration' => :'require_request_uri_registration',
@@ -121,6 +126,11 @@ module OryHydraClient
121
126
  }
122
127
  end
123
128
 
129
+ # Returns all the JSON keys this model knows about
130
+ def self.acceptable_attributes
131
+ attribute_map.values
132
+ end
133
+
124
134
  # Attribute type mapping.
125
135
  def self.openapi_types
126
136
  {
@@ -137,6 +147,7 @@ module OryHydraClient
137
147
  :'issuer' => :'String',
138
148
  :'jwks_uri' => :'String',
139
149
  :'registration_endpoint' => :'String',
150
+ :'request_object_signing_alg_values_supported' => :'Array<String>',
140
151
  :'request_parameter_supported' => :'Boolean',
141
152
  :'request_uri_parameter_supported' => :'Boolean',
142
153
  :'require_request_uri_registration' => :'Boolean',
@@ -231,6 +242,12 @@ module OryHydraClient
231
242
  self.registration_endpoint = attributes[:'registration_endpoint']
232
243
  end
233
244
 
245
+ if attributes.key?(:'request_object_signing_alg_values_supported')
246
+ if (value = attributes[:'request_object_signing_alg_values_supported']).is_a?(Array)
247
+ self.request_object_signing_alg_values_supported = value
248
+ end
249
+ end
250
+
234
251
  if attributes.key?(:'request_parameter_supported')
235
252
  self.request_parameter_supported = attributes[:'request_parameter_supported']
236
253
  end
@@ -358,6 +375,7 @@ module OryHydraClient
358
375
  issuer == o.issuer &&
359
376
  jwks_uri == o.jwks_uri &&
360
377
  registration_endpoint == o.registration_endpoint &&
378
+ request_object_signing_alg_values_supported == o.request_object_signing_alg_values_supported &&
361
379
  request_parameter_supported == o.request_parameter_supported &&
362
380
  request_uri_parameter_supported == o.request_uri_parameter_supported &&
363
381
  require_request_uri_registration == o.require_request_uri_registration &&
@@ -381,7 +399,7 @@ module OryHydraClient
381
399
  # Calculates hash code according to all attributes.
382
400
  # @return [Integer] Hash code
383
401
  def hash
384
- [authorization_endpoint, backchannel_logout_session_supported, backchannel_logout_supported, claims_parameter_supported, claims_supported, end_session_endpoint, frontchannel_logout_session_supported, frontchannel_logout_supported, grant_types_supported, id_token_signing_alg_values_supported, issuer, jwks_uri, registration_endpoint, request_parameter_supported, request_uri_parameter_supported, require_request_uri_registration, response_modes_supported, response_types_supported, revocation_endpoint, scopes_supported, subject_types_supported, token_endpoint, token_endpoint_auth_methods_supported, userinfo_endpoint, userinfo_signing_alg_values_supported].hash
402
+ [authorization_endpoint, backchannel_logout_session_supported, backchannel_logout_supported, claims_parameter_supported, claims_supported, end_session_endpoint, frontchannel_logout_session_supported, frontchannel_logout_supported, grant_types_supported, id_token_signing_alg_values_supported, issuer, jwks_uri, registration_endpoint, request_object_signing_alg_values_supported, request_parameter_supported, request_uri_parameter_supported, require_request_uri_registration, response_modes_supported, response_types_supported, revocation_endpoint, scopes_supported, subject_types_supported, token_endpoint, token_endpoint_auth_methods_supported, userinfo_endpoint, userinfo_signing_alg_values_supported].hash
385
403
  end
386
404
 
387
405
  # Builds the object from hash
@@ -397,7 +415,9 @@ module OryHydraClient
397
415
  def build_from_hash(attributes)
398
416
  return nil unless attributes.is_a?(Hash)
399
417
  self.class.openapi_types.each_pair do |key, type|
400
- if type =~ /\AArray<(.*)>/i
418
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
419
+ self.send("#{key}=", nil)
420
+ elsif type =~ /\AArray<(.*)>/i
401
421
  # check to ensure the input is an array given that the attribute
402
422
  # is documented as an array but the input is not
403
423
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -405,7 +425,7 @@ module OryHydraClient
405
425
  end
406
426
  elsif !attributes[self.class.attribute_map[key]].nil?
407
427
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
408
- end # or else data not found in attributes(hash), not an issue as the data can be optional
428
+ end
409
429
  end
410
430
 
411
431
  self
@@ -417,8 +437,8 @@ module OryHydraClient
417
437
  # @return [Object] Deserialized data
418
438
  def _deserialize(type, value)
419
439
  case type.to_sym
420
- when :DateTime
421
- DateTime.parse(value)
440
+ when :Time
441
+ Time.parse(value)
422
442
  when :Date
423
443
  Date.parse(value)
424
444
  when :String
@@ -448,7 +468,9 @@ module OryHydraClient
448
468
  end
449
469
  end
450
470
  else # model
451
- OryHydraClient.const_get(type).build_from_hash(value)
471
+ # models (e.g. Pet) or oneOf
472
+ klass = OryHydraClient.const_get(type)
473
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
452
474
  end
453
475
  end
454
476
 
@@ -474,7 +496,7 @@ module OryHydraClient
474
496
  is_nullable = self.class.openapi_nullable.include?(attr)
475
497
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
476
498
  end
477
-
499
+
478
500
  hash[param] = _to_hash(value)
479
501
  end
480
502
  hash
@@ -497,5 +519,7 @@ module OryHydraClient
497
519
  value
498
520
  end
499
521
  end
522
+
500
523
  end
524
+
501
525
  end
@@ -3,13 +3,13 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: 1.9.0.alpha1
6
+ The version of the OpenAPI document: 1.9.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 5.0.0
10
10
 
11
11
  =end
12
12
 
13
13
  module OryHydraClient
14
- VERSION = '1.9.0.alpha1'
14
+ VERSION = '1.9.2'
15
15
  end
@@ -5,10 +5,10 @@
5
5
 
6
6
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
7
7
 
8
- The version of the OpenAPI document: v1.9.0-alpha.1
8
+ The version of the OpenAPI document: v1.9.2
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.3.1
11
+ OpenAPI Generator version: 5.0.0
12
12
 
13
13
  =end
14
14
 
@@ -24,11 +24,10 @@ Gem::Specification.new do |s|
24
24
  s.homepage = "https://www.ory.sh"
25
25
  s.summary = "ORY Hydra Ruby Gem"
26
26
  s.description = "Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here."
27
- s.license = 'Apache-2.0'
28
- s.required_ruby_version = ">= 1.9"
27
+ s.license = "Apache-2.0"
28
+ s.required_ruby_version = ">= 2.4"
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
- s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
31
 
33
32
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
33
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.1
6
+ The version of the OpenAPI document: v1.9.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 5.0.0
10
10
 
11
11
  =end
12
12
 
@@ -156,7 +156,7 @@ describe OryHydraClient::ApiClient do
156
156
  end
157
157
 
158
158
  it 'fails for invalid collection format' do
159
- expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
159
+ expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
160
160
  end
161
161
  end
162
162
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.1
6
+ The version of the OpenAPI document: v1.9.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 5.0.0
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.1
6
+ The version of the OpenAPI document: v1.9.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 5.0.0
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ory-hydra-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0.alpha1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ORY GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-20 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -30,26 +30,6 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.1
33
- - !ruby/object:Gem::Dependency
34
- name: json
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.1'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 2.1.0
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '2.1'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 2.1.0
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: rspec
55
35
  requirement: !ruby/object:Gem::Requirement
@@ -222,12 +202,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
222
202
  requirements:
223
203
  - - ">="
224
204
  - !ruby/object:Gem::Version
225
- version: '1.9'
205
+ version: '2.4'
226
206
  required_rubygems_version: !ruby/object:Gem::Requirement
227
207
  requirements:
228
- - - ">"
208
+ - - ">="
229
209
  - !ruby/object:Gem::Version
230
- version: 1.3.1
210
+ version: '0'
231
211
  requirements: []
232
212
  rubyforge_project:
233
213
  rubygems_version: 2.7.6.2
@@ -239,42 +219,42 @@ test_files:
239
219
  - spec/api/public_api_spec.rb
240
220
  - spec/api_client_spec.rb
241
221
  - spec/configuration_spec.rb
242
- - spec/models/plugin_device_spec.rb
243
- - spec/models/health_not_ready_status_spec.rb
244
- - spec/models/plugin_env_spec.rb
245
- - spec/models/plugin_mount_spec.rb
246
222
  - spec/models/accept_consent_request_spec.rb
247
- - spec/models/generic_error_spec.rb
223
+ - spec/models/accept_login_request_spec.rb
224
+ - spec/models/completed_request_spec.rb
225
+ - spec/models/consent_request_session_spec.rb
226
+ - spec/models/consent_request_spec.rb
248
227
  - spec/models/container_wait_ok_body_error_spec.rb
249
- - spec/models/reject_request_spec.rb
228
+ - spec/models/flush_inactive_o_auth2_tokens_request_spec.rb
229
+ - spec/models/generic_error_spec.rb
230
+ - spec/models/health_not_ready_status_spec.rb
231
+ - spec/models/health_status_spec.rb
232
+ - spec/models/json_web_key_set_generator_request_spec.rb
250
233
  - spec/models/json_web_key_set_spec.rb
251
- - spec/models/plugin_interface_type_spec.rb
252
- - spec/models/plugin_config_rootfs_spec.rb
253
- - spec/models/consent_request_session_spec.rb
254
- - spec/models/plugin_config_network_spec.rb
255
- - spec/models/version_spec.rb
256
234
  - spec/models/json_web_key_spec.rb
257
- - spec/models/health_status_spec.rb
258
235
  - spec/models/login_request_spec.rb
259
236
  - spec/models/logout_request_spec.rb
260
- - spec/models/well_known_spec.rb
261
237
  - spec/models/o_auth2_client_spec.rb
262
- - spec/models/volume_usage_data_spec.rb
263
- - spec/models/userinfo_response_spec.rb
238
+ - spec/models/o_auth2_token_introspection_spec.rb
239
+ - spec/models/oauth2_token_response_spec.rb
240
+ - spec/models/oauth_token_response_spec.rb
264
241
  - spec/models/open_id_connect_context_spec.rb
265
- - spec/models/accept_login_request_spec.rb
266
- - spec/models/plugin_settings_spec.rb
267
242
  - spec/models/plugin_config_args_spec.rb
268
- - spec/models/consent_request_spec.rb
243
+ - spec/models/plugin_config_interface_spec.rb
269
244
  - spec/models/plugin_config_linux_spec.rb
270
- - spec/models/oauth2_token_response_spec.rb
245
+ - spec/models/plugin_config_network_spec.rb
246
+ - spec/models/plugin_config_rootfs_spec.rb
271
247
  - spec/models/plugin_config_spec.rb
272
- - spec/models/plugin_config_interface_spec.rb
273
248
  - spec/models/plugin_config_user_spec.rb
274
- - spec/models/o_auth2_token_introspection_spec.rb
275
- - spec/models/completed_request_spec.rb
276
- - spec/models/oauth_token_response_spec.rb
277
- - spec/models/flush_inactive_o_auth2_tokens_request_spec.rb
278
- - spec/models/json_web_key_set_generator_request_spec.rb
249
+ - spec/models/plugin_device_spec.rb
250
+ - spec/models/plugin_env_spec.rb
251
+ - spec/models/plugin_interface_type_spec.rb
252
+ - spec/models/plugin_mount_spec.rb
253
+ - spec/models/plugin_settings_spec.rb
279
254
  - spec/models/previous_consent_session_spec.rb
255
+ - spec/models/reject_request_spec.rb
256
+ - spec/models/userinfo_response_spec.rb
257
+ - spec/models/version_spec.rb
258
+ - spec/models/volume_usage_data_spec.rb
259
+ - spec/models/well_known_spec.rb
280
260
  - spec/spec_helper.rb