ory-oathkeeper-client 0.38.14.beta1 → 0.38.15.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -25
  3. data/docs/ApiApi.md +22 -22
  4. data/docs/CreateRuleCreated.md +2 -2
  5. data/docs/CreateRuleForbidden.md +2 -2
  6. data/docs/CreateRuleForbiddenBody.md +2 -2
  7. data/docs/CreateRuleInternalServerError.md +2 -2
  8. data/docs/CreateRuleInternalServerErrorBody.md +2 -2
  9. data/docs/CreateRuleUnauthorized.md +2 -2
  10. data/docs/CreateRuleUnauthorizedBody.md +2 -2
  11. data/docs/DecisionsForbidden.md +2 -2
  12. data/docs/DecisionsForbiddenBody.md +2 -2
  13. data/docs/DecisionsInternalServerError.md +2 -2
  14. data/docs/DecisionsInternalServerErrorBody.md +2 -2
  15. data/docs/DecisionsNotFound.md +2 -2
  16. data/docs/DecisionsNotFoundBody.md +2 -2
  17. data/docs/DecisionsUnauthorized.md +2 -2
  18. data/docs/DecisionsUnauthorizedBody.md +2 -2
  19. data/docs/DeleteRuleForbidden.md +2 -2
  20. data/docs/DeleteRuleForbiddenBody.md +2 -2
  21. data/docs/DeleteRuleInternalServerError.md +2 -2
  22. data/docs/DeleteRuleInternalServerErrorBody.md +2 -2
  23. data/docs/DeleteRuleNotFound.md +2 -2
  24. data/docs/DeleteRuleNotFoundBody.md +2 -2
  25. data/docs/DeleteRuleUnauthorized.md +2 -2
  26. data/docs/DeleteRuleUnauthorizedBody.md +2 -2
  27. data/docs/GetRuleForbidden.md +2 -2
  28. data/docs/GetRuleForbiddenBody.md +2 -2
  29. data/docs/GetRuleInternalServerError.md +2 -2
  30. data/docs/GetRuleInternalServerErrorBody.md +2 -2
  31. data/docs/GetRuleNotFound.md +2 -2
  32. data/docs/GetRuleNotFoundBody.md +2 -2
  33. data/docs/GetRuleOK.md +2 -2
  34. data/docs/GetRuleUnauthorized.md +2 -2
  35. data/docs/GetRuleUnauthorizedBody.md +2 -2
  36. data/docs/GetWellKnownForbidden.md +2 -2
  37. data/docs/GetWellKnownForbiddenBody.md +2 -2
  38. data/docs/GetWellKnownJSONWebKeysInternalServerError.md +2 -2
  39. data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +2 -2
  40. data/docs/GetWellKnownJSONWebKeysOK.md +2 -2
  41. data/docs/GetWellKnownOK.md +2 -2
  42. data/docs/GetWellKnownUnauthorized.md +2 -2
  43. data/docs/GetWellKnownUnauthorizedBody.md +2 -2
  44. data/docs/HealthNotReadyStatus.md +2 -2
  45. data/docs/HealthStatus.md +2 -2
  46. data/docs/InlineResponse500.md +2 -2
  47. data/docs/IsInstanceAliveInternalServerError.md +2 -2
  48. data/docs/IsInstanceAliveInternalServerErrorBody.md +2 -2
  49. data/docs/IsInstanceAliveOK.md +2 -2
  50. data/docs/JsonWebKey.md +2 -2
  51. data/docs/JsonWebKeySet.md +2 -2
  52. data/docs/JudgeForbidden.md +2 -2
  53. data/docs/JudgeForbiddenBody.md +2 -2
  54. data/docs/JudgeInternalServerError.md +2 -2
  55. data/docs/JudgeInternalServerErrorBody.md +2 -2
  56. data/docs/JudgeNotFound.md +2 -2
  57. data/docs/JudgeNotFoundBody.md +2 -2
  58. data/docs/JudgeUnauthorized.md +2 -2
  59. data/docs/JudgeUnauthorizedBody.md +2 -2
  60. data/docs/ListRulesForbidden.md +2 -2
  61. data/docs/ListRulesForbiddenBody.md +2 -2
  62. data/docs/ListRulesInternalServerError.md +2 -2
  63. data/docs/ListRulesInternalServerErrorBody.md +2 -2
  64. data/docs/ListRulesOK.md +2 -2
  65. data/docs/ListRulesUnauthorized.md +2 -2
  66. data/docs/ListRulesUnauthorizedBody.md +2 -2
  67. data/docs/Rule.md +2 -2
  68. data/docs/RuleHandler.md +2 -2
  69. data/docs/RuleMatch.md +2 -2
  70. data/docs/SwaggerCreateRuleParameters.md +2 -2
  71. data/docs/SwaggerGetRuleParameters.md +2 -2
  72. data/docs/SwaggerHealthStatus.md +2 -2
  73. data/docs/SwaggerJSONWebKey.md +2 -2
  74. data/docs/SwaggerJSONWebKeySet.md +2 -2
  75. data/docs/SwaggerListRulesParameters.md +2 -2
  76. data/docs/SwaggerNotReadyStatus.md +2 -2
  77. data/docs/SwaggerRule.md +2 -2
  78. data/docs/SwaggerRuleHandler.md +2 -2
  79. data/docs/SwaggerRuleMatch.md +2 -2
  80. data/docs/SwaggerRuleResponse.md +2 -2
  81. data/docs/SwaggerRulesResponse.md +2 -2
  82. data/docs/SwaggerUpdateRuleParameters.md +2 -2
  83. data/docs/SwaggerVersion.md +2 -2
  84. data/docs/UpdateRuleForbidden.md +2 -2
  85. data/docs/UpdateRuleForbiddenBody.md +2 -2
  86. data/docs/UpdateRuleInternalServerError.md +2 -2
  87. data/docs/UpdateRuleInternalServerErrorBody.md +2 -2
  88. data/docs/UpdateRuleNotFound.md +2 -2
  89. data/docs/UpdateRuleNotFoundBody.md +2 -2
  90. data/docs/UpdateRuleOK.md +2 -2
  91. data/docs/UpdateRuleUnauthorized.md +2 -2
  92. data/docs/UpdateRuleUnauthorizedBody.md +2 -2
  93. data/docs/Upstream.md +2 -2
  94. data/docs/Version.md +2 -2
  95. data/lib/ory-oathkeeper-client/api/api_api.rb +3 -3
  96. data/lib/ory-oathkeeper-client/api_client.rb +4 -4
  97. data/lib/ory-oathkeeper-client/api_error.rb +3 -3
  98. data/lib/ory-oathkeeper-client/configuration.rb +3 -3
  99. data/lib/ory-oathkeeper-client/models/create_rule_created.rb +6 -6
  100. data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +6 -6
  101. data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +6 -6
  102. data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +6 -6
  103. data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +6 -6
  104. data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +6 -6
  105. data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +6 -6
  106. data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +6 -6
  107. data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +6 -6
  108. data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +6 -6
  109. data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +6 -6
  110. data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +6 -6
  111. data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +6 -6
  112. data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +6 -6
  113. data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +6 -6
  114. data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +6 -6
  115. data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +6 -6
  116. data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +6 -6
  117. data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +6 -6
  118. data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +6 -6
  119. data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +6 -6
  120. data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +6 -6
  121. data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +6 -6
  122. data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +6 -6
  123. data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +6 -6
  124. data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +6 -6
  125. data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +6 -6
  126. data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +6 -6
  127. data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +6 -6
  128. data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +6 -6
  129. data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +6 -6
  130. data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +6 -6
  131. data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +6 -6
  132. data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +6 -6
  133. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +6 -6
  134. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +6 -6
  135. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +6 -6
  136. data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +6 -6
  137. data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +6 -6
  138. data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +6 -6
  139. data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +6 -6
  140. data/lib/ory-oathkeeper-client/models/health_status.rb +6 -6
  141. data/lib/ory-oathkeeper-client/models/inline_response500.rb +6 -6
  142. data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +6 -6
  143. data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +6 -6
  144. data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +6 -6
  145. data/lib/ory-oathkeeper-client/models/json_web_key.rb +6 -6
  146. data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +6 -6
  147. data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +6 -6
  148. data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +6 -6
  149. data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +6 -6
  150. data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +6 -6
  151. data/lib/ory-oathkeeper-client/models/judge_not_found.rb +6 -6
  152. data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +6 -6
  153. data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +6 -6
  154. data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +6 -6
  155. data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +6 -6
  156. data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +6 -6
  157. data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +6 -6
  158. data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +6 -6
  159. data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +6 -6
  160. data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +6 -6
  161. data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +6 -6
  162. data/lib/ory-oathkeeper-client/models/rule.rb +6 -6
  163. data/lib/ory-oathkeeper-client/models/rule_handler.rb +6 -6
  164. data/lib/ory-oathkeeper-client/models/rule_match.rb +6 -6
  165. data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +6 -6
  166. data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +6 -6
  167. data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +6 -6
  168. data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +6 -6
  169. data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +6 -6
  170. data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +6 -6
  171. data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +6 -6
  172. data/lib/ory-oathkeeper-client/models/swagger_rule.rb +6 -6
  173. data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +6 -6
  174. data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +6 -6
  175. data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +6 -6
  176. data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +6 -6
  177. data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +6 -6
  178. data/lib/ory-oathkeeper-client/models/swagger_version.rb +6 -6
  179. data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +6 -6
  180. data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +6 -6
  181. data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +6 -6
  182. data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +6 -6
  183. data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +6 -6
  184. data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +6 -6
  185. data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +6 -6
  186. data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +6 -6
  187. data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +6 -6
  188. data/lib/ory-oathkeeper-client/models/upstream.rb +6 -6
  189. data/lib/ory-oathkeeper-client/models/version.rb +6 -6
  190. data/lib/ory-oathkeeper-client/version.rb +4 -4
  191. data/lib/ory-oathkeeper-client.rb +4 -4
  192. data/ory-oathkeeper-client.gemspec +3 -3
  193. data/spec/api_client_spec.rb +31 -31
  194. data/spec/configuration_spec.rb +5 -5
  195. data/spec/spec_helper.rb +2 -2
  196. metadata +2 -2
@@ -3,13 +3,13 @@
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: 0.38.14.beta1
6
+ The version of the OpenAPI document: 0.38.15.beta1
7
7
  Contact: hi@ory.am
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.1
9
+ OpenAPI Generator version: 5.2.1
10
10
 
11
11
  =end
12
12
 
13
- module OryHydraClient
14
- VERSION = '0.38.14.beta1'
13
+ module OryOathkeeperClient
14
+ VERSION = '0.38.15.beta1'
15
15
  end
@@ -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: v0.38.14-beta.1
6
+ The version of the OpenAPI document: v0.38.15-beta.1
7
7
  Contact: hi@ory.am
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.1
9
+ OpenAPI Generator version: 5.2.1
10
10
 
11
11
  =end
12
12
 
@@ -31,10 +31,10 @@ require 'ory-oathkeeper-client/models/version'
31
31
  # APIs
32
32
  require 'ory-oathkeeper-client/api/api_api'
33
33
 
34
- module OryHydraClient
34
+ module OryOathkeeperClient
35
35
  class << self
36
36
  # Customize default settings for the SDK using block.
37
- # OryHydraClient.configure do |config|
37
+ # OryOathkeeperClient.configure do |config|
38
38
  # config.username = "xxx"
39
39
  # config.password = "xxx"
40
40
  # end
@@ -5,10 +5,10 @@
5
5
 
6
6
  #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.
7
7
 
8
- The version of the OpenAPI document: v0.38.14-beta.1
8
+ The version of the OpenAPI document: v0.38.15-beta.1
9
9
  Contact: hi@ory.am
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 5.1.1
11
+ OpenAPI Generator version: 5.2.1
12
12
 
13
13
  =end
14
14
 
@@ -17,7 +17,7 @@ require "ory-oathkeeper-client/version"
17
17
 
18
18
  Gem::Specification.new do |s|
19
19
  s.name = "ory-oathkeeper-client"
20
- s.version = OryHydraClient::VERSION
20
+ s.version = OryOathkeeperClient::VERSION
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["ORY GmbH"]
23
23
  s.email = ["opensource@ory.sh"]
@@ -3,60 +3,60 @@
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: v0.38.14-beta.1
6
+ The version of the OpenAPI document: v0.38.15-beta.1
7
7
  Contact: hi@ory.am
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.1
9
+ OpenAPI Generator version: 5.2.1
10
10
 
11
11
  =end
12
12
 
13
13
  require 'spec_helper'
14
14
 
15
- describe OryHydraClient::ApiClient do
15
+ describe OryOathkeeperClient::ApiClient do
16
16
  context 'initialization' do
17
17
  context 'URL stuff' do
18
18
  context 'host' do
19
19
  it 'removes http from host' do
20
- OryHydraClient.configure { |c| c.host = 'http://example.com' }
21
- expect(OryHydraClient::Configuration.default.host).to eq('example.com')
20
+ OryOathkeeperClient.configure { |c| c.host = 'http://example.com' }
21
+ expect(OryOathkeeperClient::Configuration.default.host).to eq('example.com')
22
22
  end
23
23
 
24
24
  it 'removes https from host' do
25
- OryHydraClient.configure { |c| c.host = 'https://wookiee.com' }
26
- expect(OryHydraClient::ApiClient.default.config.host).to eq('wookiee.com')
25
+ OryOathkeeperClient.configure { |c| c.host = 'https://wookiee.com' }
26
+ expect(OryOathkeeperClient::ApiClient.default.config.host).to eq('wookiee.com')
27
27
  end
28
28
 
29
29
  it 'removes trailing path from host' do
30
- OryHydraClient.configure { |c| c.host = 'hobo.com/v4' }
31
- expect(OryHydraClient::Configuration.default.host).to eq('hobo.com')
30
+ OryOathkeeperClient.configure { |c| c.host = 'hobo.com/v4' }
31
+ expect(OryOathkeeperClient::Configuration.default.host).to eq('hobo.com')
32
32
  end
33
33
  end
34
34
 
35
35
  context 'base_path' do
36
36
  it "prepends a slash to base_path" do
37
- OryHydraClient.configure { |c| c.base_path = 'v4/dog' }
38
- expect(OryHydraClient::Configuration.default.base_path).to eq('/v4/dog')
37
+ OryOathkeeperClient.configure { |c| c.base_path = 'v4/dog' }
38
+ expect(OryOathkeeperClient::Configuration.default.base_path).to eq('/v4/dog')
39
39
  end
40
40
 
41
41
  it "doesn't prepend a slash if one is already there" do
42
- OryHydraClient.configure { |c| c.base_path = '/v4/dog' }
43
- expect(OryHydraClient::Configuration.default.base_path).to eq('/v4/dog')
42
+ OryOathkeeperClient.configure { |c| c.base_path = '/v4/dog' }
43
+ expect(OryOathkeeperClient::Configuration.default.base_path).to eq('/v4/dog')
44
44
  end
45
45
 
46
46
  it "ends up as a blank string if nil" do
47
- OryHydraClient.configure { |c| c.base_path = nil }
48
- expect(OryHydraClient::Configuration.default.base_path).to eq('')
47
+ OryOathkeeperClient.configure { |c| c.base_path = nil }
48
+ expect(OryOathkeeperClient::Configuration.default.base_path).to eq('')
49
49
  end
50
50
  end
51
51
  end
52
52
  end
53
53
 
54
54
  describe 'params_encoding in #build_request' do
55
- let(:config) { OryHydraClient::Configuration.new }
56
- let(:api_client) { OryHydraClient::ApiClient.new(config) }
55
+ let(:config) { OryOathkeeperClient::Configuration.new }
56
+ let(:api_client) { OryOathkeeperClient::ApiClient.new(config) }
57
57
 
58
58
  it 'defaults to nil' do
59
- expect(OryHydraClient::Configuration.default.params_encoding).to eq(nil)
59
+ expect(OryOathkeeperClient::Configuration.default.params_encoding).to eq(nil)
60
60
  expect(config.params_encoding).to eq(nil)
61
61
 
62
62
  request = api_client.build_request(:get, '/test')
@@ -71,11 +71,11 @@ describe OryHydraClient::ApiClient do
71
71
  end
72
72
 
73
73
  describe 'timeout in #build_request' do
74
- let(:config) { OryHydraClient::Configuration.new }
75
- let(:api_client) { OryHydraClient::ApiClient.new(config) }
74
+ let(:config) { OryOathkeeperClient::Configuration.new }
75
+ let(:api_client) { OryOathkeeperClient::ApiClient.new(config) }
76
76
 
77
77
  it 'defaults to 0' do
78
- expect(OryHydraClient::Configuration.default.timeout).to eq(0)
78
+ expect(OryOathkeeperClient::Configuration.default.timeout).to eq(0)
79
79
  expect(config.timeout).to eq(0)
80
80
 
81
81
  request = api_client.build_request(:get, '/test')
@@ -91,7 +91,7 @@ describe OryHydraClient::ApiClient do
91
91
 
92
92
  describe '#deserialize' do
93
93
  it "handles Array<Integer>" do
94
- api_client = OryHydraClient::ApiClient.new
94
+ api_client = OryOathkeeperClient::ApiClient.new
95
95
  headers = { 'Content-Type' => 'application/json' }
96
96
  response = double('response', headers: headers, body: '[12, 34]')
97
97
  data = api_client.deserialize(response, 'Array<Integer>')
@@ -100,7 +100,7 @@ describe OryHydraClient::ApiClient do
100
100
  end
101
101
 
102
102
  it 'handles Array<Array<Integer>>' do
103
- api_client = OryHydraClient::ApiClient.new
103
+ api_client = OryOathkeeperClient::ApiClient.new
104
104
  headers = { 'Content-Type' => 'application/json' }
105
105
  response = double('response', headers: headers, body: '[[12, 34], [56]]')
106
106
  data = api_client.deserialize(response, 'Array<Array<Integer>>')
@@ -109,7 +109,7 @@ describe OryHydraClient::ApiClient do
109
109
  end
110
110
 
111
111
  it 'handles Hash<String, String>' do
112
- api_client = OryHydraClient::ApiClient.new
112
+ api_client = OryOathkeeperClient::ApiClient.new
113
113
  headers = { 'Content-Type' => 'application/json' }
114
114
  response = double('response', headers: headers, body: '{"message": "Hello"}')
115
115
  data = api_client.deserialize(response, 'Hash<String, String>')
@@ -121,8 +121,8 @@ describe OryHydraClient::ApiClient do
121
121
  describe "#object_to_hash" do
122
122
  it 'ignores nils and includes empty arrays' do
123
123
  # uncomment below to test object_to_hash for model
124
- # api_client = OryHydraClient::ApiClient.new
125
- # _model = OryHydraClient::ModelName.new
124
+ # api_client = OryOathkeeperClient::ApiClient.new
125
+ # _model = OryOathkeeperClient::ModelName.new
126
126
  # update the model attribute below
127
127
  # _model.id = 1
128
128
  # update the expected value (hash) below
@@ -133,7 +133,7 @@ describe OryHydraClient::ApiClient do
133
133
 
134
134
  describe '#build_collection_param' do
135
135
  let(:param) { ['aa', 'bb', 'cc'] }
136
- let(:api_client) { OryHydraClient::ApiClient.new }
136
+ let(:api_client) { OryOathkeeperClient::ApiClient.new }
137
137
 
138
138
  it 'works for csv' do
139
139
  expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
@@ -161,7 +161,7 @@ describe OryHydraClient::ApiClient do
161
161
  end
162
162
 
163
163
  describe '#json_mime?' do
164
- let(:api_client) { OryHydraClient::ApiClient.new }
164
+ let(:api_client) { OryOathkeeperClient::ApiClient.new }
165
165
 
166
166
  it 'works' do
167
167
  expect(api_client.json_mime?(nil)).to eq false
@@ -178,7 +178,7 @@ describe OryHydraClient::ApiClient do
178
178
  end
179
179
 
180
180
  describe '#select_header_accept' do
181
- let(:api_client) { OryHydraClient::ApiClient.new }
181
+ let(:api_client) { OryOathkeeperClient::ApiClient.new }
182
182
 
183
183
  it 'works' do
184
184
  expect(api_client.select_header_accept(nil)).to be_nil
@@ -194,7 +194,7 @@ describe OryHydraClient::ApiClient do
194
194
  end
195
195
 
196
196
  describe '#select_header_content_type' do
197
- let(:api_client) { OryHydraClient::ApiClient.new }
197
+ let(:api_client) { OryOathkeeperClient::ApiClient.new }
198
198
 
199
199
  it 'works' do
200
200
  expect(api_client.select_header_content_type(nil)).to eq('application/json')
@@ -209,7 +209,7 @@ describe OryHydraClient::ApiClient do
209
209
  end
210
210
 
211
211
  describe '#sanitize_filename' do
212
- let(:api_client) { OryHydraClient::ApiClient.new }
212
+ let(:api_client) { OryOathkeeperClient::ApiClient.new }
213
213
 
214
214
  it 'works' do
215
215
  expect(api_client.sanitize_filename('sun')).to eq('sun')
@@ -3,23 +3,23 @@
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: v0.38.14-beta.1
6
+ The version of the OpenAPI document: v0.38.15-beta.1
7
7
  Contact: hi@ory.am
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.1
9
+ OpenAPI Generator version: 5.2.1
10
10
 
11
11
  =end
12
12
 
13
13
  require 'spec_helper'
14
14
 
15
- describe OryHydraClient::Configuration do
16
- let(:config) { OryHydraClient::Configuration.default }
15
+ describe OryOathkeeperClient::Configuration do
16
+ let(:config) { OryOathkeeperClient::Configuration.default }
17
17
 
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
21
  # uri = URI.parse("http://localhost")
22
- # OryHydraClient.configure do |c|
22
+ # OryOathkeeperClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
25
25
  # end
data/spec/spec_helper.rb CHANGED
@@ -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: v0.38.14-beta.1
6
+ The version of the OpenAPI document: v0.38.15-beta.1
7
7
  Contact: hi@ory.am
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.1
9
+ OpenAPI Generator version: 5.2.1
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ory-oathkeeper-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.14.beta1
4
+ version: 0.38.15.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ORY GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-14 00:00:00.000000000 Z
11
+ date: 2021-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus