ory-hydra-client 1.2.2 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -5
  3. data/docs/AcceptConsentRequest.md +2 -0
  4. data/docs/FlushInactiveOAuth2TokensRequest.md +1 -1
  5. data/docs/JSONWebKey.md +12 -12
  6. data/docs/OAuth2Client.md +2 -2
  7. data/docs/Oauth2TokenResponse.md +6 -6
  8. data/docs/PreviousConsentSession.md +2 -0
  9. data/docs/RejectRequest.md +5 -5
  10. data/lib/ory-hydra-client.rb +1 -2
  11. data/lib/ory-hydra-client/api/admin_api.rb +1 -1
  12. data/lib/ory-hydra-client/api/public_api.rb +1 -1
  13. data/lib/ory-hydra-client/api_client.rb +1 -1
  14. data/lib/ory-hydra-client/api_error.rb +1 -1
  15. data/lib/ory-hydra-client/configuration.rb +1 -1
  16. data/lib/ory-hydra-client/models/accept_consent_request.rb +12 -2
  17. data/lib/ory-hydra-client/models/accept_login_request.rb +1 -1
  18. data/lib/ory-hydra-client/models/completed_request.rb +1 -1
  19. data/lib/ory-hydra-client/models/consent_request.rb +1 -1
  20. data/lib/ory-hydra-client/models/consent_request_session.rb +1 -1
  21. data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +2 -3
  22. data/lib/ory-hydra-client/models/generic_error.rb +1 -1
  23. data/lib/ory-hydra-client/models/health_not_ready_status.rb +1 -1
  24. data/lib/ory-hydra-client/models/health_status.rb +1 -1
  25. data/lib/ory-hydra-client/models/json_web_key.rb +1 -14
  26. data/lib/ory-hydra-client/models/json_web_key_set.rb +1 -2
  27. data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +1 -2
  28. data/lib/ory-hydra-client/models/login_request.rb +1 -1
  29. data/lib/ory-hydra-client/models/logout_request.rb +1 -1
  30. data/lib/ory-hydra-client/models/o_auth2_client.rb +3 -3
  31. data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +1 -1
  32. data/lib/ory-hydra-client/models/oauth2_token_response.rb +2 -8
  33. data/lib/ory-hydra-client/models/oauth_token_response.rb +1 -1
  34. data/lib/ory-hydra-client/models/open_id_connect_context.rb +1 -1
  35. data/lib/ory-hydra-client/models/previous_consent_session.rb +12 -3
  36. data/lib/ory-hydra-client/models/reject_request.rb +1 -6
  37. data/lib/ory-hydra-client/models/userinfo_response.rb +2 -2
  38. data/lib/ory-hydra-client/models/version.rb +1 -2
  39. data/lib/ory-hydra-client/models/well_known.rb +1 -1
  40. data/lib/ory-hydra-client/version.rb +2 -2
  41. data/ory-hydra-client.gemspec +1 -1
  42. metadata +17 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5ecbe0eb3c440ed55b619cf93fd44179357d061fe70c0c9e240c78cdb49af7d
4
- data.tar.gz: 19ada5469fff450e7de2178dc281a840172ce884d37e0af7f16574a35f962d8e
3
+ metadata.gz: 64896b08d4e74e6888d06395e7979b8693be3b7e13be48977a43b0e1a2f41a22
4
+ data.tar.gz: 75438a710f89c9b4b07b82ef866dc7a00f90e5edaea5f37de6554b48d356301b
5
5
  SHA512:
6
- metadata.gz: d0eab9cf080502dc79a30a59bcad5b8f8d72cfc31aa0f8c22bf8fe8a2c91753e111ee975541c3bb882879e1b5fcd3e7d121bfd16199e4a42448058d129e93631
7
- data.tar.gz: 41d5b4dbba6c88071b59873b0c3f8d63ede4b66007bc25701df6080b3f1731f6fb812daaf57f2cdd6db779a417774ede2600338d15bf023ff8ced93f23657820
6
+ metadata.gz: 1c1feefdb2f88cdef71173c7e88ac58a92ff5332bd2978e60004e4066c8d2738d63a53bb1d37dd7b689da9c5e216e0088e5e577d9d9a924e7119ddc38b530a9f
7
+ data.tar.gz: 18dfd6a1e0210f5c4ad87939e1a774f4c245d14ce3702111eb0a8b3caf1503f942d7d3a3bb6d813bb21ad471ff9ef85f573a89ccdf41bbcd1aaa4f2aa1273253
data/README.md CHANGED
@@ -7,7 +7,7 @@ Welcome to the ORY Hydra HTTP API documentation. You will find documentation for
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: latest
10
- - Package version: v1.2.2
10
+ - Package version: v1.3.1
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build ory-hydra-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./ory-hydra-client-v1.2.2.gem
26
+ gem install ./ory-hydra-client-v1.3.1.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./ory-hydra-client-v1.2.2.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ory-hydra-client-v1.3.1.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'ory-hydra-client', '~> v1.2.2'
35
+ gem 'ory-hydra-client', '~> v1.3.1'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -136,7 +136,6 @@ Class | Method | HTTP request | Description
136
136
  - [OryHydraClient::OAuth2Client](docs/OAuth2Client.md)
137
137
  - [OryHydraClient::OAuth2TokenIntrospection](docs/OAuth2TokenIntrospection.md)
138
138
  - [OryHydraClient::Oauth2TokenResponse](docs/Oauth2TokenResponse.md)
139
- - [OryHydraClient::OauthTokenResponse](docs/OauthTokenResponse.md)
140
139
  - [OryHydraClient::OpenIDConnectContext](docs/OpenIDConnectContext.md)
141
140
  - [OryHydraClient::PreviousConsentSession](docs/PreviousConsentSession.md)
142
141
  - [OryHydraClient::RejectRequest](docs/RejectRequest.md)
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **grant_access_token_audience** | **Array<String>** | GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. | [optional]
8
8
  **grant_scope** | **Array<String>** | GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`. | [optional]
9
+ **handled_at** | **DateTime** | HandledAt contains the timestamp the consent request was handled. | [optional]
9
10
  **remember** | **Boolean** | 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. | [optional]
10
11
  **remember_for** | **Integer** | RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional]
11
12
  **session** | [**ConsentRequestSession**](ConsentRequestSession.md) | | [optional]
@@ -17,6 +18,7 @@ require 'OryHydraClient'
17
18
 
18
19
  instance = OryHydraClient::AcceptConsentRequest.new(grant_access_token_audience: null,
19
20
  grant_scope: null,
21
+ handled_at: null,
20
22
  remember: null,
21
23
  remember_for: null,
22
24
  session: null)
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **not_after** | **DateTime** | NotAfter sets after which point tokens should not be flushed. This is useful when you want to keep a history of recently issued tokens for auditing. Format: date-time | [optional]
7
+ **not_after** | **DateTime** | NotAfter sets after which point tokens should not be flushed. This is useful when you want to keep a history of recently issued tokens for auditing. | [optional]
8
8
 
9
9
  ## Code Sample
10
10
 
data/docs/JSONWebKey.md CHANGED
@@ -5,22 +5,22 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **alg** | **String** | The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. |
8
- **crv** | **String** | crv | [optional]
9
- **d** | **String** | d | [optional]
10
- **dp** | **String** | dp | [optional]
11
- **dq** | **String** | dq | [optional]
12
- **e** | **String** | e | [optional]
13
- **k** | **String** | k | [optional]
8
+ **crv** | **String** | | [optional]
9
+ **d** | **String** | | [optional]
10
+ **dp** | **String** | | [optional]
11
+ **dq** | **String** | | [optional]
12
+ **e** | **String** | | [optional]
13
+ **k** | **String** | | [optional]
14
14
  **kid** | **String** | The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. |
15
15
  **kty** | **String** | The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. |
16
- **n** | **String** | n | [optional]
17
- **p** | **String** | p | [optional]
18
- **q** | **String** | q | [optional]
19
- **qi** | **String** | qi | [optional]
16
+ **n** | **String** | | [optional]
17
+ **p** | **String** | | [optional]
18
+ **q** | **String** | | [optional]
19
+ **qi** | **String** | | [optional]
20
20
  **use** | **String** | Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). |
21
- **x** | **String** | x | [optional]
21
+ **x** | **String** | | [optional]
22
22
  **x5c** | **Array<String>** | The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. | [optional]
23
- **y** | **String** | y | [optional]
23
+ **y** | **String** | | [optional]
24
24
 
25
25
  ## Code Sample
26
26
 
data/docs/OAuth2Client.md CHANGED
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  **client_secret_expires_at** | **Integer** | SecretExpiresAt is an integer holding the time at which the client secret will expire or 0 if it will not expire. The time is represented as the number of seconds from 1970-01-01T00:00:00Z as measured in UTC until the date/time of expiration. This feature is currently not supported and it's value will always be set to 0. | [optional]
15
15
  **client_uri** | **String** | ClientURI is an URL string of a web page providing information about the client. If present, the server SHOULD display this URL to the end-user in a clickable fashion. | [optional]
16
16
  **contacts** | **Array<String>** | Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses. | [optional]
17
- **created_at** | **DateTime** | CreatedAt returns the timestamp of the client's creation. Format: date-time Format: date-time Format: date-time | [optional]
17
+ **created_at** | **DateTime** | CreatedAt returns the timestamp of the client's creation. | [optional]
18
18
  **frontchannel_logout_session_required** | **Boolean** | Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false. | [optional]
19
19
  **frontchannel_logout_uri** | **String** | RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the request and to determine which of the potentially multiple sessions is to be logged out; if either is included, both MUST be. | [optional]
20
20
  **grant_types** | **Array<String>** | GrantTypes is an array of grant types the client is allowed to use. | [optional]
@@ -34,7 +34,7 @@ Name | Type | Description | Notes
34
34
  **subject_type** | **String** | SubjectType requested for responses to this Client. The subject_types_supported Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional]
35
35
  **token_endpoint_auth_method** | **String** | Requested Client Authentication method for the Token Endpoint. The options are client_secret_post, client_secret_basic, private_key_jwt, and none. | [optional]
36
36
  **tos_uri** | **String** | TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. | [optional]
37
- **updated_at** | **DateTime** | UpdatedAt returns the timestamp of the last update. Format: date-time Format: date-time Format: date-time | [optional]
37
+ **updated_at** | **DateTime** | UpdatedAt returns the timestamp of the last update. | [optional]
38
38
  **userinfo_signed_response_alg** | **String** | JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type. | [optional]
39
39
 
40
40
  ## Code Sample
@@ -4,12 +4,12 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **access_token** | **String** | access token | [optional]
8
- **expires_in** | **Integer** | expires in | [optional]
9
- **id_token** | **String** | id token | [optional]
10
- **refresh_token** | **String** | refresh token | [optional]
11
- **scope** | **String** | scope | [optional]
12
- **token_type** | **String** | token type | [optional]
7
+ **access_token** | **String** | | [optional]
8
+ **expires_in** | **Integer** | | [optional]
9
+ **id_token** | **String** | | [optional]
10
+ **refresh_token** | **String** | | [optional]
11
+ **scope** | **String** | | [optional]
12
+ **token_type** | **String** | | [optional]
13
13
 
14
14
  ## Code Sample
15
15
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **consent_request** | [**ConsentRequest**](ConsentRequest.md) | | [optional]
8
8
  **grant_access_token_audience** | **Array<String>** | GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`. | [optional]
9
9
  **grant_scope** | **Array<String>** | GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope` | [optional]
10
+ **handled_at** | **DateTime** | | [optional]
10
11
  **remember** | **Boolean** | 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. | [optional]
11
12
  **remember_for** | **Integer** | RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely. | [optional]
12
13
  **session** | [**ConsentRequestSession**](ConsentRequestSession.md) | | [optional]
@@ -19,6 +20,7 @@ require 'OryHydraClient'
19
20
  instance = OryHydraClient::PreviousConsentSession.new(consent_request: null,
20
21
  grant_access_token_audience: null,
21
22
  grant_scope: null,
23
+ handled_at: null,
22
24
  remember: null,
23
25
  remember_for: null,
24
26
  session: null)
@@ -4,11 +4,11 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **error** | **String** | error | [optional]
8
- **error_debug** | **String** | error debug | [optional]
9
- **error_description** | **String** | error description | [optional]
10
- **error_hint** | **String** | error hint | [optional]
11
- **status_code** | **Integer** | status code | [optional]
7
+ **error** | **String** | | [optional]
8
+ **error_debug** | **String** | | [optional]
9
+ **error_description** | **String** | | [optional]
10
+ **error_hint** | **String** | | [optional]
11
+ **status_code** | **Integer** | | [optional]
12
12
 
13
13
  ## Code Sample
14
14
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -34,7 +34,6 @@ require 'ory-hydra-client/models/logout_request'
34
34
  require 'ory-hydra-client/models/o_auth2_client'
35
35
  require 'ory-hydra-client/models/o_auth2_token_introspection'
36
36
  require 'ory-hydra-client/models/oauth2_token_response'
37
- require 'ory-hydra-client/models/oauth_token_response'
38
37
  require 'ory-hydra-client/models/open_id_connect_context'
39
38
  require 'ory-hydra-client/models/previous_consent_session'
40
39
  require 'ory-hydra-client/models/reject_request'
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -20,6 +20,9 @@ module OryHydraClient
20
20
  # GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`.
21
21
  attr_accessor :grant_scope
22
22
 
23
+ # HandledAt contains the timestamp the consent request was handled.
24
+ attr_accessor :handled_at
25
+
23
26
  # 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
27
  attr_accessor :remember
25
28
 
@@ -33,6 +36,7 @@ module OryHydraClient
33
36
  {
34
37
  :'grant_access_token_audience' => :'grant_access_token_audience',
35
38
  :'grant_scope' => :'grant_scope',
39
+ :'handled_at' => :'handled_at',
36
40
  :'remember' => :'remember',
37
41
  :'remember_for' => :'remember_for',
38
42
  :'session' => :'session'
@@ -44,6 +48,7 @@ module OryHydraClient
44
48
  {
45
49
  :'grant_access_token_audience' => :'Array<String>',
46
50
  :'grant_scope' => :'Array<String>',
51
+ :'handled_at' => :'DateTime',
47
52
  :'remember' => :'Boolean',
48
53
  :'remember_for' => :'Integer',
49
54
  :'session' => :'ConsentRequestSession'
@@ -83,6 +88,10 @@ module OryHydraClient
83
88
  end
84
89
  end
85
90
 
91
+ if attributes.key?(:'handled_at')
92
+ self.handled_at = attributes[:'handled_at']
93
+ end
94
+
86
95
  if attributes.key?(:'remember')
87
96
  self.remember = attributes[:'remember']
88
97
  end
@@ -116,6 +125,7 @@ module OryHydraClient
116
125
  self.class == o.class &&
117
126
  grant_access_token_audience == o.grant_access_token_audience &&
118
127
  grant_scope == o.grant_scope &&
128
+ handled_at == o.handled_at &&
119
129
  remember == o.remember &&
120
130
  remember_for == o.remember_for &&
121
131
  session == o.session
@@ -130,7 +140,7 @@ module OryHydraClient
130
140
  # Calculates hash code according to all attributes.
131
141
  # @return [Integer] Hash code
132
142
  def hash
133
- [grant_access_token_audience, grant_scope, remember, remember_for, session].hash
143
+ [grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash
134
144
  end
135
145
 
136
146
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,16 +6,15 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # FlushInactiveOAuth2TokensRequest flush inactive o auth2 tokens request
17
16
  class FlushInactiveOAuth2TokensRequest
18
- # NotAfter sets after which point tokens should not be flushed. This is useful when you want to keep a history of recently issued tokens for auditing. Format: date-time
17
+ # NotAfter sets after which point tokens should not be flushed. This is useful when you want to keep a history of recently issued tokens for auditing.
19
18
  attr_accessor :not_after
20
19
 
21
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,34 +6,27 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # JSONWebKey JSONWebKey JSONWebKey JSONWebKey JSONWebKey JSON web key
17
16
  class JSONWebKey
18
17
  # The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name.
19
18
  attr_accessor :alg
20
19
 
21
- # crv
22
20
  attr_accessor :crv
23
21
 
24
- # d
25
22
  attr_accessor :d
26
23
 
27
- # dp
28
24
  attr_accessor :dp
29
25
 
30
- # dq
31
26
  attr_accessor :dq
32
27
 
33
- # e
34
28
  attr_accessor :e
35
29
 
36
- # k
37
30
  attr_accessor :k
38
31
 
39
32
  # The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string.
@@ -42,28 +35,22 @@ module OryHydraClient
42
35
  # The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string.
43
36
  attr_accessor :kty
44
37
 
45
- # n
46
38
  attr_accessor :n
47
39
 
48
- # p
49
40
  attr_accessor :p
50
41
 
51
- # q
52
42
  attr_accessor :q
53
43
 
54
- # qi
55
44
  attr_accessor :qi
56
45
 
57
46
  # Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption).
58
47
  attr_accessor :use
59
48
 
60
- # x
61
49
  attr_accessor :x
62
50
 
63
51
  # The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate.
64
52
  attr_accessor :x5c
65
53
 
66
- # y
67
54
  attr_accessor :y
68
55
 
69
56
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -6,14 +6,13 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # JSONWebKeySet JSON web key set
17
16
  class JSONWebKeySet
18
17
  # The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired.
19
18
  attr_accessor :keys
@@ -6,14 +6,13 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # JSONWebKeySetGeneratorRequest json web key set generator request
17
16
  class JsonWebKeySetGeneratorRequest
18
17
  # The algorithm to be used for creating the key. Supports \"RS256\", \"ES512\", \"HS512\", and \"HS256\"
19
18
  attr_accessor :alg
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -44,7 +44,7 @@ module OryHydraClient
44
44
  # Contacts is a array of strings representing ways to contact people responsible for this client, typically email addresses.
45
45
  attr_accessor :contacts
46
46
 
47
- # CreatedAt returns the timestamp of the client's creation. Format: date-time Format: date-time Format: date-time
47
+ # CreatedAt returns the timestamp of the client's creation.
48
48
  attr_accessor :created_at
49
49
 
50
50
  # Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be included to identify the RP session with the OP when the frontchannel_logout_uri is used. If omitted, the default value is false.
@@ -103,7 +103,7 @@ module OryHydraClient
103
103
  # TermsOfServiceURI is a URL string that points to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client.
104
104
  attr_accessor :tos_uri
105
105
 
106
- # UpdatedAt returns the timestamp of the last update. Format: date-time Format: date-time Format: date-time
106
+ # UpdatedAt returns the timestamp of the last update.
107
107
  attr_accessor :updated_at
108
108
 
109
109
  # JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type.
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,31 +6,25 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # Oauth2TokenResponse The Access Token Response
16
+ # The Access Token Response
17
17
  class Oauth2TokenResponse
18
- # access token
19
18
  attr_accessor :access_token
20
19
 
21
- # expires in
22
20
  attr_accessor :expires_in
23
21
 
24
- # id token
25
22
  attr_accessor :id_token
26
23
 
27
- # refresh token
28
24
  attr_accessor :refresh_token
29
25
 
30
- # scope
31
26
  attr_accessor :scope
32
27
 
33
- # token type
34
28
  attr_accessor :token_type
35
29
 
36
30
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -3,7 +3,7 @@
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: latest
6
+ The version of the OpenAPI document: v0.0.0-alpha.40
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.2
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,14 +6,14 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json
16
+ # The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json
17
17
  class PreviousConsentSession
18
18
  attr_accessor :consent_request
19
19
 
@@ -23,6 +23,8 @@ module OryHydraClient
23
23
  # GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`
24
24
  attr_accessor :grant_scope
25
25
 
26
+ attr_accessor :handled_at
27
+
26
28
  # 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.
27
29
  attr_accessor :remember
28
30
 
@@ -37,6 +39,7 @@ module OryHydraClient
37
39
  :'consent_request' => :'consent_request',
38
40
  :'grant_access_token_audience' => :'grant_access_token_audience',
39
41
  :'grant_scope' => :'grant_scope',
42
+ :'handled_at' => :'handled_at',
40
43
  :'remember' => :'remember',
41
44
  :'remember_for' => :'remember_for',
42
45
  :'session' => :'session'
@@ -49,6 +52,7 @@ module OryHydraClient
49
52
  :'consent_request' => :'ConsentRequest',
50
53
  :'grant_access_token_audience' => :'Array<String>',
51
54
  :'grant_scope' => :'Array<String>',
55
+ :'handled_at' => :'DateTime',
52
56
  :'remember' => :'Boolean',
53
57
  :'remember_for' => :'Integer',
54
58
  :'session' => :'ConsentRequestSession'
@@ -92,6 +96,10 @@ module OryHydraClient
92
96
  end
93
97
  end
94
98
 
99
+ if attributes.key?(:'handled_at')
100
+ self.handled_at = attributes[:'handled_at']
101
+ end
102
+
95
103
  if attributes.key?(:'remember')
96
104
  self.remember = attributes[:'remember']
97
105
  end
@@ -126,6 +134,7 @@ module OryHydraClient
126
134
  consent_request == o.consent_request &&
127
135
  grant_access_token_audience == o.grant_access_token_audience &&
128
136
  grant_scope == o.grant_scope &&
137
+ handled_at == o.handled_at &&
129
138
  remember == o.remember &&
130
139
  remember_for == o.remember_for &&
131
140
  session == o.session
@@ -140,7 +149,7 @@ module OryHydraClient
140
149
  # Calculates hash code according to all attributes.
141
150
  # @return [Integer] Hash code
142
151
  def hash
143
- [consent_request, grant_access_token_audience, grant_scope, remember, remember_for, session].hash
152
+ [consent_request, grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash
144
153
  end
145
154
 
146
155
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -14,19 +14,14 @@ require 'date'
14
14
 
15
15
  module OryHydraClient
16
16
  class RejectRequest
17
- # error
18
17
  attr_accessor :error
19
18
 
20
- # error debug
21
19
  attr_accessor :error_debug
22
20
 
23
- # error description
24
21
  attr_accessor :error_description
25
22
 
26
- # error hint
27
23
  attr_accessor :error_hint
28
24
 
29
- # status code
30
25
  attr_accessor :status_code
31
26
 
32
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -6,14 +6,14 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # UserinfoResponse UserinfoResponse UserinfoResponse UserinfoResponse UserinfoResponse UserinfoResponse The userinfo response
16
+ # The userinfo response
17
17
  class UserinfoResponse
18
18
  # End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates.
19
19
  attr_accessor :birthdate
@@ -6,14 +6,13 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # Version version
17
16
  class Version
18
17
  # Version is the service's version.
19
18
  attr_accessor :version
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,10 +6,10 @@
6
6
  The version of the OpenAPI document: latest
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.2
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  module OryHydraClient
14
- VERSION = '1.2.2'
14
+ VERSION = '1.3.1'
15
15
  end
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: latest
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.2.2
11
+ OpenAPI Generator version: 4.2.3
12
12
 
13
13
  =end
14
14
 
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.2.2
4
+ version: 1.3.1
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-01-23 00:00:00.000000000 Z
11
+ date: 2020-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -197,28 +197,28 @@ test_files:
197
197
  - spec/api/admin_api_spec.rb
198
198
  - spec/api_client_spec.rb
199
199
  - spec/configuration_spec.rb
200
+ - spec/models/login_request_spec.rb
201
+ - spec/models/o_auth2_client_spec.rb
200
202
  - spec/models/version_spec.rb
203
+ - spec/models/consent_request_spec.rb
201
204
  - spec/models/health_not_ready_status_spec.rb
205
+ - spec/models/completed_request_spec.rb
206
+ - spec/models/accept_login_request_spec.rb
207
+ - spec/models/open_id_connect_context_spec.rb
202
208
  - spec/models/reject_request_spec.rb
203
- - spec/models/consent_request_session_spec.rb
209
+ - spec/models/o_auth2_token_introspection_spec.rb
210
+ - spec/models/accept_consent_request_spec.rb
204
211
  - spec/models/logout_request_spec.rb
212
+ - spec/models/generic_error_spec.rb
205
213
  - spec/models/json_web_key_spec.rb
206
- - spec/models/login_request_spec.rb
207
- - spec/models/oauth_token_response_spec.rb
208
- - spec/models/flush_inactive_o_auth2_tokens_request_spec.rb
209
- - spec/models/completed_request_spec.rb
210
- - spec/models/accept_consent_request_spec.rb
211
- - spec/models/health_status_spec.rb
212
214
  - spec/models/oauth2_token_response_spec.rb
213
- - spec/models/well_known_spec.rb
214
- - spec/models/open_id_connect_context_spec.rb
215
- - spec/models/accept_login_request_spec.rb
216
- - spec/models/previous_consent_session_spec.rb
215
+ - spec/models/oauth_token_response_spec.rb
217
216
  - spec/models/json_web_key_set_spec.rb
218
- - spec/models/consent_request_spec.rb
219
- - spec/models/o_auth2_token_introspection_spec.rb
217
+ - spec/models/consent_request_session_spec.rb
218
+ - spec/models/well_known_spec.rb
220
219
  - spec/models/userinfo_response_spec.rb
221
- - spec/models/generic_error_spec.rb
220
+ - spec/models/health_status_spec.rb
221
+ - spec/models/flush_inactive_o_auth2_tokens_request_spec.rb
222
222
  - spec/models/json_web_key_set_generator_request_spec.rb
223
- - spec/models/o_auth2_client_spec.rb
223
+ - spec/models/previous_consent_session_spec.rb
224
224
  - spec/spec_helper.rb