ory-hydra-client 1.9.2 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/docs/AdminApi.md +67 -0
- data/docs/LogoutRequest.md +2 -0
- data/docs/PatchDocument.md +24 -0
- data/docs/RequestWasHandledResponse.md +18 -0
- data/docs/Volume.md +34 -0
- data/lib/ory-hydra-client.rb +5 -2
- data/lib/ory-hydra-client/api/admin_api.rb +73 -2
- data/lib/ory-hydra-client/api/public_api.rb +2 -2
- data/lib/ory-hydra-client/api_client.rb +3 -3
- data/lib/ory-hydra-client/api_error.rb +2 -2
- data/lib/ory-hydra-client/configuration.rb +8 -6
- data/lib/ory-hydra-client/models/accept_consent_request.rb +2 -2
- data/lib/ory-hydra-client/models/accept_login_request.rb +2 -2
- data/lib/ory-hydra-client/models/completed_request.rb +2 -2
- data/lib/ory-hydra-client/models/consent_request.rb +2 -2
- data/lib/ory-hydra-client/models/consent_request_session.rb +2 -2
- data/lib/ory-hydra-client/models/container_wait_ok_body_error.rb +2 -2
- data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +2 -2
- data/lib/ory-hydra-client/models/generic_error.rb +2 -2
- data/lib/ory-hydra-client/models/health_not_ready_status.rb +2 -2
- data/lib/ory-hydra-client/models/health_status.rb +2 -2
- data/lib/ory-hydra-client/models/json_web_key.rb +2 -2
- data/lib/ory-hydra-client/models/json_web_key_set.rb +2 -2
- data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +2 -2
- data/lib/ory-hydra-client/models/login_request.rb +2 -2
- data/lib/ory-hydra-client/models/logout_request.rb +13 -3
- data/lib/ory-hydra-client/models/o_auth2_client.rb +2 -2
- data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +2 -2
- data/lib/ory-hydra-client/models/oauth2_token_response.rb +2 -2
- data/lib/ory-hydra-client/models/open_id_connect_context.rb +2 -2
- data/lib/ory-hydra-client/models/patch_document.rb +260 -0
- data/lib/ory-hydra-client/models/plugin_config.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_config_args.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_config_interface.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_config_linux.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_config_network.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_config_rootfs.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_config_user.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_device.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_env.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_interface_type.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_mount.rb +2 -2
- data/lib/ory-hydra-client/models/plugin_settings.rb +2 -2
- data/lib/ory-hydra-client/models/previous_consent_session.rb +2 -2
- data/lib/ory-hydra-client/models/reject_request.rb +2 -2
- data/lib/ory-hydra-client/models/request_was_handled_response.rb +224 -0
- data/lib/ory-hydra-client/models/userinfo_response.rb +2 -2
- data/lib/ory-hydra-client/models/version.rb +2 -2
- data/lib/ory-hydra-client/models/volume.rb +333 -0
- data/lib/ory-hydra-client/models/volume_usage_data.rb +2 -2
- data/lib/ory-hydra-client/models/well_known.rb +2 -2
- data/lib/ory-hydra-client/version.rb +3 -3
- data/ory-hydra-client.gemspec +2 -2
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/patch_document_spec.rb +52 -0
- data/spec/models/request_was_handled_response_spec.rb +34 -0
- data/spec/models/volume_spec.rb +82 -0
- data/spec/spec_helper.rb +2 -2
- metadata +14 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d42760ac122ae7a0147329e31b06c6ae8e927c030c7d9a5f68e4ced7d0043f3
|
4
|
+
data.tar.gz: 8d04c0e6c1c19950c2f16a29ed8ef9a747ac71658a071f1b8c88d9d13a0d901f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e822b1bd7bb9a74e9379ff6b2bf214659fe79a8427b28d998cd28c12d3831acc3db9aa292d8ce013087c83ae577bf7deabcbcd8bb1b383630a53436db9b44e7c
|
7
|
+
data.tar.gz: 7b303a0ab5794aec4fcdbab6f5f4b70b2f4f7e5a1bab6b6148ab840346cbd42c2c308fa6f2ce4f21fc524a35c3bbd98de268af21998db85a815d113395174bba
|
data/README.md
CHANGED
@@ -6,8 +6,8 @@ Welcome to the ORY Hydra HTTP API documentation. You will find documentation for
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
|
-
- API version: v1.
|
10
|
-
- Package version: v1.
|
9
|
+
- API version: v1.10.2
|
10
|
+
- Package version: v1.10.2
|
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.
|
26
|
+
gem install ./ory-hydra-client-v1.10.2.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./ory-hydra-client-v1.
|
29
|
+
(for development, run `gem install --dev ./ory-hydra-client-v1.10.2.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.
|
35
|
+
gem 'ory-hydra-client', '~> v1.10.2'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -99,6 +99,7 @@ Class | Method | HTTP request | Description
|
|
99
99
|
*OryHydraClient::AdminApi* | [**is_instance_alive**](docs/AdminApi.md#is_instance_alive) | **GET** /health/alive | Check Alive Status
|
100
100
|
*OryHydraClient::AdminApi* | [**list_o_auth2_clients**](docs/AdminApi.md#list_o_auth2_clients) | **GET** /clients | List OAuth 2.0 Clients
|
101
101
|
*OryHydraClient::AdminApi* | [**list_subject_consent_sessions**](docs/AdminApi.md#list_subject_consent_sessions) | **GET** /oauth2/auth/sessions/consent | Lists All Consent Sessions of a Subject
|
102
|
+
*OryHydraClient::AdminApi* | [**patch_o_auth2_client**](docs/AdminApi.md#patch_o_auth2_client) | **PATCH** /clients/{id} | Patch an OAuth 2.0 Client
|
102
103
|
*OryHydraClient::AdminApi* | [**prometheus**](docs/AdminApi.md#prometheus) | **GET** /metrics/prometheus | Get Snapshot Metrics from the Hydra Service.
|
103
104
|
*OryHydraClient::AdminApi* | [**reject_consent_request**](docs/AdminApi.md#reject_consent_request) | **PUT** /oauth2/auth/requests/consent/reject | Reject a Consent Request
|
104
105
|
*OryHydraClient::AdminApi* | [**reject_login_request**](docs/AdminApi.md#reject_login_request) | **PUT** /oauth2/auth/requests/login/reject | Reject a Login Request
|
@@ -139,6 +140,7 @@ Class | Method | HTTP request | Description
|
|
139
140
|
- [OryHydraClient::OAuth2TokenIntrospection](docs/OAuth2TokenIntrospection.md)
|
140
141
|
- [OryHydraClient::Oauth2TokenResponse](docs/Oauth2TokenResponse.md)
|
141
142
|
- [OryHydraClient::OpenIDConnectContext](docs/OpenIDConnectContext.md)
|
143
|
+
- [OryHydraClient::PatchDocument](docs/PatchDocument.md)
|
142
144
|
- [OryHydraClient::PluginConfig](docs/PluginConfig.md)
|
143
145
|
- [OryHydraClient::PluginConfigArgs](docs/PluginConfigArgs.md)
|
144
146
|
- [OryHydraClient::PluginConfigInterface](docs/PluginConfigInterface.md)
|
@@ -153,8 +155,10 @@ Class | Method | HTTP request | Description
|
|
153
155
|
- [OryHydraClient::PluginSettings](docs/PluginSettings.md)
|
154
156
|
- [OryHydraClient::PreviousConsentSession](docs/PreviousConsentSession.md)
|
155
157
|
- [OryHydraClient::RejectRequest](docs/RejectRequest.md)
|
158
|
+
- [OryHydraClient::RequestWasHandledResponse](docs/RequestWasHandledResponse.md)
|
156
159
|
- [OryHydraClient::UserinfoResponse](docs/UserinfoResponse.md)
|
157
160
|
- [OryHydraClient::Version](docs/Version.md)
|
161
|
+
- [OryHydraClient::Volume](docs/Volume.md)
|
158
162
|
- [OryHydraClient::VolumeUsageData](docs/VolumeUsageData.md)
|
159
163
|
- [OryHydraClient::WellKnown](docs/WellKnown.md)
|
160
164
|
|
data/docs/AdminApi.md
CHANGED
@@ -25,6 +25,7 @@ All URIs are relative to *http://localhost*
|
|
25
25
|
| [**is_instance_alive**](AdminApi.md#is_instance_alive) | **GET** /health/alive | Check Alive Status |
|
26
26
|
| [**list_o_auth2_clients**](AdminApi.md#list_o_auth2_clients) | **GET** /clients | List OAuth 2.0 Clients |
|
27
27
|
| [**list_subject_consent_sessions**](AdminApi.md#list_subject_consent_sessions) | **GET** /oauth2/auth/sessions/consent | Lists All Consent Sessions of a Subject |
|
28
|
+
| [**patch_o_auth2_client**](AdminApi.md#patch_o_auth2_client) | **PATCH** /clients/{id} | Patch an OAuth 2.0 Client |
|
28
29
|
| [**prometheus**](AdminApi.md#prometheus) | **GET** /metrics/prometheus | Get Snapshot Metrics from the Hydra Service. |
|
29
30
|
| [**reject_consent_request**](AdminApi.md#reject_consent_request) | **PUT** /oauth2/auth/requests/consent/reject | Reject a Consent Request |
|
30
31
|
| [**reject_login_request**](AdminApi.md#reject_login_request) | **PUT** /oauth2/auth/requests/login/reject | Reject a Login Request |
|
@@ -1395,6 +1396,72 @@ No authorization required
|
|
1395
1396
|
- **Accept**: application/json
|
1396
1397
|
|
1397
1398
|
|
1399
|
+
## patch_o_auth2_client
|
1400
|
+
|
1401
|
+
> <OAuth2Client> patch_o_auth2_client(id, body)
|
1402
|
+
|
1403
|
+
Patch an OAuth 2.0 Client
|
1404
|
+
|
1405
|
+
Patch an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. To manage ORY Hydra, you will need an OAuth 2.0 Client as well. Make sure that this endpoint is well protected and only callable by first-party components.
|
1406
|
+
|
1407
|
+
### Examples
|
1408
|
+
|
1409
|
+
```ruby
|
1410
|
+
require 'time'
|
1411
|
+
require 'ory-hydra-client'
|
1412
|
+
|
1413
|
+
api_instance = OryHydraClient::AdminApi.new
|
1414
|
+
id = 'id_example' # String |
|
1415
|
+
body = [OryHydraClient::PatchDocument.new({op: '"replace"', path: '"/name"'})] # Array<PatchDocument> |
|
1416
|
+
|
1417
|
+
begin
|
1418
|
+
# Patch an OAuth 2.0 Client
|
1419
|
+
result = api_instance.patch_o_auth2_client(id, body)
|
1420
|
+
p result
|
1421
|
+
rescue OryHydraClient::ApiError => e
|
1422
|
+
puts "Error when calling AdminApi->patch_o_auth2_client: #{e}"
|
1423
|
+
end
|
1424
|
+
```
|
1425
|
+
|
1426
|
+
#### Using the patch_o_auth2_client_with_http_info variant
|
1427
|
+
|
1428
|
+
This returns an Array which contains the response data, status code and headers.
|
1429
|
+
|
1430
|
+
> <Array(<OAuth2Client>, Integer, Hash)> patch_o_auth2_client_with_http_info(id, body)
|
1431
|
+
|
1432
|
+
```ruby
|
1433
|
+
begin
|
1434
|
+
# Patch an OAuth 2.0 Client
|
1435
|
+
data, status_code, headers = api_instance.patch_o_auth2_client_with_http_info(id, body)
|
1436
|
+
p status_code # => 2xx
|
1437
|
+
p headers # => { ... }
|
1438
|
+
p data # => <OAuth2Client>
|
1439
|
+
rescue OryHydraClient::ApiError => e
|
1440
|
+
puts "Error when calling AdminApi->patch_o_auth2_client_with_http_info: #{e}"
|
1441
|
+
end
|
1442
|
+
```
|
1443
|
+
|
1444
|
+
### Parameters
|
1445
|
+
|
1446
|
+
| Name | Type | Description | Notes |
|
1447
|
+
| ---- | ---- | ----------- | ----- |
|
1448
|
+
| **id** | **String** | | |
|
1449
|
+
| **body** | [**Array<PatchDocument>**](PatchDocument.md) | | |
|
1450
|
+
|
1451
|
+
### Return type
|
1452
|
+
|
1453
|
+
[**OAuth2Client**](OAuth2Client.md)
|
1454
|
+
|
1455
|
+
### Authorization
|
1456
|
+
|
1457
|
+
No authorization required
|
1458
|
+
|
1459
|
+
### HTTP request headers
|
1460
|
+
|
1461
|
+
- **Content-Type**: application/json
|
1462
|
+
- **Accept**: application/json
|
1463
|
+
|
1464
|
+
|
1398
1465
|
## prometheus
|
1399
1466
|
|
1400
1467
|
> prometheus
|
data/docs/LogoutRequest.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **challenge** | **String** | Challenge is the identifier (\"logout challenge\") of the logout authentication request. It is used to identify the session. | [optional] |
|
7
8
|
| **request_url** | **String** | RequestURL is the original Logout URL requested. | [optional] |
|
8
9
|
| **rp_initiated** | **Boolean** | RPInitiated is set to true if the request was initiated by a Relying Party (RP), also known as an OAuth 2.0 Client. | [optional] |
|
9
10
|
| **sid** | **String** | SessionID is the login session ID that was requested to log out. | [optional] |
|
@@ -15,6 +16,7 @@
|
|
15
16
|
require 'ory-hydra-client'
|
16
17
|
|
17
18
|
instance = OryHydraClient::LogoutRequest.new(
|
19
|
+
challenge: null,
|
18
20
|
request_url: null,
|
19
21
|
rp_initiated: null,
|
20
22
|
sid: null,
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# OryHydraClient::PatchDocument
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **from** | **String** | A JSON-pointer | [optional] |
|
8
|
+
| **op** | **String** | The operation to be performed | |
|
9
|
+
| **path** | **String** | A JSON-pointer | |
|
10
|
+
| **value** | **Object** | The value to be used within the operations | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ory-hydra-client'
|
16
|
+
|
17
|
+
instance = OryHydraClient::PatchDocument.new(
|
18
|
+
from: null,
|
19
|
+
op: "replace",
|
20
|
+
path: "/name",
|
21
|
+
value: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OryHydraClient::RequestWasHandledResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **redirect_to** | **String** | Original request URL to which you should redirect the user if request was already handled. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'ory-hydra-client'
|
13
|
+
|
14
|
+
instance = OryHydraClient::RequestWasHandledResponse.new(
|
15
|
+
redirect_to: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/Volume.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# OryHydraClient::Volume
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **String** | Date/Time the volume was created. | [optional] |
|
8
|
+
| **driver** | **String** | Name of the volume driver used by the volume. | |
|
9
|
+
| **labels** | **Hash<String, String>** | User-defined key/value metadata. | |
|
10
|
+
| **mountpoint** | **String** | Mount path of the volume on the host. | |
|
11
|
+
| **name** | **String** | Name of the volume. | |
|
12
|
+
| **options** | **Hash<String, String>** | The driver specific options used when creating the volume. | |
|
13
|
+
| **scope** | **String** | The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. | |
|
14
|
+
| **status** | **Object** | Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. | [optional] |
|
15
|
+
| **usage_data** | [**VolumeUsageData**](VolumeUsageData.md) | | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'ory-hydra-client'
|
21
|
+
|
22
|
+
instance = OryHydraClient::Volume.new(
|
23
|
+
created_at: null,
|
24
|
+
driver: null,
|
25
|
+
labels: null,
|
26
|
+
mountpoint: null,
|
27
|
+
name: null,
|
28
|
+
options: null,
|
29
|
+
scope: null,
|
30
|
+
status: null,
|
31
|
+
usage_data: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
data/lib/ory-hydra-client.rb
CHANGED
@@ -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: v1.
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -36,6 +36,7 @@ require 'ory-hydra-client/models/o_auth2_client'
|
|
36
36
|
require 'ory-hydra-client/models/o_auth2_token_introspection'
|
37
37
|
require 'ory-hydra-client/models/oauth2_token_response'
|
38
38
|
require 'ory-hydra-client/models/open_id_connect_context'
|
39
|
+
require 'ory-hydra-client/models/patch_document'
|
39
40
|
require 'ory-hydra-client/models/plugin_config'
|
40
41
|
require 'ory-hydra-client/models/plugin_config_args'
|
41
42
|
require 'ory-hydra-client/models/plugin_config_interface'
|
@@ -50,8 +51,10 @@ require 'ory-hydra-client/models/plugin_mount'
|
|
50
51
|
require 'ory-hydra-client/models/plugin_settings'
|
51
52
|
require 'ory-hydra-client/models/previous_consent_session'
|
52
53
|
require 'ory-hydra-client/models/reject_request'
|
54
|
+
require 'ory-hydra-client/models/request_was_handled_response'
|
53
55
|
require 'ory-hydra-client/models/userinfo_response'
|
54
56
|
require 'ory-hydra-client/models/version'
|
57
|
+
require 'ory-hydra-client/models/volume'
|
55
58
|
require 'ory-hydra-client/models/volume_usage_data'
|
56
59
|
require 'ory-hydra-client/models/well_known'
|
57
60
|
|
@@ -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: v1.
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1368,6 +1368,77 @@ module OryHydraClient
|
|
1368
1368
|
return data, status_code, headers
|
1369
1369
|
end
|
1370
1370
|
|
1371
|
+
# Patch an OAuth 2.0 Client
|
1372
|
+
# Patch an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. To manage ORY Hydra, you will need an OAuth 2.0 Client as well. Make sure that this endpoint is well protected and only callable by first-party components.
|
1373
|
+
# @param id [String]
|
1374
|
+
# @param body [Array<PatchDocument>]
|
1375
|
+
# @param [Hash] opts the optional parameters
|
1376
|
+
# @return [OAuth2Client]
|
1377
|
+
def patch_o_auth2_client(id, body, opts = {})
|
1378
|
+
data, _status_code, _headers = patch_o_auth2_client_with_http_info(id, body, opts)
|
1379
|
+
data
|
1380
|
+
end
|
1381
|
+
|
1382
|
+
# Patch an OAuth 2.0 Client
|
1383
|
+
# Patch an existing OAuth 2.0 Client. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. To manage ORY Hydra, you will need an OAuth 2.0 Client as well. Make sure that this endpoint is well protected and only callable by first-party components.
|
1384
|
+
# @param id [String]
|
1385
|
+
# @param body [Array<PatchDocument>]
|
1386
|
+
# @param [Hash] opts the optional parameters
|
1387
|
+
# @return [Array<(OAuth2Client, Integer, Hash)>] OAuth2Client data, response status code and response headers
|
1388
|
+
def patch_o_auth2_client_with_http_info(id, body, opts = {})
|
1389
|
+
if @api_client.config.debugging
|
1390
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.patch_o_auth2_client ...'
|
1391
|
+
end
|
1392
|
+
# verify the required parameter 'id' is set
|
1393
|
+
if @api_client.config.client_side_validation && id.nil?
|
1394
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.patch_o_auth2_client"
|
1395
|
+
end
|
1396
|
+
# verify the required parameter 'body' is set
|
1397
|
+
if @api_client.config.client_side_validation && body.nil?
|
1398
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AdminApi.patch_o_auth2_client"
|
1399
|
+
end
|
1400
|
+
# resource path
|
1401
|
+
local_var_path = '/clients/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1402
|
+
|
1403
|
+
# query parameters
|
1404
|
+
query_params = opts[:query_params] || {}
|
1405
|
+
|
1406
|
+
# header parameters
|
1407
|
+
header_params = opts[:header_params] || {}
|
1408
|
+
# HTTP header 'Accept' (if needed)
|
1409
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1410
|
+
# HTTP header 'Content-Type'
|
1411
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1412
|
+
|
1413
|
+
# form parameters
|
1414
|
+
form_params = opts[:form_params] || {}
|
1415
|
+
|
1416
|
+
# http body (model)
|
1417
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
1418
|
+
|
1419
|
+
# return_type
|
1420
|
+
return_type = opts[:debug_return_type] || 'OAuth2Client'
|
1421
|
+
|
1422
|
+
# auth_names
|
1423
|
+
auth_names = opts[:debug_auth_names] || []
|
1424
|
+
|
1425
|
+
new_options = opts.merge(
|
1426
|
+
:operation => :"AdminApi.patch_o_auth2_client",
|
1427
|
+
:header_params => header_params,
|
1428
|
+
:query_params => query_params,
|
1429
|
+
:form_params => form_params,
|
1430
|
+
:body => post_body,
|
1431
|
+
:auth_names => auth_names,
|
1432
|
+
:return_type => return_type
|
1433
|
+
)
|
1434
|
+
|
1435
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1436
|
+
if @api_client.config.debugging
|
1437
|
+
@api_client.config.logger.debug "API called: AdminApi#patch_o_auth2_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1438
|
+
end
|
1439
|
+
return data, status_code, headers
|
1440
|
+
end
|
1441
|
+
|
1371
1442
|
# Get Snapshot Metrics from the Hydra Service.
|
1372
1443
|
# If you're using k8s, you can then add annotations to your deployment like so: ``` metadata: annotations: prometheus.io/port: \"4445\" prometheus.io/path: \"/metrics/prometheus\" ``` If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set.
|
1373
1444
|
# @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: v1.
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v1.
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -308,7 +308,7 @@ module OryHydraClient
|
|
308
308
|
case auth_setting[:in]
|
309
309
|
when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
|
310
310
|
when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
|
311
|
-
else fail ArgumentError, 'Authentication token must be in `query`
|
311
|
+
else fail ArgumentError, 'Authentication token must be in `query` or `header`'
|
312
312
|
end
|
313
313
|
end
|
314
314
|
end
|
@@ -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: v1.
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v1.
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -197,11 +197,13 @@ module OryHydraClient
|
|
197
197
|
|
198
198
|
# Gets API key (with prefix if set).
|
199
199
|
# @param [String] param_name the parameter name of API key auth
|
200
|
-
def api_key_with_prefix(param_name)
|
200
|
+
def api_key_with_prefix(param_name, param_alias = nil)
|
201
|
+
key = @api_key[param_name]
|
202
|
+
key = @api_key.fetch(param_alias, key) unless param_alias.nil?
|
201
203
|
if @api_key_prefix[param_name]
|
202
|
-
"#{@api_key_prefix[param_name]} #{
|
204
|
+
"#{@api_key_prefix[param_name]} #{key}"
|
203
205
|
else
|
204
|
-
|
206
|
+
key
|
205
207
|
end
|
206
208
|
end
|
207
209
|
|
@@ -234,7 +236,7 @@ module OryHydraClient
|
|
234
236
|
def server_settings
|
235
237
|
[
|
236
238
|
{
|
237
|
-
url: "
|
239
|
+
url: "",
|
238
240
|
description: "No description provided",
|
239
241
|
}
|
240
242
|
]
|