ory-oathkeeper-client 0.0.0.alpha62 → 0.35.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +34 -106
- data/docs/ApiApi.md +46 -301
- data/docs/CreateRuleCreated.md +8 -9
- data/docs/CreateRuleForbidden.md +8 -9
- data/docs/CreateRuleForbiddenBody.md +18 -19
- data/docs/CreateRuleInternalServerError.md +8 -9
- data/docs/CreateRuleInternalServerErrorBody.md +18 -19
- data/docs/CreateRuleUnauthorized.md +8 -9
- data/docs/CreateRuleUnauthorizedBody.md +18 -19
- data/docs/DecisionsForbidden.md +8 -9
- data/docs/DecisionsForbiddenBody.md +18 -19
- data/docs/DecisionsInternalServerError.md +8 -9
- data/docs/DecisionsInternalServerErrorBody.md +18 -19
- data/docs/DecisionsNotFound.md +8 -9
- data/docs/DecisionsNotFoundBody.md +18 -19
- data/docs/DecisionsUnauthorized.md +8 -9
- data/docs/DecisionsUnauthorizedBody.md +18 -19
- data/docs/DeleteRuleForbidden.md +8 -9
- data/docs/DeleteRuleForbiddenBody.md +18 -19
- data/docs/DeleteRuleInternalServerError.md +8 -9
- data/docs/DeleteRuleInternalServerErrorBody.md +18 -19
- data/docs/DeleteRuleNotFound.md +8 -9
- data/docs/DeleteRuleNotFoundBody.md +18 -19
- data/docs/DeleteRuleUnauthorized.md +8 -9
- data/docs/DeleteRuleUnauthorizedBody.md +18 -19
- data/docs/GetRuleForbidden.md +8 -9
- data/docs/GetRuleForbiddenBody.md +18 -19
- data/docs/GetRuleInternalServerError.md +8 -9
- data/docs/GetRuleInternalServerErrorBody.md +18 -19
- data/docs/GetRuleNotFound.md +8 -9
- data/docs/GetRuleNotFoundBody.md +18 -19
- data/docs/GetRuleOK.md +8 -9
- data/docs/GetRuleUnauthorized.md +8 -9
- data/docs/GetRuleUnauthorizedBody.md +18 -19
- data/docs/GetWellKnownForbidden.md +8 -9
- data/docs/GetWellKnownForbiddenBody.md +18 -19
- data/docs/GetWellKnownJSONWebKeysInternalServerError.md +8 -9
- data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +18 -19
- data/docs/GetWellKnownJSONWebKeysOK.md +8 -9
- data/docs/GetWellKnownOK.md +8 -9
- data/docs/GetWellKnownUnauthorized.md +8 -9
- data/docs/GetWellKnownUnauthorizedBody.md +18 -19
- data/docs/HealthNotReadyStatus.md +8 -9
- data/docs/HealthStatus.md +8 -9
- data/docs/InlineResponse500.md +18 -19
- data/docs/IsInstanceAliveInternalServerError.md +8 -9
- data/docs/IsInstanceAliveInternalServerErrorBody.md +18 -19
- data/docs/IsInstanceAliveOK.md +8 -9
- data/docs/JsonWebKey.md +40 -41
- data/docs/JsonWebKeySet.md +8 -9
- data/docs/JudgeForbidden.md +8 -9
- data/docs/JudgeForbiddenBody.md +18 -19
- data/docs/JudgeInternalServerError.md +8 -9
- data/docs/JudgeInternalServerErrorBody.md +18 -19
- data/docs/JudgeNotFound.md +8 -9
- data/docs/JudgeNotFoundBody.md +18 -19
- data/docs/JudgeUnauthorized.md +8 -9
- data/docs/JudgeUnauthorizedBody.md +18 -19
- data/docs/ListRulesForbidden.md +8 -9
- data/docs/ListRulesForbiddenBody.md +18 -19
- data/docs/ListRulesInternalServerError.md +8 -9
- data/docs/ListRulesInternalServerErrorBody.md +18 -19
- data/docs/ListRulesOK.md +8 -9
- data/docs/ListRulesUnauthorized.md +8 -9
- data/docs/ListRulesUnauthorizedBody.md +18 -19
- data/docs/Rule.md +20 -21
- data/docs/RuleHandler.md +10 -11
- data/docs/RuleMatch.md +10 -11
- data/docs/SwaggerCreateRuleParameters.md +8 -9
- data/docs/SwaggerGetRuleParameters.md +8 -9
- data/docs/SwaggerHealthStatus.md +8 -9
- data/docs/SwaggerJSONWebKey.md +40 -41
- data/docs/SwaggerJSONWebKeySet.md +8 -9
- data/docs/SwaggerListRulesParameters.md +10 -11
- data/docs/SwaggerNotReadyStatus.md +8 -9
- data/docs/SwaggerRule.md +20 -21
- data/docs/SwaggerRuleHandler.md +10 -11
- data/docs/SwaggerRuleMatch.md +10 -11
- data/docs/SwaggerRuleResponse.md +8 -9
- data/docs/SwaggerRulesResponse.md +8 -9
- data/docs/SwaggerUpdateRuleParameters.md +10 -11
- data/docs/SwaggerVersion.md +8 -9
- data/docs/UpdateRuleForbidden.md +8 -9
- data/docs/UpdateRuleForbiddenBody.md +18 -19
- data/docs/UpdateRuleInternalServerError.md +8 -9
- data/docs/UpdateRuleInternalServerErrorBody.md +18 -19
- data/docs/UpdateRuleNotFound.md +8 -9
- data/docs/UpdateRuleNotFoundBody.md +18 -19
- data/docs/UpdateRuleOK.md +8 -9
- data/docs/UpdateRuleUnauthorized.md +8 -9
- data/docs/UpdateRuleUnauthorizedBody.md +18 -19
- data/docs/Upstream.md +12 -13
- data/docs/Version.md +8 -9
- data/lib/ory-oathkeeper-client/api/api_api.rb +15 -190
- data/lib/ory-oathkeeper-client/api/health_api.rb +2 -2
- data/lib/ory-oathkeeper-client/api/version_api.rb +2 -2
- data/lib/ory-oathkeeper-client/api_client.rb +48 -52
- data/lib/ory-oathkeeper-client/api_error.rb +3 -3
- data/lib/ory-oathkeeper-client/configuration.rb +12 -41
- data/lib/ory-oathkeeper-client/models/create_rule_created.rb +11 -23
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +11 -23
- data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +11 -23
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +12 -23
- data/lib/ory-oathkeeper-client/models/health_status.rb +11 -23
- data/lib/ory-oathkeeper-client/models/inline_response500.rb +12 -24
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/json_web_key.rb +24 -23
- data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +11 -23
- data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/judge_not_found.rb +11 -23
- data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/rule.rb +11 -23
- data/lib/ory-oathkeeper-client/models/rule_handler.rb +12 -23
- data/lib/ory-oathkeeper-client/models/rule_match.rb +12 -23
- data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_rule.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_version.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/upstream.rb +12 -24
- data/lib/ory-oathkeeper-client/models/version.rb +12 -23
- data/lib/ory-oathkeeper-client/version.rb +4 -4
- data/lib/ory-oathkeeper-client.rb +6 -76
- data/ory-oathkeeper-client.gemspec +6 -5
- data/spec/api/health_api_spec.rb +2 -2
- data/spec/api/version_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +32 -32
- data/spec/configuration_spec.rb +5 -5
- data/spec/spec_helper.rb +2 -2
- metadata +99 -79
@@ -1,28 +1,27 @@
|
|
1
|
-
#
|
1
|
+
# OryHydraClient::UpdateRuleNotFoundBody
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**code** | **Integer** | code | [optional]
|
8
|
+
**details** | **Array<Hash<String, Object>>** | details | [optional]
|
9
|
+
**message** | **String** | message | [optional]
|
10
|
+
**reason** | **String** | reason | [optional]
|
11
|
+
**request** | **String** | request | [optional]
|
12
|
+
**status** | **String** | status | [optional]
|
13
13
|
|
14
|
-
##
|
14
|
+
## Code Sample
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
require '
|
17
|
+
require 'OryHydraClient'
|
18
18
|
|
19
|
-
instance =
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
status: null
|
26
|
-
)
|
19
|
+
instance = OryHydraClient::UpdateRuleNotFoundBody.new(code: null,
|
20
|
+
details: null,
|
21
|
+
message: null,
|
22
|
+
reason: null,
|
23
|
+
request: null,
|
24
|
+
status: null)
|
27
25
|
```
|
28
26
|
|
27
|
+
|
data/docs/UpdateRuleOK.md
CHANGED
@@ -1,18 +1,17 @@
|
|
1
|
-
#
|
1
|
+
# OryHydraClient::UpdateRuleOK
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**payload** | [**SwaggerRule**](SwaggerRule.md) | | [optional]
|
8
8
|
|
9
|
-
##
|
9
|
+
## Code Sample
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'OryHydraClient'
|
13
13
|
|
14
|
-
instance =
|
15
|
-
payload: null
|
16
|
-
)
|
14
|
+
instance = OryHydraClient::UpdateRuleOK.new(payload: null)
|
17
15
|
```
|
18
16
|
|
17
|
+
|
@@ -1,18 +1,17 @@
|
|
1
|
-
#
|
1
|
+
# OryHydraClient::UpdateRuleUnauthorized
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**payload** | [**UpdateRuleUnauthorizedBody**](UpdateRuleUnauthorizedBody.md) | | [optional]
|
8
8
|
|
9
|
-
##
|
9
|
+
## Code Sample
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'OryHydraClient'
|
13
13
|
|
14
|
-
instance =
|
15
|
-
payload: null
|
16
|
-
)
|
14
|
+
instance = OryHydraClient::UpdateRuleUnauthorized.new(payload: null)
|
17
15
|
```
|
18
16
|
|
17
|
+
|
@@ -1,28 +1,27 @@
|
|
1
|
-
#
|
1
|
+
# OryHydraClient::UpdateRuleUnauthorizedBody
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**code** | **Integer** | code | [optional]
|
8
|
+
**details** | **Array<Hash<String, Object>>** | details | [optional]
|
9
|
+
**message** | **String** | message | [optional]
|
10
|
+
**reason** | **String** | reason | [optional]
|
11
|
+
**request** | **String** | request | [optional]
|
12
|
+
**status** | **String** | status | [optional]
|
13
13
|
|
14
|
-
##
|
14
|
+
## Code Sample
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
require '
|
17
|
+
require 'OryHydraClient'
|
18
18
|
|
19
|
-
instance =
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
status: null
|
26
|
-
)
|
19
|
+
instance = OryHydraClient::UpdateRuleUnauthorizedBody.new(code: null,
|
20
|
+
details: null,
|
21
|
+
message: null,
|
22
|
+
reason: null,
|
23
|
+
request: null,
|
24
|
+
status: null)
|
27
25
|
```
|
28
26
|
|
27
|
+
|
data/docs/Upstream.md
CHANGED
@@ -1,22 +1,21 @@
|
|
1
|
-
#
|
1
|
+
# OryHydraClient::Upstream
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**preserve_host** | **Boolean** | PreserveHost, if false (the default), tells ORY Oathkeeper to set the upstream request's Host header to the hostname of the API's upstream's URL. Setting this flag to true instructs ORY Oathkeeper not to do so. | [optional]
|
8
|
+
**strip_path** | **String** | StripPath if set, replaces the provided path prefix when forwarding the requested URL to the upstream URL. | [optional]
|
9
|
+
**url** | **String** | URL is the URL the request will be proxied to. | [optional]
|
10
10
|
|
11
|
-
##
|
11
|
+
## Code Sample
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'OryHydraClient'
|
15
15
|
|
16
|
-
instance =
|
17
|
-
|
18
|
-
|
19
|
-
url: null
|
20
|
-
)
|
16
|
+
instance = OryHydraClient::Upstream.new(preserve_host: null,
|
17
|
+
strip_path: null,
|
18
|
+
url: null)
|
21
19
|
```
|
22
20
|
|
21
|
+
|
data/docs/Version.md
CHANGED
@@ -1,18 +1,17 @@
|
|
1
|
-
#
|
1
|
+
# OryHydraClient::Version
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**version** | **String** | Version is the service's version. | [optional]
|
8
8
|
|
9
|
-
##
|
9
|
+
## Code Sample
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'OryHydraClient'
|
13
13
|
|
14
|
-
instance =
|
15
|
-
version: null
|
16
|
-
)
|
14
|
+
instance = OryHydraClient::Version.new(version: null)
|
17
15
|
```
|
18
16
|
|
17
|
+
|
@@ -3,16 +3,16 @@
|
|
3
3
|
|
4
4
|
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
|
-
module
|
15
|
+
module OryHydraClient
|
16
16
|
class ApiApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
@@ -51,16 +51,15 @@ module OryOathkeeperClient
|
|
51
51
|
form_params = opts[:form_params] || {}
|
52
52
|
|
53
53
|
# http body (model)
|
54
|
-
post_body = opts[:
|
54
|
+
post_body = opts[:body]
|
55
55
|
|
56
56
|
# return_type
|
57
|
-
return_type = opts[:
|
57
|
+
return_type = opts[:return_type]
|
58
58
|
|
59
59
|
# auth_names
|
60
|
-
auth_names = opts[:
|
60
|
+
auth_names = opts[:auth_names] || []
|
61
61
|
|
62
62
|
new_options = opts.merge(
|
63
|
-
:operation => :"ApiApi.decisions",
|
64
63
|
:header_params => header_params,
|
65
64
|
:query_params => query_params,
|
66
65
|
:form_params => form_params,
|
@@ -114,16 +113,15 @@ module OryOathkeeperClient
|
|
114
113
|
form_params = opts[:form_params] || {}
|
115
114
|
|
116
115
|
# http body (model)
|
117
|
-
post_body = opts[:
|
116
|
+
post_body = opts[:body]
|
118
117
|
|
119
118
|
# return_type
|
120
|
-
return_type = opts[:
|
119
|
+
return_type = opts[:return_type] || 'Rule'
|
121
120
|
|
122
121
|
# auth_names
|
123
|
-
auth_names = opts[:
|
122
|
+
auth_names = opts[:auth_names] || []
|
124
123
|
|
125
124
|
new_options = opts.merge(
|
126
|
-
:operation => :"ApiApi.get_rule",
|
127
125
|
:header_params => header_params,
|
128
126
|
:query_params => query_params,
|
129
127
|
:form_params => form_params,
|
@@ -139,63 +137,6 @@ module OryOathkeeperClient
|
|
139
137
|
return data, status_code, headers
|
140
138
|
end
|
141
139
|
|
142
|
-
# Get service version
|
143
|
-
# This endpoint returns the service version typically notated using semantic versioning. 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.
|
144
|
-
# @param [Hash] opts the optional parameters
|
145
|
-
# @return [Version]
|
146
|
-
def get_version(opts = {})
|
147
|
-
data, _status_code, _headers = get_version_with_http_info(opts)
|
148
|
-
data
|
149
|
-
end
|
150
|
-
|
151
|
-
# Get service version
|
152
|
-
# This endpoint returns the service version typically notated using semantic versioning. 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.
|
153
|
-
# @param [Hash] opts the optional parameters
|
154
|
-
# @return [Array<(Version, Integer, Hash)>] Version data, response status code and response headers
|
155
|
-
def get_version_with_http_info(opts = {})
|
156
|
-
if @api_client.config.debugging
|
157
|
-
@api_client.config.logger.debug 'Calling API: ApiApi.get_version ...'
|
158
|
-
end
|
159
|
-
# resource path
|
160
|
-
local_var_path = '/version'
|
161
|
-
|
162
|
-
# query parameters
|
163
|
-
query_params = opts[:query_params] || {}
|
164
|
-
|
165
|
-
# header parameters
|
166
|
-
header_params = opts[:header_params] || {}
|
167
|
-
# HTTP header 'Accept' (if needed)
|
168
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
169
|
-
|
170
|
-
# form parameters
|
171
|
-
form_params = opts[:form_params] || {}
|
172
|
-
|
173
|
-
# http body (model)
|
174
|
-
post_body = opts[:debug_body]
|
175
|
-
|
176
|
-
# return_type
|
177
|
-
return_type = opts[:debug_return_type] || 'Version'
|
178
|
-
|
179
|
-
# auth_names
|
180
|
-
auth_names = opts[:debug_auth_names] || []
|
181
|
-
|
182
|
-
new_options = opts.merge(
|
183
|
-
:operation => :"ApiApi.get_version",
|
184
|
-
:header_params => header_params,
|
185
|
-
:query_params => query_params,
|
186
|
-
:form_params => form_params,
|
187
|
-
:body => post_body,
|
188
|
-
:auth_names => auth_names,
|
189
|
-
:return_type => return_type
|
190
|
-
)
|
191
|
-
|
192
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
193
|
-
if @api_client.config.debugging
|
194
|
-
@api_client.config.logger.debug "API called: ApiApi#get_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
195
|
-
end
|
196
|
-
return data, status_code, headers
|
197
|
-
end
|
198
|
-
|
199
140
|
# Lists cryptographic keys
|
200
141
|
# This endpoint returns cryptographic keys that are required to, for example, verify signatures of ID Tokens.
|
201
142
|
# @param [Hash] opts the optional parameters
|
@@ -228,16 +169,15 @@ module OryOathkeeperClient
|
|
228
169
|
form_params = opts[:form_params] || {}
|
229
170
|
|
230
171
|
# http body (model)
|
231
|
-
post_body = opts[:
|
172
|
+
post_body = opts[:body]
|
232
173
|
|
233
174
|
# return_type
|
234
|
-
return_type = opts[:
|
175
|
+
return_type = opts[:return_type] || 'JsonWebKeySet'
|
235
176
|
|
236
177
|
# auth_names
|
237
|
-
auth_names = opts[:
|
178
|
+
auth_names = opts[:auth_names] || []
|
238
179
|
|
239
180
|
new_options = opts.merge(
|
240
|
-
:operation => :"ApiApi.get_well_known_json_web_keys",
|
241
181
|
:header_params => header_params,
|
242
182
|
:query_params => query_params,
|
243
183
|
:form_params => form_params,
|
@@ -253,120 +193,6 @@ module OryOathkeeperClient
|
|
253
193
|
return data, status_code, headers
|
254
194
|
end
|
255
195
|
|
256
|
-
# Check alive status
|
257
|
-
# This endpoint returns a 200 status code when the HTTP server is up running. This status does currently not include checks whether the database connection is working. 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.
|
258
|
-
# @param [Hash] opts the optional parameters
|
259
|
-
# @return [HealthStatus]
|
260
|
-
def is_instance_alive(opts = {})
|
261
|
-
data, _status_code, _headers = is_instance_alive_with_http_info(opts)
|
262
|
-
data
|
263
|
-
end
|
264
|
-
|
265
|
-
# Check alive status
|
266
|
-
# This endpoint returns a 200 status code when the HTTP server is up running. This status does currently not include checks whether the database connection is working. 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.
|
267
|
-
# @param [Hash] opts the optional parameters
|
268
|
-
# @return [Array<(HealthStatus, Integer, Hash)>] HealthStatus data, response status code and response headers
|
269
|
-
def is_instance_alive_with_http_info(opts = {})
|
270
|
-
if @api_client.config.debugging
|
271
|
-
@api_client.config.logger.debug 'Calling API: ApiApi.is_instance_alive ...'
|
272
|
-
end
|
273
|
-
# resource path
|
274
|
-
local_var_path = '/health/alive'
|
275
|
-
|
276
|
-
# query parameters
|
277
|
-
query_params = opts[:query_params] || {}
|
278
|
-
|
279
|
-
# header parameters
|
280
|
-
header_params = opts[:header_params] || {}
|
281
|
-
# HTTP header 'Accept' (if needed)
|
282
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
283
|
-
|
284
|
-
# form parameters
|
285
|
-
form_params = opts[:form_params] || {}
|
286
|
-
|
287
|
-
# http body (model)
|
288
|
-
post_body = opts[:debug_body]
|
289
|
-
|
290
|
-
# return_type
|
291
|
-
return_type = opts[:debug_return_type] || 'HealthStatus'
|
292
|
-
|
293
|
-
# auth_names
|
294
|
-
auth_names = opts[:debug_auth_names] || []
|
295
|
-
|
296
|
-
new_options = opts.merge(
|
297
|
-
:operation => :"ApiApi.is_instance_alive",
|
298
|
-
:header_params => header_params,
|
299
|
-
:query_params => query_params,
|
300
|
-
:form_params => form_params,
|
301
|
-
:body => post_body,
|
302
|
-
:auth_names => auth_names,
|
303
|
-
:return_type => return_type
|
304
|
-
)
|
305
|
-
|
306
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
307
|
-
if @api_client.config.debugging
|
308
|
-
@api_client.config.logger.debug "API called: ApiApi#is_instance_alive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
309
|
-
end
|
310
|
-
return data, status_code, headers
|
311
|
-
end
|
312
|
-
|
313
|
-
# Check readiness status
|
314
|
-
# 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.
|
315
|
-
# @param [Hash] opts the optional parameters
|
316
|
-
# @return [HealthStatus]
|
317
|
-
def is_instance_ready(opts = {})
|
318
|
-
data, _status_code, _headers = is_instance_ready_with_http_info(opts)
|
319
|
-
data
|
320
|
-
end
|
321
|
-
|
322
|
-
# Check readiness status
|
323
|
-
# 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.
|
324
|
-
# @param [Hash] opts the optional parameters
|
325
|
-
# @return [Array<(HealthStatus, Integer, Hash)>] HealthStatus data, response status code and response headers
|
326
|
-
def is_instance_ready_with_http_info(opts = {})
|
327
|
-
if @api_client.config.debugging
|
328
|
-
@api_client.config.logger.debug 'Calling API: ApiApi.is_instance_ready ...'
|
329
|
-
end
|
330
|
-
# resource path
|
331
|
-
local_var_path = '/health/ready'
|
332
|
-
|
333
|
-
# query parameters
|
334
|
-
query_params = opts[:query_params] || {}
|
335
|
-
|
336
|
-
# header parameters
|
337
|
-
header_params = opts[:header_params] || {}
|
338
|
-
# HTTP header 'Accept' (if needed)
|
339
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
340
|
-
|
341
|
-
# form parameters
|
342
|
-
form_params = opts[:form_params] || {}
|
343
|
-
|
344
|
-
# http body (model)
|
345
|
-
post_body = opts[:debug_body]
|
346
|
-
|
347
|
-
# return_type
|
348
|
-
return_type = opts[:debug_return_type] || 'HealthStatus'
|
349
|
-
|
350
|
-
# auth_names
|
351
|
-
auth_names = opts[:debug_auth_names] || []
|
352
|
-
|
353
|
-
new_options = opts.merge(
|
354
|
-
:operation => :"ApiApi.is_instance_ready",
|
355
|
-
:header_params => header_params,
|
356
|
-
:query_params => query_params,
|
357
|
-
:form_params => form_params,
|
358
|
-
:body => post_body,
|
359
|
-
:auth_names => auth_names,
|
360
|
-
:return_type => return_type
|
361
|
-
)
|
362
|
-
|
363
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
364
|
-
if @api_client.config.debugging
|
365
|
-
@api_client.config.logger.debug "API called: ApiApi#is_instance_ready\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
366
|
-
end
|
367
|
-
return data, status_code, headers
|
368
|
-
end
|
369
|
-
|
370
196
|
# List all rules
|
371
197
|
# This method returns an array of all rules that are stored in the backend. This is useful if you want to get a full view of what rules you have currently in place.
|
372
198
|
# @param [Hash] opts the optional parameters
|
@@ -405,16 +231,15 @@ module OryOathkeeperClient
|
|
405
231
|
form_params = opts[:form_params] || {}
|
406
232
|
|
407
233
|
# http body (model)
|
408
|
-
post_body = opts[:
|
234
|
+
post_body = opts[:body]
|
409
235
|
|
410
236
|
# return_type
|
411
|
-
return_type = opts[:
|
237
|
+
return_type = opts[:return_type] || 'Array<Rule>'
|
412
238
|
|
413
239
|
# auth_names
|
414
|
-
auth_names = opts[:
|
240
|
+
auth_names = opts[:auth_names] || []
|
415
241
|
|
416
242
|
new_options = opts.merge(
|
417
|
-
:operation => :"ApiApi.list_rules",
|
418
243
|
:header_params => header_params,
|
419
244
|
:query_params => query_params,
|
420
245
|
:form_params => form_params,
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|