ory-hydra-client 0.0.0.alpha39

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 +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +165 -0
  4. data/Rakefile +10 -0
  5. data/docs/AcceptConsentRequest.md +25 -0
  6. data/docs/AcceptLoginRequest.md +27 -0
  7. data/docs/AdminApi.md +1443 -0
  8. data/docs/CompletedRequest.md +17 -0
  9. data/docs/ConsentRequest.md +39 -0
  10. data/docs/ConsentRequestSession.md +19 -0
  11. data/docs/FlushInactiveOAuth2TokensRequest.md +17 -0
  12. data/docs/GenericError.md +23 -0
  13. data/docs/HealthNotReadyStatus.md +17 -0
  14. data/docs/HealthStatus.md +17 -0
  15. data/docs/JSONWebKey.md +49 -0
  16. data/docs/JSONWebKeySet.md +17 -0
  17. data/docs/JsonWebKeySetGeneratorRequest.md +21 -0
  18. data/docs/LoginRequest.md +33 -0
  19. data/docs/LogoutRequest.md +23 -0
  20. data/docs/OAuth2Client.md +79 -0
  21. data/docs/OAuth2TokenIntrospection.md +41 -0
  22. data/docs/Oauth2TokenResponse.md +27 -0
  23. data/docs/OauthTokenResponse.md +27 -0
  24. data/docs/OpenIDConnectContext.md +25 -0
  25. data/docs/PreviousConsentSession.md +27 -0
  26. data/docs/PublicApi.md +398 -0
  27. data/docs/RejectRequest.md +25 -0
  28. data/docs/UserinfoResponse.md +53 -0
  29. data/docs/Version.md +17 -0
  30. data/docs/WellKnown.md +65 -0
  31. data/lib/ory-hydra-client.rb +65 -0
  32. data/lib/ory-hydra-client/api/admin_api.rb +1879 -0
  33. data/lib/ory-hydra-client/api/public_api.rb +498 -0
  34. data/lib/ory-hydra-client/api_client.rb +386 -0
  35. data/lib/ory-hydra-client/api_error.rb +57 -0
  36. data/lib/ory-hydra-client/configuration.rb +255 -0
  37. data/lib/ory-hydra-client/models/accept_consent_request.rb +250 -0
  38. data/lib/ory-hydra-client/models/accept_login_request.rb +264 -0
  39. data/lib/ory-hydra-client/models/completed_request.rb +207 -0
  40. data/lib/ory-hydra-client/models/consent_request.rb +321 -0
  41. data/lib/ory-hydra-client/models/consent_request_session.rb +221 -0
  42. data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +207 -0
  43. data/lib/ory-hydra-client/models/generic_error.rb +243 -0
  44. data/lib/ory-hydra-client/models/health_not_ready_status.rb +209 -0
  45. data/lib/ory-hydra-client/models/health_status.rb +207 -0
  46. data/lib/ory-hydra-client/models/json_web_key.rb +377 -0
  47. data/lib/ory-hydra-client/models/json_web_key_set.rb +209 -0
  48. data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +242 -0
  49. data/lib/ory-hydra-client/models/login_request.rb +289 -0
  50. data/lib/ory-hydra-client/models/logout_request.rb +237 -0
  51. data/lib/ory-hydra-client/models/o_auth2_client.rb +551 -0
  52. data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +337 -0
  53. data/lib/ory-hydra-client/models/oauth2_token_response.rb +252 -0
  54. data/lib/ory-hydra-client/models/oauth_token_response.rb +258 -0
  55. data/lib/ory-hydra-client/models/open_id_connect_context.rb +253 -0
  56. data/lib/ory-hydra-client/models/previous_consent_session.rb +260 -0
  57. data/lib/ory-hydra-client/models/reject_request.rb +242 -0
  58. data/lib/ory-hydra-client/models/userinfo_response.rb +388 -0
  59. data/lib/ory-hydra-client/models/version.rb +207 -0
  60. data/lib/ory-hydra-client/models/well_known.rb +501 -0
  61. data/lib/ory-hydra-client/version.rb +15 -0
  62. data/ory-hydra-client.gemspec +39 -0
  63. data/spec/api/admin_api_spec.rb +395 -0
  64. data/spec/api/public_api_spec.rb +129 -0
  65. data/spec/api_client_spec.rb +226 -0
  66. data/spec/configuration_spec.rb +42 -0
  67. data/spec/models/accept_consent_request_spec.rb +65 -0
  68. data/spec/models/accept_login_request_spec.rb +71 -0
  69. data/spec/models/completed_request_spec.rb +41 -0
  70. data/spec/models/consent_request_session_spec.rb +47 -0
  71. data/spec/models/consent_request_spec.rb +107 -0
  72. data/spec/models/flush_inactive_o_auth2_tokens_request_spec.rb +41 -0
  73. data/spec/models/generic_error_spec.rb +59 -0
  74. data/spec/models/health_not_ready_status_spec.rb +41 -0
  75. data/spec/models/health_status_spec.rb +41 -0
  76. data/spec/models/json_web_key_set_generator_request_spec.rb +53 -0
  77. data/spec/models/json_web_key_set_spec.rb +41 -0
  78. data/spec/models/json_web_key_spec.rb +137 -0
  79. data/spec/models/login_request_spec.rb +89 -0
  80. data/spec/models/logout_request_spec.rb +59 -0
  81. data/spec/models/o_auth2_client_spec.rb +227 -0
  82. data/spec/models/o_auth2_token_introspection_spec.rb +113 -0
  83. data/spec/models/oauth2_token_response_spec.rb +71 -0
  84. data/spec/models/oauth_token_response_spec.rb +71 -0
  85. data/spec/models/open_id_connect_context_spec.rb +65 -0
  86. data/spec/models/previous_consent_session_spec.rb +71 -0
  87. data/spec/models/reject_request_spec.rb +65 -0
  88. data/spec/models/userinfo_response_spec.rb +149 -0
  89. data/spec/models/version_spec.rb +41 -0
  90. data/spec/models/well_known_spec.rb +185 -0
  91. data/spec/spec_helper.rb +111 -0
  92. metadata +223 -0
@@ -0,0 +1,27 @@
1
+ # OryHydraClient::OauthTokenResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **access_token** | **String** | The access token issued by the authorization server. | [optional]
8
+ **expires_in** | **Integer** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional]
9
+ **id_token** | **Integer** | To retrieve a refresh token request the id_token scope. | [optional]
10
+ **refresh_token** | **String** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional]
11
+ **scope** | **Integer** | The scope of the access token | [optional]
12
+ **token_type** | **String** | The type of the token issued | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'OryHydraClient'
18
+
19
+ instance = OryHydraClient::OauthTokenResponse.new(access_token: null,
20
+ expires_in: null,
21
+ id_token: null,
22
+ refresh_token: null,
23
+ scope: null,
24
+ token_type: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,25 @@
1
+ # OryHydraClient::OpenIDConnectContext
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **acr_values** | **Array<String>** | ACRValues is the Authentication AuthorizationContext Class Reference requested in the OAuth 2.0 Authorization request. It is a parameter defined by OpenID Connect and expresses which level of authentication (e.g. 2FA) is required. OpenID Connect defines it as follows: > Requested Authentication AuthorizationContext Class Reference values. Space-separated string that specifies the acr values that the Authorization Server is being requested to use for processing this Authentication Request, with the values appearing in order of preference. The Authentication AuthorizationContext Class satisfied by the authentication performed is returned as the acr Claim Value, as specified in Section 2. The acr Claim is requested as a Voluntary Claim by this parameter. | [optional]
8
+ **display** | **String** | Display is a string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User. The defined values are: page: The Authorization Server SHOULD display the authentication and consent UI consistent with a full User Agent page view. If the display parameter is not specified, this is the default display mode. popup: The Authorization Server SHOULD display the authentication and consent UI consistent with a popup User Agent window. The popup User Agent window should be of an appropriate size for a login-focused dialog and should not obscure the entire window that it is popping up over. touch: The Authorization Server SHOULD display the authentication and consent UI consistent with a device that leverages a touch interface. wap: The Authorization Server SHOULD display the authentication and consent UI consistent with a \"feature phone\" type display. The Authorization Server MAY also attempt to detect the capabilities of the User Agent and present an appropriate display. | [optional]
9
+ **id_token_hint_claims** | **Hash<String, Object>** | IDTokenHintClaims are the claims of the ID Token previously issued by the Authorization Server being passed as a hint about the End-User's current or past authenticated session with the Client. | [optional]
10
+ **login_hint** | **String** | LoginHint hints about the login identifier the End-User might use to log in (if necessary). This hint can be used by an RP if it first asks the End-User for their e-mail address (or other identifier) and then wants to pass that value as a hint to the discovered authorization service. This value MAY also be a phone number in the format specified for the phone_number Claim. The use of this parameter is optional. | [optional]
11
+ **ui_locales** | **Array<String>** | UILocales is the End-User'id preferred languages and scripts for the user interface, represented as a space-separated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value \"fr-CA fr en\" represents a preference for French as spoken in Canada, then French (without a region designation), followed by English (without a region designation). An error SHOULD NOT result if some or all of the requested locales are not supported by the OpenID Provider. | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'OryHydraClient'
17
+
18
+ instance = OryHydraClient::OpenIDConnectContext.new(acr_values: null,
19
+ display: null,
20
+ id_token_hint_claims: null,
21
+ login_hint: null,
22
+ ui_locales: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,27 @@
1
+ # OryHydraClient::PreviousConsentSession
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **consent_request** | [**ConsentRequest**](ConsentRequest.md) | | [optional]
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
+ **grant_scope** | **Array<String>** | GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope` | [optional]
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]
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]
12
+ **session** | [**ConsentRequestSession**](ConsentRequestSession.md) | | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'OryHydraClient'
18
+
19
+ instance = OryHydraClient::PreviousConsentSession.new(consent_request: null,
20
+ grant_access_token_audience: null,
21
+ grant_scope: null,
22
+ remember: null,
23
+ remember_for: null,
24
+ session: null)
25
+ ```
26
+
27
+
data/docs/PublicApi.md ADDED
@@ -0,0 +1,398 @@
1
+ # OryHydraClient::PublicApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**disconnect_user**](PublicApi.md#disconnect_user) | **GET** /oauth2/sessions/logout | OpenID Connect Front-Backchannel enabled Logout
8
+ [**discover_open_id_configuration**](PublicApi.md#discover_open_id_configuration) | **GET** /.well-known/openid-configuration | OpenID Connect Discovery
9
+ [**is_instance_ready**](PublicApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status
10
+ [**oauth2_token**](PublicApi.md#oauth2_token) | **POST** /oauth2/token | The OAuth 2.0 token endpoint
11
+ [**oauth_auth**](PublicApi.md#oauth_auth) | **GET** /oauth2/auth | The OAuth 2.0 authorize endpoint
12
+ [**revoke_o_auth2_token**](PublicApi.md#revoke_o_auth2_token) | **POST** /oauth2/revoke | Revoke OAuth2 tokens
13
+ [**userinfo**](PublicApi.md#userinfo) | **GET** /userinfo | OpenID Connect Userinfo
14
+ [**well_known**](PublicApi.md#well_known) | **GET** /.well-known/jwks.json | JSON Web Keys Discovery
15
+
16
+
17
+
18
+ ## disconnect_user
19
+
20
+ > disconnect_user
21
+
22
+ OpenID Connect Front-Backchannel enabled Logout
23
+
24
+ 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
25
+
26
+ ### Example
27
+
28
+ ```ruby
29
+ # load the gem
30
+ require 'ory-hydra-client'
31
+
32
+ api_instance = OryHydraClient::PublicApi.new
33
+
34
+ begin
35
+ #OpenID Connect Front-Backchannel enabled Logout
36
+ api_instance.disconnect_user
37
+ rescue OryHydraClient::ApiError => e
38
+ puts "Exception when calling PublicApi->disconnect_user: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+ This endpoint does not need any parameter.
45
+
46
+ ### Return type
47
+
48
+ nil (empty response body)
49
+
50
+ ### Authorization
51
+
52
+ No authorization required
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: Not defined
58
+
59
+
60
+ ## discover_open_id_configuration
61
+
62
+ > WellKnown discover_open_id_configuration
63
+
64
+ OpenID Connect Discovery
65
+
66
+ The well known endpoint an be used to retrieve information for OpenID Connect clients. We encourage you to not roll your own OpenID Connect client but to use an OpenID Connect client library instead. You can learn more on this flow at https://openid.net/specs/openid-connect-discovery-1_0.html . Popular libraries for OpenID Connect clients include oidc-client-js (JavaScript), go-oidc (Golang), and others. For a full list of clients go here: https://openid.net/developers/certified/
67
+
68
+ ### Example
69
+
70
+ ```ruby
71
+ # load the gem
72
+ require 'ory-hydra-client'
73
+
74
+ api_instance = OryHydraClient::PublicApi.new
75
+
76
+ begin
77
+ #OpenID Connect Discovery
78
+ result = api_instance.discover_open_id_configuration
79
+ p result
80
+ rescue OryHydraClient::ApiError => e
81
+ puts "Exception when calling PublicApi->discover_open_id_configuration: #{e}"
82
+ end
83
+ ```
84
+
85
+ ### Parameters
86
+
87
+ This endpoint does not need any parameter.
88
+
89
+ ### Return type
90
+
91
+ [**WellKnown**](WellKnown.md)
92
+
93
+ ### Authorization
94
+
95
+ No authorization required
96
+
97
+ ### HTTP request headers
98
+
99
+ - **Content-Type**: Not defined
100
+ - **Accept**: application/json
101
+
102
+
103
+ ## is_instance_ready
104
+
105
+ > HealthStatus is_instance_ready
106
+
107
+ Check readiness status
108
+
109
+ 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.
110
+
111
+ ### Example
112
+
113
+ ```ruby
114
+ # load the gem
115
+ require 'ory-hydra-client'
116
+
117
+ api_instance = OryHydraClient::PublicApi.new
118
+
119
+ begin
120
+ #Check readiness status
121
+ result = api_instance.is_instance_ready
122
+ p result
123
+ rescue OryHydraClient::ApiError => e
124
+ puts "Exception when calling PublicApi->is_instance_ready: #{e}"
125
+ end
126
+ ```
127
+
128
+ ### Parameters
129
+
130
+ This endpoint does not need any parameter.
131
+
132
+ ### Return type
133
+
134
+ [**HealthStatus**](HealthStatus.md)
135
+
136
+ ### Authorization
137
+
138
+ No authorization required
139
+
140
+ ### HTTP request headers
141
+
142
+ - **Content-Type**: Not defined
143
+ - **Accept**: application/json
144
+
145
+
146
+ ## oauth2_token
147
+
148
+ > Oauth2TokenResponse oauth2_token(grant_type, opts)
149
+
150
+ The OAuth 2.0 token endpoint
151
+
152
+ 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!
153
+
154
+ ### Example
155
+
156
+ ```ruby
157
+ # load the gem
158
+ require 'ory-hydra-client'
159
+ # setup authorization
160
+ OryHydraClient.configure do |config|
161
+ # Configure HTTP basic authorization: basic
162
+ config.username = 'YOUR USERNAME'
163
+ config.password = 'YOUR PASSWORD'
164
+
165
+ # Configure OAuth2 access token for authorization: oauth2
166
+ config.access_token = 'YOUR ACCESS TOKEN'
167
+ end
168
+
169
+ api_instance = OryHydraClient::PublicApi.new
170
+ grant_type = 'grant_type_example' # String |
171
+ opts = {
172
+ code: 'code_example', # String |
173
+ refresh_token: 'refresh_token_example', # String |
174
+ redirect_uri: 'redirect_uri_example', # String |
175
+ client_id: 'client_id_example' # String |
176
+ }
177
+
178
+ begin
179
+ #The OAuth 2.0 token endpoint
180
+ result = api_instance.oauth2_token(grant_type, opts)
181
+ p result
182
+ rescue OryHydraClient::ApiError => e
183
+ puts "Exception when calling PublicApi->oauth2_token: #{e}"
184
+ end
185
+ ```
186
+
187
+ ### Parameters
188
+
189
+
190
+ Name | Type | Description | Notes
191
+ ------------- | ------------- | ------------- | -------------
192
+ **grant_type** | **String**| |
193
+ **code** | **String**| | [optional]
194
+ **refresh_token** | **String**| | [optional]
195
+ **redirect_uri** | **String**| | [optional]
196
+ **client_id** | **String**| | [optional]
197
+
198
+ ### Return type
199
+
200
+ [**Oauth2TokenResponse**](Oauth2TokenResponse.md)
201
+
202
+ ### Authorization
203
+
204
+ [basic](../README.md#basic), [oauth2](../README.md#oauth2)
205
+
206
+ ### HTTP request headers
207
+
208
+ - **Content-Type**: application/x-www-form-urlencoded
209
+ - **Accept**: application/json
210
+
211
+
212
+ ## oauth_auth
213
+
214
+ > oauth_auth
215
+
216
+ The OAuth 2.0 authorize endpoint
217
+
218
+ 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
219
+
220
+ ### Example
221
+
222
+ ```ruby
223
+ # load the gem
224
+ require 'ory-hydra-client'
225
+
226
+ api_instance = OryHydraClient::PublicApi.new
227
+
228
+ begin
229
+ #The OAuth 2.0 authorize endpoint
230
+ api_instance.oauth_auth
231
+ rescue OryHydraClient::ApiError => e
232
+ puts "Exception when calling PublicApi->oauth_auth: #{e}"
233
+ end
234
+ ```
235
+
236
+ ### Parameters
237
+
238
+ This endpoint does not need any parameter.
239
+
240
+ ### Return type
241
+
242
+ nil (empty response body)
243
+
244
+ ### Authorization
245
+
246
+ No authorization required
247
+
248
+ ### HTTP request headers
249
+
250
+ - **Content-Type**: Not defined
251
+ - **Accept**: application/json
252
+
253
+
254
+ ## revoke_o_auth2_token
255
+
256
+ > revoke_o_auth2_token(token)
257
+
258
+ Revoke OAuth2 tokens
259
+
260
+ 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.
261
+
262
+ ### Example
263
+
264
+ ```ruby
265
+ # load the gem
266
+ require 'ory-hydra-client'
267
+ # setup authorization
268
+ OryHydraClient.configure do |config|
269
+ # Configure HTTP basic authorization: basic
270
+ config.username = 'YOUR USERNAME'
271
+ config.password = 'YOUR PASSWORD'
272
+
273
+ # Configure OAuth2 access token for authorization: oauth2
274
+ config.access_token = 'YOUR ACCESS TOKEN'
275
+ end
276
+
277
+ api_instance = OryHydraClient::PublicApi.new
278
+ token = 'token_example' # String |
279
+
280
+ begin
281
+ #Revoke OAuth2 tokens
282
+ api_instance.revoke_o_auth2_token(token)
283
+ rescue OryHydraClient::ApiError => e
284
+ puts "Exception when calling PublicApi->revoke_o_auth2_token: #{e}"
285
+ end
286
+ ```
287
+
288
+ ### Parameters
289
+
290
+
291
+ Name | Type | Description | Notes
292
+ ------------- | ------------- | ------------- | -------------
293
+ **token** | **String**| |
294
+
295
+ ### Return type
296
+
297
+ nil (empty response body)
298
+
299
+ ### Authorization
300
+
301
+ [basic](../README.md#basic), [oauth2](../README.md#oauth2)
302
+
303
+ ### HTTP request headers
304
+
305
+ - **Content-Type**: application/x-www-form-urlencoded
306
+ - **Accept**: application/json
307
+
308
+
309
+ ## userinfo
310
+
311
+ > UserinfoResponse userinfo
312
+
313
+ OpenID Connect Userinfo
314
+
315
+ This endpoint returns the payload of the ID Token, including the idTokenExtra values, of the provided OAuth 2.0 Access Token. For more information please [refer to the spec](http://openid.net/specs/openid-connect-core-1_0.html#UserInfo).
316
+
317
+ ### Example
318
+
319
+ ```ruby
320
+ # load the gem
321
+ require 'ory-hydra-client'
322
+ # setup authorization
323
+ OryHydraClient.configure do |config|
324
+ # Configure OAuth2 access token for authorization: oauth2
325
+ config.access_token = 'YOUR ACCESS TOKEN'
326
+ end
327
+
328
+ api_instance = OryHydraClient::PublicApi.new
329
+
330
+ begin
331
+ #OpenID Connect Userinfo
332
+ result = api_instance.userinfo
333
+ p result
334
+ rescue OryHydraClient::ApiError => e
335
+ puts "Exception when calling PublicApi->userinfo: #{e}"
336
+ end
337
+ ```
338
+
339
+ ### Parameters
340
+
341
+ This endpoint does not need any parameter.
342
+
343
+ ### Return type
344
+
345
+ [**UserinfoResponse**](UserinfoResponse.md)
346
+
347
+ ### Authorization
348
+
349
+ [oauth2](../README.md#oauth2)
350
+
351
+ ### HTTP request headers
352
+
353
+ - **Content-Type**: Not defined
354
+ - **Accept**: application/json
355
+
356
+
357
+ ## well_known
358
+
359
+ > JSONWebKeySet well_known
360
+
361
+ JSON Web Keys Discovery
362
+
363
+ This endpoint returns JSON Web Keys to be used as public keys for verifying OpenID Connect ID Tokens and, if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client libraries like [node-jwks-rsa](https://github.com/auth0/node-jwks-rsa) among others.
364
+
365
+ ### Example
366
+
367
+ ```ruby
368
+ # load the gem
369
+ require 'ory-hydra-client'
370
+
371
+ api_instance = OryHydraClient::PublicApi.new
372
+
373
+ begin
374
+ #JSON Web Keys Discovery
375
+ result = api_instance.well_known
376
+ p result
377
+ rescue OryHydraClient::ApiError => e
378
+ puts "Exception when calling PublicApi->well_known: #{e}"
379
+ end
380
+ ```
381
+
382
+ ### Parameters
383
+
384
+ This endpoint does not need any parameter.
385
+
386
+ ### Return type
387
+
388
+ [**JSONWebKeySet**](JSONWebKeySet.md)
389
+
390
+ ### Authorization
391
+
392
+ No authorization required
393
+
394
+ ### HTTP request headers
395
+
396
+ - **Content-Type**: Not defined
397
+ - **Accept**: application/json
398
+