ory-hydra-client 0.0.0.alpha62 → 0.0.0.alpha63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +46 -32
  4. data/docs/AcceptConsentRequest.md +4 -2
  5. data/docs/AcceptLoginRequest.md +1 -1
  6. data/docs/AdminApi.md +111 -71
  7. data/docs/CompletedRequest.md +1 -1
  8. data/docs/ConsentRequest.md +4 -4
  9. data/docs/ConsentRequestSession.md +2 -2
  10. data/docs/ContainerWaitOKBodyError.md +17 -0
  11. data/docs/LoginRequest.md +7 -7
  12. data/docs/OAuth2Client.md +13 -11
  13. data/docs/OAuth2TokenIntrospection.md +5 -3
  14. data/docs/OpenIDConnectContext.md +1 -1
  15. data/docs/PluginConfig.md +47 -0
  16. data/docs/PluginConfigArgs.md +23 -0
  17. data/docs/PluginConfigInterface.md +19 -0
  18. data/docs/PluginConfigLinux.md +21 -0
  19. data/docs/PluginConfigNetwork.md +17 -0
  20. data/docs/PluginConfigRootfs.md +19 -0
  21. data/docs/PluginConfigUser.md +19 -0
  22. data/docs/PluginDevice.md +23 -0
  23. data/docs/PluginEnv.md +23 -0
  24. data/docs/PluginInterfaceType.md +21 -0
  25. data/docs/PluginMount.md +29 -0
  26. data/docs/PluginSettings.md +23 -0
  27. data/docs/PreviousConsentSession.md +4 -2
  28. data/docs/PublicApi.md +16 -16
  29. data/docs/RejectRequest.md +5 -5
  30. data/docs/VolumeUsageData.md +19 -0
  31. data/docs/WellKnown.md +3 -1
  32. data/lib/ory-hydra-client.rb +16 -3
  33. data/lib/ory-hydra-client/api/admin_api.rb +115 -49
  34. data/lib/ory-hydra-client/api/public_api.rb +14 -14
  35. data/lib/ory-hydra-client/api_client.rb +9 -7
  36. data/lib/ory-hydra-client/api_error.rb +2 -2
  37. data/lib/ory-hydra-client/configuration.rb +2 -2
  38. data/lib/ory-hydra-client/models/accept_consent_request.rb +12 -5
  39. data/lib/ory-hydra-client/models/accept_login_request.rb +4 -7
  40. data/lib/ory-hydra-client/models/completed_request.rb +7 -2
  41. data/lib/ory-hydra-client/models/consent_request.rb +10 -10
  42. data/lib/ory-hydra-client/models/consent_request_session.rb +6 -10
  43. data/lib/ory-hydra-client/models/container_wait_ok_body_error.rb +208 -0
  44. data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +2 -2
  45. data/lib/ory-hydra-client/models/generic_error.rb +2 -2
  46. data/lib/ory-hydra-client/models/health_not_ready_status.rb +2 -2
  47. data/lib/ory-hydra-client/models/health_status.rb +2 -2
  48. data/lib/ory-hydra-client/models/json_web_key.rb +3 -2
  49. data/lib/ory-hydra-client/models/json_web_key_set.rb +3 -2
  50. data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +2 -2
  51. data/lib/ory-hydra-client/models/login_request.rb +38 -5
  52. data/lib/ory-hydra-client/models/logout_request.rb +2 -2
  53. data/lib/ory-hydra-client/models/o_auth2_client.rb +17 -18
  54. data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +17 -9
  55. data/lib/ory-hydra-client/models/oauth2_token_response.rb +2 -2
  56. data/lib/ory-hydra-client/models/oauth_token_response.rb +1 -1
  57. data/lib/ory-hydra-client/models/open_id_connect_context.rb +4 -6
  58. data/lib/ory-hydra-client/models/plugin_config.rb +422 -0
  59. data/lib/ory-hydra-client/models/plugin_config_args.rb +262 -0
  60. data/lib/ory-hydra-client/models/plugin_config_interface.rb +230 -0
  61. data/lib/ory-hydra-client/models/plugin_config_linux.rb +247 -0
  62. data/lib/ory-hydra-client/models/plugin_config_network.rb +213 -0
  63. data/lib/ory-hydra-client/models/plugin_config_rootfs.rb +220 -0
  64. data/lib/ory-hydra-client/models/plugin_config_user.rb +218 -0
  65. data/lib/ory-hydra-client/models/plugin_device.rb +260 -0
  66. data/lib/ory-hydra-client/models/plugin_env.rb +260 -0
  67. data/lib/ory-hydra-client/models/plugin_interface_type.rb +243 -0
  68. data/lib/ory-hydra-client/models/plugin_mount.rb +307 -0
  69. data/lib/ory-hydra-client/models/plugin_settings.rb +265 -0
  70. data/lib/ory-hydra-client/models/previous_consent_session.rb +12 -5
  71. data/lib/ory-hydra-client/models/reject_request.rb +7 -2
  72. data/lib/ory-hydra-client/models/userinfo_response.rb +2 -2
  73. data/lib/ory-hydra-client/models/version.rb +2 -2
  74. data/lib/ory-hydra-client/models/volume_usage_data.rb +228 -0
  75. data/lib/ory-hydra-client/models/well_known.rb +15 -3
  76. data/lib/ory-hydra-client/version.rb +3 -3
  77. data/ory-hydra-client.gemspec +2 -2
  78. data/spec/models/container_wait_ok_body_error_spec.rb +41 -0
  79. data/spec/models/plugin_config_args_spec.rb +59 -0
  80. data/spec/models/plugin_config_interface_spec.rb +47 -0
  81. data/spec/models/plugin_config_linux_spec.rb +53 -0
  82. data/spec/models/plugin_config_network_spec.rb +41 -0
  83. data/spec/models/plugin_config_rootfs_spec.rb +47 -0
  84. data/spec/models/plugin_config_spec.rb +131 -0
  85. data/spec/models/plugin_config_user_spec.rb +47 -0
  86. data/spec/models/plugin_device_spec.rb +59 -0
  87. data/spec/models/plugin_env_spec.rb +59 -0
  88. data/spec/models/plugin_interface_type_spec.rb +53 -0
  89. data/spec/models/plugin_mount_spec.rb +77 -0
  90. data/spec/models/plugin_settings_spec.rb +59 -0
  91. data/spec/models/volume_usage_data_spec.rb +47 -0
  92. metadata +76 -20
@@ -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.20
6
+ The version of the OpenAPI document: v0.0.0-alpha.63
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,7 @@ module OryHydraClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # OpenID Connect Front-Backchannel enabled Logout
22
+ # OpenID Connect Front-Backchannel Enabled Logout
23
23
  # This endpoint initiates and completes user logout at ORY Hydra and initiates OpenID Connect Front-/Back-channel logout: https://openid.net/specs/openid-connect-frontchannel-1_0.html https://openid.net/specs/openid-connect-backchannel-1_0.html
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [nil]
@@ -28,7 +28,7 @@ module OryHydraClient
28
28
  nil
29
29
  end
30
30
 
31
- # OpenID Connect Front-Backchannel enabled Logout
31
+ # OpenID Connect Front-Backchannel Enabled Logout
32
32
  # This endpoint initiates and completes user logout at ORY Hydra and initiates OpenID Connect Front-/Back-channel logout: https://openid.net/specs/openid-connect-frontchannel-1_0.html https://openid.net/specs/openid-connect-backchannel-1_0.html
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -129,7 +129,7 @@ module OryHydraClient
129
129
  return data, status_code, headers
130
130
  end
131
131
 
132
- # Check readiness status
132
+ # Check Readiness Status
133
133
  # This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
134
134
  # @param [Hash] opts the optional parameters
135
135
  # @return [HealthStatus]
@@ -138,7 +138,7 @@ module OryHydraClient
138
138
  data
139
139
  end
140
140
 
141
- # Check readiness status
141
+ # Check Readiness Status
142
142
  # This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the &#x60;X-Forwarded-Proto&#x60; header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
143
143
  # @param [Hash] opts the optional parameters
144
144
  # @return [Array<(HealthStatus, Integer, Hash)>] HealthStatus data, response status code and response headers
@@ -185,8 +185,8 @@ module OryHydraClient
185
185
  return data, status_code, headers
186
186
  end
187
187
 
188
- # The OAuth 2.0 token endpoint
189
- # The client makes a request to the token endpoint by sending the following parameters using the \"application/x-www-form-urlencoded\" HTTP request entity-body. > Do not implement a client for this endpoint yourself. Use a library. There are many libraries > available for any programming language. You can find a list of libraries here: https://oauth.net/code/ > > Do not the the Hydra SDK does not implement this endpoint properly. Use one of the libraries listed above!
188
+ # The OAuth 2.0 Token Endpoint
189
+ # The client makes a request to the token endpoint by sending the following parameters using the \"application/x-www-form-urlencoded\" HTTP request entity-body. > Do not implement a client for this endpoint yourself. Use a library. There are many libraries > available for any programming language. You can find a list of libraries here: https://oauth.net/code/ > > Do note that Hydra SDK does not implement this endpoint properly. Use one of the libraries listed above!
190
190
  # @param grant_type [String]
191
191
  # @param [Hash] opts the optional parameters
192
192
  # @option opts [String] :code
@@ -199,8 +199,8 @@ module OryHydraClient
199
199
  data
200
200
  end
201
201
 
202
- # The OAuth 2.0 token endpoint
203
- # The client makes a request to the token endpoint by sending the following parameters using the \&quot;application/x-www-form-urlencoded\&quot; HTTP request entity-body. &gt; Do not implement a client for this endpoint yourself. Use a library. There are many libraries &gt; available for any programming language. You can find a list of libraries here: https://oauth.net/code/ &gt; &gt; Do not the the Hydra SDK does not implement this endpoint properly. Use one of the libraries listed above!
202
+ # The OAuth 2.0 Token Endpoint
203
+ # The client makes a request to the token endpoint by sending the following parameters using the \&quot;application/x-www-form-urlencoded\&quot; HTTP request entity-body. &gt; Do not implement a client for this endpoint yourself. Use a library. There are many libraries &gt; available for any programming language. You can find a list of libraries here: https://oauth.net/code/ &gt; &gt; Do note that Hydra SDK does not implement this endpoint properly. Use one of the libraries listed above!
204
204
  # @param grant_type [String]
205
205
  # @param [Hash] opts the optional parameters
206
206
  # @option opts [String] :code
@@ -262,7 +262,7 @@ module OryHydraClient
262
262
  return data, status_code, headers
263
263
  end
264
264
 
265
- # The OAuth 2.0 authorize endpoint
265
+ # The OAuth 2.0 Authorize Endpoint
266
266
  # This endpoint is not documented here because you should never use your own implementation to perform OAuth2 flows. OAuth2 is a very popular protocol and a library for your programming language will exists. To learn more about this flow please refer to the specification: https://tools.ietf.org/html/rfc6749
267
267
  # @param [Hash] opts the optional parameters
268
268
  # @return [nil]
@@ -271,7 +271,7 @@ module OryHydraClient
271
271
  nil
272
272
  end
273
273
 
274
- # The OAuth 2.0 authorize endpoint
274
+ # The OAuth 2.0 Authorize Endpoint
275
275
  # This endpoint is not documented here because you should never use your own implementation to perform OAuth2 flows. OAuth2 is a very popular protocol and a library for your programming language will exists. To learn more about this flow please refer to the specification: https://tools.ietf.org/html/rfc6749
276
276
  # @param [Hash] opts the optional parameters
277
277
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -318,7 +318,7 @@ module OryHydraClient
318
318
  return data, status_code, headers
319
319
  end
320
320
 
321
- # Revoke OAuth2 tokens
321
+ # Revoke OAuth2 Tokens
322
322
  # Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by the client the token was generated for.
323
323
  # @param token [String]
324
324
  # @param [Hash] opts the optional parameters
@@ -328,7 +328,7 @@ module OryHydraClient
328
328
  nil
329
329
  end
330
330
 
331
- # Revoke OAuth2 tokens
331
+ # Revoke OAuth2 Tokens
332
332
  # Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by the client the token was generated for.
333
333
  # @param token [String]
334
334
  # @param [Hash] opts the optional parameters
@@ -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.20
6
+ The version of the OpenAPI document: v0.0.0-alpha.63
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -269,11 +269,13 @@ module OryHydraClient
269
269
  tempfile.write(chunk)
270
270
  end
271
271
  request.on_complete do |response|
272
- tempfile.close if tempfile
273
- @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
274
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
275
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
276
- "explicitly with `tempfile.delete`"
272
+ if tempfile
273
+ tempfile.close
274
+ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
275
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
276
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
277
+ "explicitly with `tempfile.delete`"
278
+ end
277
279
  end
278
280
  end
279
281
 
@@ -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.20
6
+ The version of the OpenAPI document: v0.0.0-alpha.63
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.3.1
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.20
6
+ The version of the OpenAPI document: v0.0.0-alpha.63
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.3.1
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.20
6
+ The version of the OpenAPI document: v0.0.0-alpha.63
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -14,12 +14,12 @@ require 'date'
14
14
 
15
15
  module OryHydraClient
16
16
  class AcceptConsentRequest
17
- # GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`.
18
17
  attr_accessor :grant_access_token_audience
19
18
 
20
- # GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`.
21
19
  attr_accessor :grant_scope
22
20
 
21
+ attr_accessor :handled_at
22
+
23
23
  # Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.
24
24
  attr_accessor :remember
25
25
 
@@ -33,6 +33,7 @@ module OryHydraClient
33
33
  {
34
34
  :'grant_access_token_audience' => :'grant_access_token_audience',
35
35
  :'grant_scope' => :'grant_scope',
36
+ :'handled_at' => :'handled_at',
36
37
  :'remember' => :'remember',
37
38
  :'remember_for' => :'remember_for',
38
39
  :'session' => :'session'
@@ -44,6 +45,7 @@ module OryHydraClient
44
45
  {
45
46
  :'grant_access_token_audience' => :'Array<String>',
46
47
  :'grant_scope' => :'Array<String>',
48
+ :'handled_at' => :'DateTime',
47
49
  :'remember' => :'Boolean',
48
50
  :'remember_for' => :'Integer',
49
51
  :'session' => :'ConsentRequestSession'
@@ -83,6 +85,10 @@ module OryHydraClient
83
85
  end
84
86
  end
85
87
 
88
+ if attributes.key?(:'handled_at')
89
+ self.handled_at = attributes[:'handled_at']
90
+ end
91
+
86
92
  if attributes.key?(:'remember')
87
93
  self.remember = attributes[:'remember']
88
94
  end
@@ -116,6 +122,7 @@ module OryHydraClient
116
122
  self.class == o.class &&
117
123
  grant_access_token_audience == o.grant_access_token_audience &&
118
124
  grant_scope == o.grant_scope &&
125
+ handled_at == o.handled_at &&
119
126
  remember == o.remember &&
120
127
  remember_for == o.remember_for &&
121
128
  session == o.session
@@ -130,7 +137,7 @@ module OryHydraClient
130
137
  # Calculates hash code according to all attributes.
131
138
  # @return [Integer] Hash code
132
139
  def hash
133
- [grant_access_token_audience, grant_scope, remember, remember_for, session].hash
140
+ [grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash
134
141
  end
135
142
 
136
143
  # Builds the object from hash
@@ -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.20
6
+ The version of the OpenAPI document: v0.0.0-alpha.63
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -17,7 +17,6 @@ module OryHydraClient
17
17
  # ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication.
18
18
  attr_accessor :acr
19
19
 
20
- # Context is an optional object which can hold arbitrary data. The data will be made available when fetching the consent request under the \"context\" field. This is useful in scenarios where login and consent endpoints share data.
21
20
  attr_accessor :context
22
21
 
23
22
  # ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail.
@@ -48,7 +47,7 @@ module OryHydraClient
48
47
  def self.openapi_types
49
48
  {
50
49
  :'acr' => :'String',
51
- :'context' => :'Hash<String, Object>',
50
+ :'context' => :'Object',
52
51
  :'force_subject_identifier' => :'String',
53
52
  :'remember' => :'Boolean',
54
53
  :'remember_for' => :'Integer',
@@ -82,9 +81,7 @@ module OryHydraClient
82
81
  end
83
82
 
84
83
  if attributes.key?(:'context')
85
- if (value = attributes[:'context']).is_a?(Hash)
86
- self.context = value
87
- end
84
+ self.context = attributes[:'context']
88
85
  end
89
86
 
90
87
  if attributes.key?(:'force_subject_identifier')
@@ -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.20
6
+ The version of the OpenAPI document: v0.0.0-alpha.63
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -61,12 +61,17 @@ module OryHydraClient
61
61
  # @return Array for valid properties with the reasons
62
62
  def list_invalid_properties
63
63
  invalid_properties = Array.new
64
+ if @redirect_to.nil?
65
+ invalid_properties.push('invalid value for "redirect_to", redirect_to cannot be nil.')
66
+ end
67
+
64
68
  invalid_properties
65
69
  end
66
70
 
67
71
  # Check to see if the all the properties in the model are valid
68
72
  # @return true if the model is valid
69
73
  def valid?
74
+ return false if @redirect_to.nil?
70
75
  true
71
76
  end
72
77
 
@@ -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.20
6
+ The version of the OpenAPI document: v0.0.0-alpha.63
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -17,12 +17,11 @@ module OryHydraClient
17
17
  # ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication.
18
18
  attr_accessor :acr
19
19
 
20
- # Challenge is the identifier (\"authorization challenge\") of the consent authorization request. It is used to identify the session.
20
+ # ID is the identifier (\"authorization challenge\") of the consent authorization request. It is used to identify the session.
21
21
  attr_accessor :challenge
22
22
 
23
23
  attr_accessor :client
24
24
 
25
- # Context contains arbitrary information set by the login endpoint or is empty if not set.
26
25
  attr_accessor :context
27
26
 
28
27
  # LoginChallenge is the login challenge this consent challenge belongs to. It can be used to associate a login and consent request in the login & consent app.
@@ -36,10 +35,8 @@ module OryHydraClient
36
35
  # RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters.
37
36
  attr_accessor :request_url
38
37
 
39
- # RequestedScope contains the access token audience as requested by the OAuth 2.0 Client.
40
38
  attr_accessor :requested_access_token_audience
41
39
 
42
- # RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client.
43
40
  attr_accessor :requested_scope
44
41
 
45
42
  # Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you must not ask the user to grant the requested scopes. You must however either allow or deny the consent request using the usual API call.
@@ -72,7 +69,7 @@ module OryHydraClient
72
69
  :'acr' => :'String',
73
70
  :'challenge' => :'String',
74
71
  :'client' => :'OAuth2Client',
75
- :'context' => :'Hash<String, Object>',
72
+ :'context' => :'Object',
76
73
  :'login_challenge' => :'String',
77
74
  :'login_session_id' => :'String',
78
75
  :'oidc_context' => :'OpenIDConnectContext',
@@ -118,9 +115,7 @@ module OryHydraClient
118
115
  end
119
116
 
120
117
  if attributes.key?(:'context')
121
- if (value = attributes[:'context']).is_a?(Hash)
122
- self.context = value
123
- end
118
+ self.context = attributes[:'context']
124
119
  end
125
120
 
126
121
  if attributes.key?(:'login_challenge')
@@ -164,12 +159,17 @@ module OryHydraClient
164
159
  # @return Array for valid properties with the reasons
165
160
  def list_invalid_properties
166
161
  invalid_properties = Array.new
162
+ if @challenge.nil?
163
+ invalid_properties.push('invalid value for "challenge", challenge cannot be nil.')
164
+ end
165
+
167
166
  invalid_properties
168
167
  end
169
168
 
170
169
  # Check to see if the all the properties in the model are valid
171
170
  # @return true if the model is valid
172
171
  def valid?
172
+ return false if @challenge.nil?
173
173
  true
174
174
  end
175
175
 
@@ -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.20
6
+ The version of the OpenAPI document: v0.0.0-alpha.63
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -31,8 +31,8 @@ module OryHydraClient
31
31
  # Attribute type mapping.
32
32
  def self.openapi_types
33
33
  {
34
- :'access_token' => :'Hash<String, Object>',
35
- :'id_token' => :'Hash<String, Object>'
34
+ :'access_token' => :'Object',
35
+ :'id_token' => :'Object'
36
36
  }
37
37
  end
38
38
 
@@ -58,15 +58,11 @@ module OryHydraClient
58
58
  }
59
59
 
60
60
  if attributes.key?(:'access_token')
61
- if (value = attributes[:'access_token']).is_a?(Hash)
62
- self.access_token = value
63
- end
61
+ self.access_token = attributes[:'access_token']
64
62
  end
65
63
 
66
64
  if attributes.key?(:'id_token')
67
- if (value = attributes[:'id_token']).is_a?(Hash)
68
- self.id_token = value
69
- end
65
+ self.id_token = attributes[:'id_token']
70
66
  end
71
67
  end
72
68
 
@@ -0,0 +1,208 @@
1
+ =begin
2
+ #ORY Hydra
3
+
4
+ #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
+
6
+ The version of the OpenAPI document: v0.0.0-alpha.63
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module OryHydraClient
16
+ # ContainerWaitOKBodyError container waiting error, if any
17
+ class ContainerWaitOKBodyError
18
+ # Details of an error
19
+ attr_accessor :message
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'message' => :'Message'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.openapi_types
30
+ {
31
+ :'message' => :'String'
32
+ }
33
+ end
34
+
35
+ # List of attributes with nullable: true
36
+ def self.openapi_nullable
37
+ Set.new([
38
+ ])
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ if (!attributes.is_a?(Hash))
45
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::ContainerWaitOKBodyError` initialize method"
46
+ end
47
+
48
+ # check to see if the attribute exists and convert string to symbol for hash key
49
+ attributes = attributes.each_with_object({}) { |(k, v), h|
50
+ if (!self.class.attribute_map.key?(k.to_sym))
51
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::ContainerWaitOKBodyError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
+ end
53
+ h[k.to_sym] = v
54
+ }
55
+
56
+ if attributes.key?(:'message')
57
+ self.message = attributes[:'message']
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ invalid_properties
66
+ end
67
+
68
+ # Check to see if the all the properties in the model are valid
69
+ # @return true if the model is valid
70
+ def valid?
71
+ true
72
+ end
73
+
74
+ # Checks equality by comparing each attribute.
75
+ # @param [Object] Object to be compared
76
+ def ==(o)
77
+ return true if self.equal?(o)
78
+ self.class == o.class &&
79
+ message == o.message
80
+ end
81
+
82
+ # @see the `==` method
83
+ # @param [Object] Object to be compared
84
+ def eql?(o)
85
+ self == o
86
+ end
87
+
88
+ # Calculates hash code according to all attributes.
89
+ # @return [Integer] Hash code
90
+ def hash
91
+ [message].hash
92
+ end
93
+
94
+ # Builds the object from hash
95
+ # @param [Hash] attributes Model attributes in the form of hash
96
+ # @return [Object] Returns the model itself
97
+ def self.build_from_hash(attributes)
98
+ new.build_from_hash(attributes)
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def build_from_hash(attributes)
105
+ return nil unless attributes.is_a?(Hash)
106
+ self.class.openapi_types.each_pair do |key, type|
107
+ if type =~ /\AArray<(.*)>/i
108
+ # check to ensure the input is an array given that the attribute
109
+ # is documented as an array but the input is not
110
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
111
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
112
+ end
113
+ elsif !attributes[self.class.attribute_map[key]].nil?
114
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
115
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
116
+ end
117
+
118
+ self
119
+ end
120
+
121
+ # Deserializes the data based on type
122
+ # @param string type Data type
123
+ # @param string value Value to be deserialized
124
+ # @return [Object] Deserialized data
125
+ def _deserialize(type, value)
126
+ case type.to_sym
127
+ when :DateTime
128
+ DateTime.parse(value)
129
+ when :Date
130
+ Date.parse(value)
131
+ when :String
132
+ value.to_s
133
+ when :Integer
134
+ value.to_i
135
+ when :Float
136
+ value.to_f
137
+ when :Boolean
138
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
139
+ true
140
+ else
141
+ false
142
+ end
143
+ when :Object
144
+ # generic object (usually a Hash), return directly
145
+ value
146
+ when /\AArray<(?<inner_type>.+)>\z/
147
+ inner_type = Regexp.last_match[:inner_type]
148
+ value.map { |v| _deserialize(inner_type, v) }
149
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
150
+ k_type = Regexp.last_match[:k_type]
151
+ v_type = Regexp.last_match[:v_type]
152
+ {}.tap do |hash|
153
+ value.each do |k, v|
154
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
155
+ end
156
+ end
157
+ else # model
158
+ OryHydraClient.const_get(type).build_from_hash(value)
159
+ end
160
+ end
161
+
162
+ # Returns the string representation of the object
163
+ # @return [String] String presentation of the object
164
+ def to_s
165
+ to_hash.to_s
166
+ end
167
+
168
+ # to_body is an alias to to_hash (backward compatibility)
169
+ # @return [Hash] Returns the object in the form of hash
170
+ def to_body
171
+ to_hash
172
+ end
173
+
174
+ # Returns the object in the form of hash
175
+ # @return [Hash] Returns the object in the form of hash
176
+ def to_hash
177
+ hash = {}
178
+ self.class.attribute_map.each_pair do |attr, param|
179
+ value = self.send(attr)
180
+ if value.nil?
181
+ is_nullable = self.class.openapi_nullable.include?(attr)
182
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
+ end
184
+
185
+ hash[param] = _to_hash(value)
186
+ end
187
+ hash
188
+ end
189
+
190
+ # Outputs non-array value in the form of hash
191
+ # For object, use to_hash. Otherwise, just return the value
192
+ # @param [Object] value Any valid value
193
+ # @return [Hash] Returns the value in the form of hash
194
+ def _to_hash(value)
195
+ if value.is_a?(Array)
196
+ value.compact.map { |v| _to_hash(v) }
197
+ elsif value.is_a?(Hash)
198
+ {}.tap do |hash|
199
+ value.each { |k, v| hash[k] = _to_hash(v) }
200
+ end
201
+ elsif value.respond_to? :to_hash
202
+ value.to_hash
203
+ else
204
+ value
205
+ end
206
+ end
207
+ end
208
+ end