ory-oathkeeper-client 0.38.5.beta1 → 0.38.9.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ApiApi.md +106 -37
- data/docs/CreateRuleCreated.md +8 -7
- data/docs/CreateRuleForbidden.md +8 -7
- data/docs/CreateRuleForbiddenBody.md +18 -17
- data/docs/CreateRuleInternalServerError.md +8 -7
- data/docs/CreateRuleInternalServerErrorBody.md +18 -17
- data/docs/CreateRuleUnauthorized.md +8 -7
- data/docs/CreateRuleUnauthorizedBody.md +18 -17
- data/docs/DecisionsForbidden.md +8 -7
- data/docs/DecisionsForbiddenBody.md +18 -17
- data/docs/DecisionsInternalServerError.md +8 -7
- data/docs/DecisionsInternalServerErrorBody.md +18 -17
- data/docs/DecisionsNotFound.md +8 -7
- data/docs/DecisionsNotFoundBody.md +18 -17
- data/docs/DecisionsUnauthorized.md +8 -7
- data/docs/DecisionsUnauthorizedBody.md +18 -17
- data/docs/DeleteRuleForbidden.md +8 -7
- data/docs/DeleteRuleForbiddenBody.md +18 -17
- data/docs/DeleteRuleInternalServerError.md +8 -7
- data/docs/DeleteRuleInternalServerErrorBody.md +18 -17
- data/docs/DeleteRuleNotFound.md +8 -7
- data/docs/DeleteRuleNotFoundBody.md +18 -17
- data/docs/DeleteRuleUnauthorized.md +8 -7
- data/docs/DeleteRuleUnauthorizedBody.md +18 -17
- data/docs/GetRuleForbidden.md +8 -7
- data/docs/GetRuleForbiddenBody.md +18 -17
- data/docs/GetRuleInternalServerError.md +8 -7
- data/docs/GetRuleInternalServerErrorBody.md +18 -17
- data/docs/GetRuleNotFound.md +8 -7
- data/docs/GetRuleNotFoundBody.md +18 -17
- data/docs/GetRuleOK.md +8 -7
- data/docs/GetRuleUnauthorized.md +8 -7
- data/docs/GetRuleUnauthorizedBody.md +18 -17
- data/docs/GetWellKnownForbidden.md +8 -7
- data/docs/GetWellKnownForbiddenBody.md +18 -17
- data/docs/GetWellKnownJSONWebKeysInternalServerError.md +8 -7
- data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +18 -17
- data/docs/GetWellKnownJSONWebKeysOK.md +8 -7
- data/docs/GetWellKnownOK.md +8 -7
- data/docs/GetWellKnownUnauthorized.md +8 -7
- data/docs/GetWellKnownUnauthorizedBody.md +18 -17
- data/docs/HealthApi.md +50 -15
- data/docs/HealthNotReadyStatus.md +8 -7
- data/docs/HealthStatus.md +8 -7
- data/docs/InlineResponse500.md +18 -17
- data/docs/IsInstanceAliveInternalServerError.md +8 -7
- data/docs/IsInstanceAliveInternalServerErrorBody.md +18 -17
- data/docs/IsInstanceAliveOK.md +8 -7
- data/docs/JsonWebKey.md +40 -39
- data/docs/JsonWebKeySet.md +8 -7
- data/docs/JudgeForbidden.md +8 -7
- data/docs/JudgeForbiddenBody.md +18 -17
- data/docs/JudgeInternalServerError.md +8 -7
- data/docs/JudgeInternalServerErrorBody.md +18 -17
- data/docs/JudgeNotFound.md +8 -7
- data/docs/JudgeNotFoundBody.md +18 -17
- data/docs/JudgeUnauthorized.md +8 -7
- data/docs/JudgeUnauthorizedBody.md +18 -17
- data/docs/ListRulesForbidden.md +8 -7
- data/docs/ListRulesForbiddenBody.md +18 -17
- data/docs/ListRulesInternalServerError.md +8 -7
- data/docs/ListRulesInternalServerErrorBody.md +18 -17
- data/docs/ListRulesOK.md +8 -7
- data/docs/ListRulesUnauthorized.md +8 -7
- data/docs/ListRulesUnauthorizedBody.md +18 -17
- data/docs/Rule.md +20 -19
- data/docs/RuleHandler.md +10 -9
- data/docs/RuleMatch.md +10 -9
- data/docs/SwaggerCreateRuleParameters.md +8 -7
- data/docs/SwaggerGetRuleParameters.md +8 -7
- data/docs/SwaggerHealthStatus.md +8 -7
- data/docs/SwaggerJSONWebKey.md +40 -39
- data/docs/SwaggerJSONWebKeySet.md +8 -7
- data/docs/SwaggerListRulesParameters.md +10 -9
- data/docs/SwaggerNotReadyStatus.md +8 -7
- data/docs/SwaggerRule.md +20 -19
- data/docs/SwaggerRuleHandler.md +10 -9
- data/docs/SwaggerRuleMatch.md +10 -9
- data/docs/SwaggerRuleResponse.md +8 -7
- data/docs/SwaggerRulesResponse.md +8 -7
- data/docs/SwaggerUpdateRuleParameters.md +10 -9
- data/docs/SwaggerVersion.md +8 -7
- data/docs/UpdateRuleForbidden.md +8 -7
- data/docs/UpdateRuleForbiddenBody.md +18 -17
- data/docs/UpdateRuleInternalServerError.md +8 -7
- data/docs/UpdateRuleInternalServerErrorBody.md +18 -17
- data/docs/UpdateRuleNotFound.md +8 -7
- data/docs/UpdateRuleNotFoundBody.md +18 -17
- data/docs/UpdateRuleOK.md +8 -7
- data/docs/UpdateRuleUnauthorized.md +8 -7
- data/docs/UpdateRuleUnauthorizedBody.md +18 -17
- data/docs/Upstream.md +12 -11
- data/docs/Version.md +8 -7
- data/docs/VersionApi.md +26 -9
- data/lib/ory-oathkeeper-client.rb +2 -2
- data/lib/ory-oathkeeper-client/api/api_api.rb +18 -14
- data/lib/ory-oathkeeper-client/api/health_api.rb +10 -8
- data/lib/ory-oathkeeper-client/api/version_api.rb +6 -5
- data/lib/ory-oathkeeper-client/api_client.rb +50 -48
- data/lib/ory-oathkeeper-client/api_error.rb +2 -2
- data/lib/ory-oathkeeper-client/configuration.rb +34 -7
- data/lib/ory-oathkeeper-client/models/create_rule_created.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/health_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/inline_response500.rb +20 -8
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/json_web_key.rb +20 -8
- data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/judge_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/rule.rb +20 -8
- data/lib/ory-oathkeeper-client/models/rule_handler.rb +20 -8
- data/lib/ory-oathkeeper-client/models/rule_match.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_version.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/upstream.rb +20 -8
- data/lib/ory-oathkeeper-client/models/version.rb +20 -8
- data/lib/ory-oathkeeper-client/version.rb +3 -3
- data/ory-oathkeeper-client.gemspec +4 -5
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +81 -101
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f55377676e044a41f1496f05f58335497dbb14f7aba78e374400cab081323b5c
|
4
|
+
data.tar.gz: 3162661e0ecfcf1601f6f4f7f7ac5ce9abbe1534c89e532696392f07e96cc69b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7324011eb52ec71c144d1e58ee4226cc0f57f343c863d6a8b154598cb29dd7c671584dd31f70a0eec9d2bee4fd4d8ec51ac7814a614c8729f1c3efa07ec6356b
|
7
|
+
data.tar.gz: bc0dc287f563a49f7e47f72224ca9c33cd8d95162c9903e10ce5826023b4c356d284b8f50a27e998d717e8a8d599b22c9a0bd7620f0f4fb71624d43ac5cd7926
|
data/README.md
CHANGED
@@ -6,8 +6,8 @@ ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validit
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
|
-
- API version: v0.38.
|
10
|
-
- Package version: v0.38.
|
9
|
+
- API version: v0.38.9-beta.1
|
10
|
+
- Package version: v0.38.9-beta.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://www.ory.am](https://www.ory.am)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ory-oathkeeper-client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ory-oathkeeper-client-v0.38.
|
27
|
+
gem install ./ory-oathkeeper-client-v0.38.9-beta.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ory-oathkeeper-client-v0.38.
|
30
|
+
(for development, run `gem install --dev ./ory-oathkeeper-client-v0.38.9-beta.1.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ory-oathkeeper-client', '~> v0.38.
|
36
|
+
gem 'ory-oathkeeper-client', '~> v0.38.9-beta.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
data/docs/ApiApi.md
CHANGED
@@ -2,13 +2,12 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**decisions**](ApiApi.md#decisions) | **GET** /decisions | Access Control Decision API
|
8
|
-
[**get_rule**](ApiApi.md#get_rule) | **GET** /rules/{id} | Retrieve a rule
|
9
|
-
[**get_well_known_json_web_keys**](ApiApi.md#get_well_known_json_web_keys) | **GET** /.well-known/jwks.json | Lists cryptographic keys
|
10
|
-
[**list_rules**](ApiApi.md#list_rules) | **GET** /rules | List all rules
|
11
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**decisions**](ApiApi.md#decisions) | **GET** /decisions | Access Control Decision API |
|
8
|
+
| [**get_rule**](ApiApi.md#get_rule) | **GET** /rules/{id} | Retrieve a rule |
|
9
|
+
| [**get_well_known_json_web_keys**](ApiApi.md#get_well_known_json_web_keys) | **GET** /.well-known/jwks.json | Lists cryptographic keys |
|
10
|
+
| [**list_rules**](ApiApi.md#list_rules) | **GET** /rules | List all rules |
|
12
11
|
|
13
12
|
|
14
13
|
## decisions
|
@@ -19,19 +18,37 @@ Access Control Decision API
|
|
19
18
|
|
20
19
|
> This endpoint works with all HTTP Methods (GET, POST, PUT, ...) and matches every path prefixed with /decision. This endpoint mirrors the proxy capability of ORY Oathkeeper's proxy functionality but instead of forwarding the request to the upstream server, returns 200 (request should be allowed), 401 (unauthorized), or 403 (forbidden) status codes. This endpoint can be used to integrate with other API Proxies like Ambassador, Kong, Envoy, and many more.
|
21
20
|
|
22
|
-
###
|
21
|
+
### Examples
|
23
22
|
|
24
23
|
```ruby
|
25
|
-
|
24
|
+
require 'time'
|
26
25
|
require 'ory-oathkeeper-client'
|
27
26
|
|
28
27
|
api_instance = OryHydraClient::ApiApi.new
|
29
28
|
|
30
29
|
begin
|
31
|
-
#Access Control Decision API
|
30
|
+
# Access Control Decision API
|
32
31
|
api_instance.decisions
|
33
32
|
rescue OryHydraClient::ApiError => e
|
34
|
-
puts "
|
33
|
+
puts "Error when calling ApiApi->decisions: #{e}"
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
37
|
+
#### Using the decisions_with_http_info variant
|
38
|
+
|
39
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
40
|
+
|
41
|
+
> <Array(nil, Integer, Hash)> decisions_with_http_info
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
begin
|
45
|
+
# Access Control Decision API
|
46
|
+
data, status_code, headers = api_instance.decisions_with_http_info
|
47
|
+
p status_code # => 2xx
|
48
|
+
p headers # => { ... }
|
49
|
+
p data # => nil
|
50
|
+
rescue OryHydraClient::ApiError => e
|
51
|
+
puts "Error when calling ApiApi->decisions_with_http_info: #{e}"
|
35
52
|
end
|
36
53
|
```
|
37
54
|
|
@@ -55,36 +72,53 @@ No authorization required
|
|
55
72
|
|
56
73
|
## get_rule
|
57
74
|
|
58
|
-
> Rule get_rule(id)
|
75
|
+
> <Rule> get_rule(id)
|
59
76
|
|
60
77
|
Retrieve a rule
|
61
78
|
|
62
79
|
Use this method to retrieve a rule from the storage. If it does not exist you will receive a 404 error.
|
63
80
|
|
64
|
-
###
|
81
|
+
### Examples
|
65
82
|
|
66
83
|
```ruby
|
67
|
-
|
84
|
+
require 'time'
|
68
85
|
require 'ory-oathkeeper-client'
|
69
86
|
|
70
87
|
api_instance = OryHydraClient::ApiApi.new
|
71
88
|
id = 'id_example' # String |
|
72
89
|
|
73
90
|
begin
|
74
|
-
#Retrieve a rule
|
91
|
+
# Retrieve a rule
|
75
92
|
result = api_instance.get_rule(id)
|
76
93
|
p result
|
77
94
|
rescue OryHydraClient::ApiError => e
|
78
|
-
puts "
|
95
|
+
puts "Error when calling ApiApi->get_rule: #{e}"
|
79
96
|
end
|
80
97
|
```
|
81
98
|
|
82
|
-
|
99
|
+
#### Using the get_rule_with_http_info variant
|
100
|
+
|
101
|
+
This returns an Array which contains the response data, status code and headers.
|
102
|
+
|
103
|
+
> <Array(<Rule>, Integer, Hash)> get_rule_with_http_info(id)
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
begin
|
107
|
+
# Retrieve a rule
|
108
|
+
data, status_code, headers = api_instance.get_rule_with_http_info(id)
|
109
|
+
p status_code # => 2xx
|
110
|
+
p headers # => { ... }
|
111
|
+
p data # => <Rule>
|
112
|
+
rescue OryHydraClient::ApiError => e
|
113
|
+
puts "Error when calling ApiApi->get_rule_with_http_info: #{e}"
|
114
|
+
end
|
115
|
+
```
|
83
116
|
|
117
|
+
### Parameters
|
84
118
|
|
85
|
-
Name | Type | Description
|
86
|
-
|
87
|
-
**id** | **String
|
119
|
+
| Name | Type | Description | Notes |
|
120
|
+
| ---- | ---- | ----------- | ----- |
|
121
|
+
| **id** | **String** | | |
|
88
122
|
|
89
123
|
### Return type
|
90
124
|
|
@@ -102,26 +136,44 @@ No authorization required
|
|
102
136
|
|
103
137
|
## get_well_known_json_web_keys
|
104
138
|
|
105
|
-
> JsonWebKeySet get_well_known_json_web_keys
|
139
|
+
> <JsonWebKeySet> get_well_known_json_web_keys
|
106
140
|
|
107
141
|
Lists cryptographic keys
|
108
142
|
|
109
143
|
This endpoint returns cryptographic keys that are required to, for example, verify signatures of ID Tokens.
|
110
144
|
|
111
|
-
###
|
145
|
+
### Examples
|
112
146
|
|
113
147
|
```ruby
|
114
|
-
|
148
|
+
require 'time'
|
115
149
|
require 'ory-oathkeeper-client'
|
116
150
|
|
117
151
|
api_instance = OryHydraClient::ApiApi.new
|
118
152
|
|
119
153
|
begin
|
120
|
-
#Lists cryptographic keys
|
154
|
+
# Lists cryptographic keys
|
121
155
|
result = api_instance.get_well_known_json_web_keys
|
122
156
|
p result
|
123
157
|
rescue OryHydraClient::ApiError => e
|
124
|
-
puts "
|
158
|
+
puts "Error when calling ApiApi->get_well_known_json_web_keys: #{e}"
|
159
|
+
end
|
160
|
+
```
|
161
|
+
|
162
|
+
#### Using the get_well_known_json_web_keys_with_http_info variant
|
163
|
+
|
164
|
+
This returns an Array which contains the response data, status code and headers.
|
165
|
+
|
166
|
+
> <Array(<JsonWebKeySet>, Integer, Hash)> get_well_known_json_web_keys_with_http_info
|
167
|
+
|
168
|
+
```ruby
|
169
|
+
begin
|
170
|
+
# Lists cryptographic keys
|
171
|
+
data, status_code, headers = api_instance.get_well_known_json_web_keys_with_http_info
|
172
|
+
p status_code # => 2xx
|
173
|
+
p headers # => { ... }
|
174
|
+
p data # => <JsonWebKeySet>
|
175
|
+
rescue OryHydraClient::ApiError => e
|
176
|
+
puts "Error when calling ApiApi->get_well_known_json_web_keys_with_http_info: #{e}"
|
125
177
|
end
|
126
178
|
```
|
127
179
|
|
@@ -145,40 +197,57 @@ No authorization required
|
|
145
197
|
|
146
198
|
## list_rules
|
147
199
|
|
148
|
-
> Array
|
200
|
+
> <Array<Rule>> list_rules(opts)
|
149
201
|
|
150
202
|
List all rules
|
151
203
|
|
152
204
|
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.
|
153
205
|
|
154
|
-
###
|
206
|
+
### Examples
|
155
207
|
|
156
208
|
```ruby
|
157
|
-
|
209
|
+
require 'time'
|
158
210
|
require 'ory-oathkeeper-client'
|
159
211
|
|
160
212
|
api_instance = OryHydraClient::ApiApi.new
|
161
213
|
opts = {
|
162
|
-
limit:
|
163
|
-
offset:
|
214
|
+
limit: 789, # Integer | The maximum amount of rules returned.
|
215
|
+
offset: 789 # Integer | The offset from where to start looking.
|
164
216
|
}
|
165
217
|
|
166
218
|
begin
|
167
|
-
#List all rules
|
219
|
+
# List all rules
|
168
220
|
result = api_instance.list_rules(opts)
|
169
221
|
p result
|
170
222
|
rescue OryHydraClient::ApiError => e
|
171
|
-
puts "
|
223
|
+
puts "Error when calling ApiApi->list_rules: #{e}"
|
172
224
|
end
|
173
225
|
```
|
174
226
|
|
175
|
-
|
227
|
+
#### Using the list_rules_with_http_info variant
|
176
228
|
|
229
|
+
This returns an Array which contains the response data, status code and headers.
|
230
|
+
|
231
|
+
> <Array(<Array<Rule>>, Integer, Hash)> list_rules_with_http_info(opts)
|
232
|
+
|
233
|
+
```ruby
|
234
|
+
begin
|
235
|
+
# List all rules
|
236
|
+
data, status_code, headers = api_instance.list_rules_with_http_info(opts)
|
237
|
+
p status_code # => 2xx
|
238
|
+
p headers # => { ... }
|
239
|
+
p data # => <Array<Rule>>
|
240
|
+
rescue OryHydraClient::ApiError => e
|
241
|
+
puts "Error when calling ApiApi->list_rules_with_http_info: #{e}"
|
242
|
+
end
|
243
|
+
```
|
244
|
+
|
245
|
+
### Parameters
|
177
246
|
|
178
|
-
Name | Type | Description
|
179
|
-
|
180
|
-
**limit** | **Integer
|
181
|
-
**offset** | **Integer
|
247
|
+
| Name | Type | Description | Notes |
|
248
|
+
| ---- | ---- | ----------- | ----- |
|
249
|
+
| **limit** | **Integer** | The maximum amount of rules returned. | [optional] |
|
250
|
+
| **offset** | **Integer** | The offset from where to start looking. | [optional] |
|
182
251
|
|
183
252
|
### Return type
|
184
253
|
|
data/docs/CreateRuleCreated.md
CHANGED
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**payload** | [**SwaggerRule**](SwaggerRule.md) | | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **payload** | [**SwaggerRule**](SwaggerRule.md) | | [optional] |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'ory-oathkeeper-client'
|
13
13
|
|
14
|
-
instance = OryHydraClient::CreateRuleCreated.new(
|
14
|
+
instance = OryHydraClient::CreateRuleCreated.new(
|
15
|
+
payload: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
data/docs/CreateRuleForbidden.md
CHANGED
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**payload** | [**CreateRuleForbiddenBody**](CreateRuleForbiddenBody.md) | | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **payload** | [**CreateRuleForbiddenBody**](CreateRuleForbiddenBody.md) | | [optional] |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'ory-oathkeeper-client'
|
13
13
|
|
14
|
-
instance = OryHydraClient::CreateRuleForbidden.new(
|
14
|
+
instance = OryHydraClient::CreateRuleForbidden.new(
|
15
|
+
payload: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
@@ -2,26 +2,27 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**code** | **Integer** | code | [optional]
|
8
|
-
**details** | **Array<
|
9
|
-
**message** | **String** | message | [optional]
|
10
|
-
**reason** | **String** | reason | [optional]
|
11
|
-
**request** | **String** | request | [optional]
|
12
|
-
**status** | **String** | status | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **Integer** | code | [optional] |
|
8
|
+
| **details** | **Array<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
|
+
## Example
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
require '
|
17
|
+
require 'ory-oathkeeper-client'
|
18
18
|
|
19
|
-
instance = OryHydraClient::CreateRuleForbiddenBody.new(
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
instance = OryHydraClient::CreateRuleForbiddenBody.new(
|
20
|
+
code: null,
|
21
|
+
details: null,
|
22
|
+
message: null,
|
23
|
+
reason: null,
|
24
|
+
request: null,
|
25
|
+
status: null
|
26
|
+
)
|
25
27
|
```
|
26
28
|
|
27
|
-
|
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**payload** | [**CreateRuleInternalServerErrorBody**](CreateRuleInternalServerErrorBody.md) | | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **payload** | [**CreateRuleInternalServerErrorBody**](CreateRuleInternalServerErrorBody.md) | | [optional] |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'ory-oathkeeper-client'
|
13
13
|
|
14
|
-
instance = OryHydraClient::CreateRuleInternalServerError.new(
|
14
|
+
instance = OryHydraClient::CreateRuleInternalServerError.new(
|
15
|
+
payload: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
@@ -2,26 +2,27 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**code** | **Integer** | code | [optional]
|
8
|
-
**details** | **Array<
|
9
|
-
**message** | **String** | message | [optional]
|
10
|
-
**reason** | **String** | reason | [optional]
|
11
|
-
**request** | **String** | request | [optional]
|
12
|
-
**status** | **String** | status | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **Integer** | code | [optional] |
|
8
|
+
| **details** | **Array<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
|
+
## Example
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
require '
|
17
|
+
require 'ory-oathkeeper-client'
|
18
18
|
|
19
|
-
instance = OryHydraClient::CreateRuleInternalServerErrorBody.new(
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
instance = OryHydraClient::CreateRuleInternalServerErrorBody.new(
|
20
|
+
code: null,
|
21
|
+
details: null,
|
22
|
+
message: null,
|
23
|
+
reason: null,
|
24
|
+
request: null,
|
25
|
+
status: null
|
26
|
+
)
|
25
27
|
```
|
26
28
|
|
27
|
-
|