ory-client 0.0.1.alpha14 → 0.0.1.alpha18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (279) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +144 -150
  3. data/docs/AdminCreateIdentityBody.md +20 -0
  4. data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +20 -0
  5. data/docs/AdminUpdateIdentityBody.md +22 -0
  6. data/docs/AuthenticateOKBody.md +2 -2
  7. data/docs/AuthenticatorAssuranceLevel.md +15 -0
  8. data/docs/ContainerChangeResponseItem.md +2 -2
  9. data/docs/ContainerCreateCreatedBody.md +2 -2
  10. data/docs/ContainerTopOKBody.md +2 -2
  11. data/docs/ContainerUpdateOKBody.md +2 -2
  12. data/docs/ContainerWaitOKBody.md +2 -2
  13. data/docs/ContainerWaitOKBodyError.md +2 -2
  14. data/docs/ErrorResponse.md +2 -2
  15. data/docs/GenericError.md +3 -3
  16. data/docs/GraphDriverData.md +2 -2
  17. data/docs/HealthNotReadyStatus.md +2 -2
  18. data/docs/HealthStatus.md +2 -2
  19. data/docs/IdResponse.md +2 -2
  20. data/docs/Identity.md +8 -2
  21. data/docs/IdentityCredentials.md +3 -3
  22. data/docs/IdentityCredentialsType.md +15 -0
  23. data/docs/IdentityState.md +15 -0
  24. data/docs/ImageDeleteResponseItem.md +2 -2
  25. data/docs/ImageSummary.md +2 -2
  26. data/docs/InlineResponse200.md +2 -2
  27. data/docs/InlineResponse2001.md +2 -2
  28. data/docs/InlineResponse503.md +2 -2
  29. data/docs/JsonError.md +2 -2
  30. data/docs/Meta.md +2 -2
  31. data/docs/MetadataApi.md +254 -0
  32. data/docs/Plugin.md +2 -2
  33. data/docs/PluginConfig.md +2 -2
  34. data/docs/PluginConfigArgs.md +2 -2
  35. data/docs/PluginConfigInterface.md +2 -2
  36. data/docs/PluginConfigLinux.md +2 -2
  37. data/docs/PluginConfigNetwork.md +2 -2
  38. data/docs/PluginConfigRootfs.md +2 -2
  39. data/docs/PluginConfigUser.md +2 -2
  40. data/docs/PluginDevice.md +2 -2
  41. data/docs/PluginEnv.md +2 -2
  42. data/docs/PluginInterfaceType.md +2 -2
  43. data/docs/PluginMount.md +2 -2
  44. data/docs/PluginSettings.md +2 -2
  45. data/docs/Port.md +2 -2
  46. data/docs/RecoveryAddress.md +2 -2
  47. data/docs/SelfServiceError.md +24 -0
  48. data/docs/SelfServiceLoginFlow.md +38 -0
  49. data/docs/SelfServiceLogoutUrl.md +18 -0
  50. data/docs/SelfServiceRecoveryFlow.md +32 -0
  51. data/docs/SelfServiceRecoveryFlowState.md +15 -0
  52. data/docs/SelfServiceRecoveryLink.md +20 -0
  53. data/docs/SelfServiceRegistrationFlow.md +30 -0
  54. data/docs/SelfServiceSettingsFlow.md +34 -0
  55. data/docs/SelfServiceSettingsFlowState.md +15 -0
  56. data/docs/SelfServiceVerificationFlow.md +32 -0
  57. data/docs/SelfServiceVerificationFlowState.md +15 -0
  58. data/docs/ServiceUpdateResponse.md +2 -2
  59. data/docs/Session.md +10 -6
  60. data/docs/SessionAuthenticationMethod.md +20 -0
  61. data/docs/SessionDevice.md +18 -0
  62. data/docs/SettingsProfileFormConfig.md +2 -2
  63. data/docs/SubmitSelfServiceLoginFlowBody.md +81 -0
  64. data/docs/SubmitSelfServiceLoginFlowWithLookupSecretMethodBody.md +22 -0
  65. data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +22 -0
  66. data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +24 -0
  67. data/docs/SubmitSelfServiceLoginFlowWithTotpMethodBody.md +22 -0
  68. data/docs/SubmitSelfServiceLoginFlowWithWebAuthnMethodBody.md +22 -0
  69. data/docs/SubmitSelfServiceLogoutFlowWithoutBrowserBody.md +18 -0
  70. data/docs/SubmitSelfServiceRecoveryFlowBody.md +75 -0
  71. data/docs/SubmitSelfServiceRecoveryFlowWithLinkMethodBody.md +22 -0
  72. data/docs/SubmitSelfServiceRegistrationFlowBody.md +76 -0
  73. data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +22 -0
  74. data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.md +24 -0
  75. data/docs/SubmitSelfServiceSettingsFlowBody.md +84 -0
  76. data/docs/SubmitSelfServiceSettingsFlowWithLookupMethodBody.md +26 -0
  77. data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +24 -0
  78. data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethodBody.md +22 -0
  79. data/docs/SubmitSelfServiceSettingsFlowWithProfileMethodBody.md +22 -0
  80. data/docs/SubmitSelfServiceSettingsFlowWithTotpMethodBody.md +24 -0
  81. data/docs/SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody.md +26 -0
  82. data/docs/SubmitSelfServiceVerificationFlowBody.md +75 -0
  83. data/docs/SubmitSelfServiceVerificationFlowWithLinkMethodBody.md +22 -0
  84. data/docs/SuccessfulSelfServiceLoginWithoutBrowser.md +20 -0
  85. data/docs/SuccessfulSelfServiceRegistrationWithoutBrowser.md +22 -0
  86. data/docs/SuccessfulSelfServiceSettingsWithoutBrowser.md +20 -0
  87. data/docs/UiContainer.md +2 -2
  88. data/docs/UiNode.md +2 -2
  89. data/docs/UiNodeAnchorAttributes.md +4 -2
  90. data/docs/UiNodeAttributes.md +4 -4
  91. data/docs/UiNodeImageAttributes.md +9 -3
  92. data/docs/UiNodeInputAttributes.md +4 -2
  93. data/docs/UiNodeTextAttributes.md +4 -2
  94. data/docs/UiText.md +2 -2
  95. data/docs/V0alpha1Api.md +2184 -0
  96. data/docs/V0alpha2Api.md +2194 -0
  97. data/docs/VerifiableIdentityAddress.md +2 -2
  98. data/docs/Version.md +2 -2
  99. data/docs/Volume.md +2 -2
  100. data/docs/VolumeUsageData.md +2 -2
  101. data/lib/ory-client/api/default_api.rb +1 -1
  102. data/lib/ory-client/api/metadata_api.rb +248 -0
  103. data/lib/ory-client/api/v0alpha1_api.rb +2054 -0
  104. data/lib/ory-client/api/v0alpha2_api.rb +2069 -0
  105. data/lib/ory-client/api_client.rb +4 -4
  106. data/lib/ory-client/api_error.rb +3 -3
  107. data/lib/ory-client/configuration.rb +5 -19
  108. data/lib/ory-client/models/admin_create_identity_body.rb +239 -0
  109. data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +250 -0
  110. data/lib/ory-client/models/admin_update_identity_body.rb +248 -0
  111. data/lib/ory-client/models/authenticate_ok_body.rb +6 -6
  112. data/lib/ory-client/models/authenticator_assurance_level.rb +39 -0
  113. data/lib/ory-client/models/container_change_response_item.rb +6 -6
  114. data/lib/ory-client/models/container_create_created_body.rb +6 -6
  115. data/lib/ory-client/models/container_top_ok_body.rb +6 -6
  116. data/lib/ory-client/models/container_update_ok_body.rb +6 -6
  117. data/lib/ory-client/models/container_wait_ok_body.rb +6 -6
  118. data/lib/ory-client/models/container_wait_ok_body_error.rb +6 -6
  119. data/lib/ory-client/models/create_identity.rb +1 -1
  120. data/lib/ory-client/models/create_recovery_link.rb +1 -1
  121. data/lib/ory-client/models/error_response.rb +6 -6
  122. data/lib/ory-client/models/generic_error.rb +8 -10
  123. data/lib/ory-client/models/graph_driver_data.rb +6 -6
  124. data/lib/ory-client/models/health_not_ready_status.rb +6 -6
  125. data/lib/ory-client/models/health_status.rb +6 -6
  126. data/lib/ory-client/models/id_response.rb +6 -6
  127. data/lib/ory-client/models/identity.rb +37 -7
  128. data/lib/ory-client/models/identity_credentials.rb +7 -8
  129. data/lib/ory-client/models/identity_credentials_type.rb +38 -0
  130. data/lib/ory-client/models/identity_state.rb +37 -0
  131. data/lib/ory-client/models/image_delete_response_item.rb +6 -6
  132. data/lib/ory-client/models/image_summary.rb +6 -6
  133. data/lib/ory-client/models/inline_response200.rb +6 -6
  134. data/lib/ory-client/models/inline_response2001.rb +6 -6
  135. data/lib/ory-client/models/inline_response503.rb +6 -6
  136. data/lib/ory-client/models/json_error.rb +6 -6
  137. data/lib/ory-client/models/login_flow.rb +1 -1
  138. data/lib/ory-client/models/login_via_api_response.rb +1 -1
  139. data/lib/ory-client/models/meta.rb +6 -6
  140. data/lib/ory-client/models/plugin.rb +6 -6
  141. data/lib/ory-client/models/plugin_config.rb +6 -6
  142. data/lib/ory-client/models/plugin_config_args.rb +6 -6
  143. data/lib/ory-client/models/plugin_config_interface.rb +6 -6
  144. data/lib/ory-client/models/plugin_config_linux.rb +6 -6
  145. data/lib/ory-client/models/plugin_config_network.rb +6 -6
  146. data/lib/ory-client/models/plugin_config_rootfs.rb +6 -6
  147. data/lib/ory-client/models/plugin_config_user.rb +6 -6
  148. data/lib/ory-client/models/plugin_device.rb +6 -6
  149. data/lib/ory-client/models/plugin_env.rb +6 -6
  150. data/lib/ory-client/models/plugin_interface_type.rb +6 -6
  151. data/lib/ory-client/models/plugin_mount.rb +6 -6
  152. data/lib/ory-client/models/plugin_settings.rb +6 -6
  153. data/lib/ory-client/models/port.rb +6 -6
  154. data/lib/ory-client/models/recovery_address.rb +6 -6
  155. data/lib/ory-client/models/recovery_flow.rb +1 -1
  156. data/lib/ory-client/models/recovery_link.rb +1 -1
  157. data/lib/ory-client/models/registration_flow.rb +1 -1
  158. data/lib/ory-client/models/registration_via_api_response.rb +1 -1
  159. data/lib/ory-client/models/revoke_session.rb +1 -1
  160. data/lib/ory-client/models/self_service_error.rb +252 -0
  161. data/lib/ory-client/models/self_service_error_container.rb +1 -1
  162. data/lib/ory-client/models/self_service_login_flow.rb +346 -0
  163. data/lib/ory-client/models/self_service_logout_url.rb +219 -0
  164. data/lib/ory-client/models/self_service_recovery_flow.rb +317 -0
  165. data/lib/ory-client/models/self_service_recovery_flow_state.rb +38 -0
  166. data/lib/ory-client/models/self_service_recovery_link.rb +234 -0
  167. data/lib/ory-client/models/self_service_registration_flow.rb +301 -0
  168. data/lib/ory-client/models/self_service_settings_flow.rb +331 -0
  169. data/lib/ory-client/models/self_service_settings_flow_state.rb +37 -0
  170. data/lib/ory-client/models/self_service_verification_flow.rb +307 -0
  171. data/lib/ory-client/models/self_service_verification_flow_state.rb +38 -0
  172. data/lib/ory-client/models/service_update_response.rb +6 -6
  173. data/lib/ory-client/models/session.rb +33 -22
  174. data/lib/ory-client/models/session_authentication_method.rb +263 -0
  175. data/lib/ory-client/models/session_device.rb +219 -0
  176. data/lib/ory-client/models/settings_flow.rb +1 -1
  177. data/lib/ory-client/models/settings_profile_form_config.rb +6 -6
  178. data/lib/ory-client/models/settings_via_api_response.rb +1 -1
  179. data/lib/ory-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +1 -1
  180. data/lib/ory-client/models/submit_self_service_login_flow.rb +1 -1
  181. data/lib/ory-client/models/submit_self_service_login_flow_body.rb +57 -0
  182. data/lib/ory-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +249 -0
  183. data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +250 -0
  184. data/lib/ory-client/models/submit_self_service_login_flow_with_password_method.rb +1 -1
  185. data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +298 -0
  186. data/lib/ory-client/models/submit_self_service_login_flow_with_totp_method_body.rb +249 -0
  187. data/lib/ory-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +244 -0
  188. data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +225 -0
  189. data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +53 -0
  190. data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method.rb +1 -1
  191. data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +283 -0
  192. data/lib/ory-client/models/submit_self_service_registration_flow.rb +1 -1
  193. data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +54 -0
  194. data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +250 -0
  195. data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method.rb +1 -1
  196. data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +299 -0
  197. data/lib/ory-client/models/submit_self_service_settings_flow.rb +1 -1
  198. data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +59 -0
  199. data/lib/ory-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +264 -0
  200. data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +255 -0
  201. data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method.rb +1 -1
  202. data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +283 -0
  203. data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method.rb +1 -1
  204. data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +250 -0
  205. data/lib/ory-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +254 -0
  206. data/lib/ory-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +264 -0
  207. data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +54 -0
  208. data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method.rb +1 -1
  209. data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +283 -0
  210. data/lib/ory-client/models/successful_self_service_login_without_browser.rb +234 -0
  211. data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +243 -0
  212. data/lib/ory-client/models/successful_self_service_settings_without_browser.rb +238 -0
  213. data/lib/ory-client/models/ui_container.rb +6 -6
  214. data/lib/ory-client/models/ui_node.rb +6 -6
  215. data/lib/ory-client/models/ui_node_anchor_attributes.rb +22 -7
  216. data/lib/ory-client/models/ui_node_attributes.rb +4 -4
  217. data/lib/ory-client/models/ui_node_image_attributes.rb +45 -10
  218. data/lib/ory-client/models/ui_node_input_attributes.rb +17 -7
  219. data/lib/ory-client/models/ui_node_text_attributes.rb +22 -7
  220. data/lib/ory-client/models/ui_text.rb +6 -6
  221. data/lib/ory-client/models/update_identity.rb +1 -1
  222. data/lib/ory-client/models/verifiable_identity_address.rb +6 -6
  223. data/lib/ory-client/models/verification_flow.rb +1 -1
  224. data/lib/ory-client/models/version.rb +6 -6
  225. data/lib/ory-client/models/volume.rb +6 -6
  226. data/lib/ory-client/models/volume_usage_data.rb +6 -6
  227. data/lib/ory-client/version.rb +4 -4
  228. data/lib/ory-client.rb +48 -29
  229. data/ory-client.gemspec +3 -3
  230. data/spec/api/metadata_api_spec.rb +79 -0
  231. data/spec/api/v0alpha1_api_spec.rb +429 -0
  232. data/spec/api/v0alpha2_api_spec.rb +434 -0
  233. data/spec/api_client_spec.rb +31 -31
  234. data/spec/configuration_spec.rb +5 -5
  235. data/spec/models/admin_create_identity_body_spec.rb +40 -0
  236. data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +40 -0
  237. data/spec/models/admin_update_identity_body_spec.rb +46 -0
  238. data/spec/models/authenticator_assurance_level_spec.rb +28 -0
  239. data/spec/models/identity_credentials_type_spec.rb +28 -0
  240. data/spec/models/identity_state_spec.rb +28 -0
  241. data/spec/models/self_service_error_spec.rb +52 -0
  242. data/spec/models/self_service_login_flow_spec.rb +88 -0
  243. data/spec/models/self_service_logout_url_spec.rb +34 -0
  244. data/spec/models/self_service_recovery_flow_spec.rb +76 -0
  245. data/spec/models/self_service_recovery_flow_state_spec.rb +28 -0
  246. data/spec/models/self_service_recovery_link_spec.rb +40 -0
  247. data/spec/models/self_service_registration_flow_spec.rb +70 -0
  248. data/spec/models/self_service_settings_flow_spec.rb +82 -0
  249. data/spec/models/self_service_settings_flow_state_spec.rb +28 -0
  250. data/spec/models/self_service_verification_flow_spec.rb +76 -0
  251. data/spec/models/self_service_verification_flow_state_spec.rb +28 -0
  252. data/spec/models/session_authentication_method_spec.rb +44 -0
  253. data/spec/models/session_device_spec.rb +34 -0
  254. data/spec/models/submit_self_service_login_flow_body_spec.rb +43 -0
  255. data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +46 -0
  256. data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +46 -0
  257. data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +56 -0
  258. data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +46 -0
  259. data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +46 -0
  260. data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +34 -0
  261. data/spec/models/submit_self_service_recovery_flow_body_spec.rb +43 -0
  262. data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +50 -0
  263. data/spec/models/submit_self_service_registration_flow_body_spec.rb +43 -0
  264. data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +46 -0
  265. data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +56 -0
  266. data/spec/models/submit_self_service_settings_flow_body_spec.rb +43 -0
  267. data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +58 -0
  268. data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +52 -0
  269. data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +50 -0
  270. data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +46 -0
  271. data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +52 -0
  272. data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +58 -0
  273. data/spec/models/submit_self_service_verification_flow_body_spec.rb +43 -0
  274. data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +50 -0
  275. data/spec/models/successful_self_service_login_without_browser_spec.rb +40 -0
  276. data/spec/models/successful_self_service_registration_without_browser_spec.rb +46 -0
  277. data/spec/models/successful_self_service_settings_without_browser_spec.rb +40 -0
  278. data/spec/spec_helper.rb +2 -2
  279. metadata +186 -2
@@ -0,0 +1,434 @@
1
+ =begin
2
+ #Ory APIs
3
+
4
+ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
+
6
+ The version of the OpenAPI document: v0.0.1-alpha.18
7
+ Contact: support@ory.sh
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for OryClient::V0alpha2Api
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'V0alpha2Api' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = OryClient::V0alpha2Api.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of V0alpha2Api' do
30
+ it 'should create an instance of V0alpha2Api' do
31
+ expect(@api_instance).to be_instance_of(OryClient::V0alpha2Api)
32
+ end
33
+ end
34
+
35
+ # unit tests for admin_create_identity
36
+ # Create an Identity
37
+ # This endpoint creates an identity. It is NOT possible to set an identity's credentials (password, ...) using this method! A way to achieve that will be introduced in the future. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [AdminCreateIdentityBody] :admin_create_identity_body
40
+ # @return [Identity]
41
+ describe 'admin_create_identity test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for admin_create_self_service_recovery_link
48
+ # Create a Recovery Link
49
+ # This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account.
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [AdminCreateSelfServiceRecoveryLinkBody] :admin_create_self_service_recovery_link_body
52
+ # @return [SelfServiceRecoveryLink]
53
+ describe 'admin_create_self_service_recovery_link test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for admin_delete_identity
60
+ # Delete an Identity
61
+ # Calling this endpoint irrecoverably and permanently deletes the identity given its ID. This action can not be undone. This endpoint returns 204 when the identity was deleted or when the identity was not found, in which case it is assumed that is has been deleted already. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
62
+ # @param id ID is the identity's ID.
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [nil]
65
+ describe 'admin_delete_identity test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for admin_get_identity
72
+ # Get an Identity
73
+ # Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
74
+ # @param id ID must be set to the ID of identity you want to get
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [Identity]
77
+ describe 'admin_get_identity test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ # unit tests for admin_list_identities
84
+ # List Identities
85
+ # Lists all identities. Does not support search at the moment. Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
86
+ # @param [Hash] opts the optional parameters
87
+ # @option opts [Integer] :per_page Items per Page This is the number of items per page.
88
+ # @option opts [Integer] :page Pagination Page
89
+ # @return [Array<Identity>]
90
+ describe 'admin_list_identities test' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ end
94
+ end
95
+
96
+ # unit tests for admin_update_identity
97
+ # Update an Identity
98
+ # This endpoint updates an identity. It is NOT possible to set an identity&#39;s credentials (password, ...) using this method! A way to achieve that will be introduced in the future. The full identity payload (except credentials) is expected. This endpoint does not support patching. Learn how identities work in [Ory Kratos&#39; User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
99
+ # @param id ID must be set to the ID of identity you want to update
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [AdminUpdateIdentityBody] :admin_update_identity_body
102
+ # @return [Identity]
103
+ describe 'admin_update_identity test' do
104
+ it 'should work' do
105
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
106
+ end
107
+ end
108
+
109
+ # unit tests for create_self_service_logout_flow_url_for_browsers
110
+ # Create a Logout URL for Browsers
111
+ # This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the &#x60;/self-service/logout/api&#x60; URL directly with the Ory Session Token. The URL is only valid for the currently signed in user. If no user is signed in, this endpoint returns a 401 error. When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies.
112
+ # @param [Hash] opts the optional parameters
113
+ # @option opts [String] :cookie HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request.
114
+ # @return [SelfServiceLogoutUrl]
115
+ describe 'create_self_service_logout_flow_url_for_browsers test' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
118
+ end
119
+ end
120
+
121
+ # unit tests for get_json_schema
122
+ # Get a JSON Schema
123
+ # @param id ID must be set to the ID of schema you want to get
124
+ # @param [Hash] opts the optional parameters
125
+ # @return [Object]
126
+ describe 'get_json_schema test' do
127
+ it 'should work' do
128
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
129
+ end
130
+ end
131
+
132
+ # unit tests for get_self_service_error
133
+ # Get Self-Service Errors
134
+ # This endpoint returns the error associated with a user-facing self service errors. This endpoint supports stub values to help you implement the error UI: &#x60;?id&#x3D;stub:500&#x60; - returns a stub 500 (Internal Server Error) error. More information can be found at [Ory Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
135
+ # @param id Error is the error&#39;s ID
136
+ # @param [Hash] opts the optional parameters
137
+ # @return [SelfServiceError]
138
+ describe 'get_self_service_error test' do
139
+ it 'should work' do
140
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
141
+ end
142
+ end
143
+
144
+ # unit tests for get_self_service_login_flow
145
+ # Get Login Flow
146
+ # This endpoint returns a login flow&#39;s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request&#39;s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: &#x60;&#x60;&#x60;js pseudo-code example router.get(&#39;/login&#39;, async function (req, res) { const flow &#x3D; await client.getSelfServiceLoginFlow(req.header(&#39;cookie&#39;), req.query[&#39;flow&#39;]) res.render(&#39;login&#39;, flow) }) &#x60;&#x60;&#x60; More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
147
+ # @param id The Login Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?flow&#x3D;abcde&#x60;).
148
+ # @param [Hash] opts the optional parameters
149
+ # @option opts [String] :cookie HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
150
+ # @return [SelfServiceLoginFlow]
151
+ describe 'get_self_service_login_flow test' do
152
+ it 'should work' do
153
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
154
+ end
155
+ end
156
+
157
+ # unit tests for get_self_service_recovery_flow
158
+ # Get Recovery Flow
159
+ # This endpoint returns a recovery flow&#39;s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request&#39;s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: &#x60;&#x60;&#x60;js pseudo-code example router.get(&#39;/recovery&#39;, async function (req, res) { const flow &#x3D; await client.getSelfServiceRecoveryFlow(req.header(&#39;Cookie&#39;), req.query[&#39;flow&#39;]) res.render(&#39;recovery&#39;, flow) }) &#x60;&#x60;&#x60; More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
160
+ # @param id The Flow ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/recovery?flow&#x3D;abcde&#x60;).
161
+ # @param [Hash] opts the optional parameters
162
+ # @option opts [String] :cookie HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
163
+ # @return [SelfServiceRecoveryFlow]
164
+ describe 'get_self_service_recovery_flow test' do
165
+ it 'should work' do
166
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
167
+ end
168
+ end
169
+
170
+ # unit tests for get_self_service_registration_flow
171
+ # Get Registration Flow
172
+ # This endpoint returns a registration flow&#39;s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request&#39;s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: &#x60;&#x60;&#x60;js pseudo-code example router.get(&#39;/registration&#39;, async function (req, res) { const flow &#x3D; await client.getSelfServiceRegistrationFlow(req.header(&#39;cookie&#39;), req.query[&#39;flow&#39;]) res.render(&#39;registration&#39;, flow) }) &#x60;&#x60;&#x60; More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
173
+ # @param id The Registration Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?flow&#x3D;abcde&#x60;).
174
+ # @param [Hash] opts the optional parameters
175
+ # @option opts [String] :cookie HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
176
+ # @return [SelfServiceRegistrationFlow]
177
+ describe 'get_self_service_registration_flow test' do
178
+ it 'should work' do
179
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
180
+ end
181
+ end
182
+
183
+ # unit tests for get_self_service_settings_flow
184
+ # Get Settings Flow
185
+ # When accessing this endpoint through Ory Kratos&#39; Public API you must ensure that either the Ory Kratos Session Cookie or the Ory Kratos Session Token are set. The public endpoint does not return 404 status codes but instead 403 or 500 to improve data privacy. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. You can access this endpoint without credentials when using Ory Kratos&#39; Admin API. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
186
+ # @param id ID is the Settings Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/settings?flow&#x3D;abcde&#x60;).
187
+ # @param [Hash] opts the optional parameters
188
+ # @option opts [String] :x_session_token The Session Token When using the SDK in an app without a browser, please include the session token here.
189
+ # @option opts [String] :cookie HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here. You only need to do this for browser- based flows.
190
+ # @return [SelfServiceSettingsFlow]
191
+ describe 'get_self_service_settings_flow test' do
192
+ it 'should work' do
193
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
194
+ end
195
+ end
196
+
197
+ # unit tests for get_self_service_verification_flow
198
+ # Get Verification Flow
199
+ # This endpoint returns a verification flow&#39;s context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request&#39;s HTTP Cookie Header. For AJAX requests you must ensure that cookies are included in the request or requests will fail. If you use the browser-flow for server-side apps, the services need to run on a common top-level-domain and you need to forward the incoming HTTP Cookie header to this endpoint: &#x60;&#x60;&#x60;js pseudo-code example router.get(&#39;/recovery&#39;, async function (req, res) { const flow &#x3D; await client.getSelfServiceVerificationFlow(req.header(&#39;cookie&#39;), req.query[&#39;flow&#39;]) res.render(&#39;verification&#39;, flow) }) More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
200
+ # @param id The Flow ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/verification?flow&#x3D;abcde&#x60;).
201
+ # @param [Hash] opts the optional parameters
202
+ # @option opts [String] :cookie HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
203
+ # @return [SelfServiceVerificationFlow]
204
+ describe 'get_self_service_verification_flow test' do
205
+ it 'should work' do
206
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
207
+ end
208
+ end
209
+
210
+ # unit tests for initialize_self_service_login_flow_for_browsers
211
+ # Initialize Login Flow for Browsers
212
+ # This endpoint initializes a browser-based user login flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to &#x60;selfservice.flows.login.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If a valid user session exists already, the browser will be redirected to &#x60;urls.default_redirect_url&#x60; unless the query parameter &#x60;?refresh&#x3D;true&#x60; was set. If this endpoint is called via an AJAX request, the response contains the login flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
213
+ # @param [Hash] opts the optional parameters
214
+ # @option opts [Boolean] :refresh Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session.
215
+ # @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session&#39;s authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \&quot;upgrade\&quot; the session&#39;s security by asking the user to perform TOTP / WebAuth/ ... you would set this to \&quot;aal2\&quot;.
216
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
217
+ # @return [SelfServiceLoginFlow]
218
+ describe 'initialize_self_service_login_flow_for_browsers test' do
219
+ it 'should work' do
220
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
221
+ end
222
+ end
223
+
224
+ # unit tests for initialize_self_service_login_flow_without_browser
225
+ # Initialize Login Flow for APIs, Services, Apps, ...
226
+ # This endpoint initiates a login flow for API clients that do not use a browser, such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter &#x60;?refresh&#x3D;true&#x60; is set. To fetch an existing login flow call &#x60;/self-service/login/flows?flow&#x3D;&lt;flow_id&gt;&#x60;. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks, including CSRF login attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
227
+ # @param [Hash] opts the optional parameters
228
+ # @option opts [Boolean] :refresh Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session.
229
+ # @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session&#39;s authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \&quot;upgrade\&quot; the session&#39;s security by asking the user to perform TOTP / WebAuth/ ... you would set this to \&quot;aal2\&quot;.
230
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
231
+ # @return [SelfServiceLoginFlow]
232
+ describe 'initialize_self_service_login_flow_without_browser test' do
233
+ it 'should work' do
234
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
235
+ end
236
+ end
237
+
238
+ # unit tests for initialize_self_service_recovery_flow_for_browsers
239
+ # Initialize Recovery Flow for Browsers
240
+ # This endpoint initializes a browser-based account recovery flow. Once initialized, the browser will be redirected to &#x60;selfservice.flows.recovery.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If a valid user session exists, the browser is returned to the configured return URL. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects or a 400 bad request error if the user is already authenticated. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
241
+ # @param [Hash] opts the optional parameters
242
+ # @return [SelfServiceRecoveryFlow]
243
+ describe 'initialize_self_service_recovery_flow_for_browsers test' do
244
+ it 'should work' do
245
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
246
+ end
247
+ end
248
+
249
+ # unit tests for initialize_self_service_recovery_flow_without_browser
250
+ # Initialize Recovery Flow for APIs, Services, Apps, ...
251
+ # This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call &#x60;/self-service/recovery/flows?flow&#x3D;&lt;flow_id&gt;&#x60;. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
252
+ # @param [Hash] opts the optional parameters
253
+ # @return [SelfServiceRecoveryFlow]
254
+ describe 'initialize_self_service_recovery_flow_without_browser test' do
255
+ it 'should work' do
256
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
257
+ end
258
+ end
259
+
260
+ # unit tests for initialize_self_service_registration_flow_for_browsers
261
+ # Initialize Registration Flow for Browsers
262
+ # This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to &#x60;selfservice.flows.registration.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If a valid user session exists already, the browser will be redirected to &#x60;urls.default_redirect_url&#x60;. If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
263
+ # @param [Hash] opts the optional parameters
264
+ # @return [SelfServiceRegistrationFlow]
265
+ describe 'initialize_self_service_registration_flow_for_browsers test' do
266
+ it 'should work' do
267
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
268
+ end
269
+ end
270
+
271
+ # unit tests for initialize_self_service_registration_flow_without_browser
272
+ # Initialize Registration Flow for APIs, Services, Apps, ...
273
+ # This endpoint initiates a registration flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter &#x60;?refresh&#x3D;true&#x60; is set. To fetch an existing registration flow call &#x60;/self-service/registration/flows?flow&#x3D;&lt;flow_id&gt;&#x60;. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
274
+ # @param [Hash] opts the optional parameters
275
+ # @return [SelfServiceRegistrationFlow]
276
+ describe 'initialize_self_service_registration_flow_without_browser test' do
277
+ it 'should work' do
278
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
279
+ end
280
+ end
281
+
282
+ # unit tests for initialize_self_service_settings_flow_for_browsers
283
+ # Initialize Settings Flow for Browsers
284
+ # This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to &#x60;selfservice.flows.settings.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If no valid Ory Kratos Session Cookie is included in the request, a login flow will be initialized. If this endpoint is opened as a link in the browser, it will be redirected to &#x60;selfservice.flows.settings.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If no valid user session was set, the browser will be redirected to the login endpoint. If this endpoint is called via an AJAX request, the response contains the settings flow without any redirects or a 403 forbidden error if no valid session was set. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor (happens automatically for server-side browser flows) or change the configuration. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
285
+ # @param [Hash] opts the optional parameters
286
+ # @option opts [String] :cookie The Session Cookie of the Identity performing the settings flow.
287
+ # @return [SelfServiceSettingsFlow]
288
+ describe 'initialize_self_service_settings_flow_for_browsers test' do
289
+ it 'should work' do
290
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
291
+ end
292
+ end
293
+
294
+ # unit tests for initialize_self_service_settings_flow_without_browser
295
+ # Initialize Settings Flow for APIs, Services, Apps, ...
296
+ # This endpoint initiates a settings flow for API clients such as mobile devices, smart TVs, and so on. You must provide a valid Ory Kratos Session Token for this endpoint to respond with HTTP 200 OK. To fetch an existing settings flow call &#x60;/self-service/settings/flows?flow&#x3D;&lt;flow_id&gt;&#x60;. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
297
+ # @param [Hash] opts the optional parameters
298
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
299
+ # @return [SelfServiceSettingsFlow]
300
+ describe 'initialize_self_service_settings_flow_without_browser test' do
301
+ it 'should work' do
302
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
303
+ end
304
+ end
305
+
306
+ # unit tests for initialize_self_service_verification_flow_for_browsers
307
+ # Initialize Verification Flow for Browser Clients
308
+ # This endpoint initializes a browser-based account verification flow. Once initialized, the browser will be redirected to &#x60;selfservice.flows.verification.ui_url&#x60; with the flow ID set as the query parameter &#x60;?flow&#x3D;&#x60;. If this endpoint is called via an AJAX request, the response contains the recovery flow without any redirects. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
309
+ # @param [Hash] opts the optional parameters
310
+ # @return [SelfServiceVerificationFlow]
311
+ describe 'initialize_self_service_verification_flow_for_browsers test' do
312
+ it 'should work' do
313
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
314
+ end
315
+ end
316
+
317
+ # unit tests for initialize_self_service_verification_flow_without_browser
318
+ # Initialize Verification Flow for APIs, Services, Apps, ...
319
+ # This endpoint initiates a verification flow for API clients such as mobile devices, smart TVs, and so on. To fetch an existing verification flow call &#x60;/self-service/verification/flows?flow&#x3D;&lt;flow_id&gt;&#x60;. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
320
+ # @param [Hash] opts the optional parameters
321
+ # @return [SelfServiceVerificationFlow]
322
+ describe 'initialize_self_service_verification_flow_without_browser test' do
323
+ it 'should work' do
324
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
325
+ end
326
+ end
327
+
328
+ # unit tests for submit_self_service_login_flow
329
+ # Submit a Login Flow
330
+ # :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect &#x60;application/json&#x60; to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. Browser flows expect a Content-Type of &#x60;application/x-www-form-urlencoded&#x60; or &#x60;application/json&#x60; to be sent in the body and respond with a HTTP 302 redirect to the post/after login URL or the &#x60;return_to&#x60; value if it was set and if the login succeeded; a HTTP 302 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of &#x60;application/json&#x60; will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a &#x60;Set-Cookie&#x60; header on success; HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
331
+ # @param flow The Login Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?flow&#x3D;abcde&#x60;).
332
+ # @param [Hash] opts the optional parameters
333
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
334
+ # @option opts [SubmitSelfServiceLoginFlowBody] :submit_self_service_login_flow_body
335
+ # @return [SuccessfulSelfServiceLoginWithoutBrowser]
336
+ describe 'submit_self_service_login_flow test' do
337
+ it 'should work' do
338
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
339
+ end
340
+ end
341
+
342
+ # unit tests for submit_self_service_logout_flow
343
+ # Complete Self-Service Logout
344
+ # This endpoint logs out an identity in a self-service manner. If the &#x60;Accept&#x60; HTTP header is not set to &#x60;application/json&#x60;, the browser will be redirected (HTTP 302 Found) to the &#x60;return_to&#x60; parameter of the initial request or fall back to &#x60;urls.default_return_to&#x60;. If the &#x60;Accept&#x60; HTTP header is set to &#x60;application/json&#x60;, a 204 No Content response will be sent on successful logout instead. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the &#x60;/self-service/logout/api&#x60; URL directly with the Ory Session Token. More information can be found at [Ory Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout).
345
+ # @param [Hash] opts the optional parameters
346
+ # @option opts [String] :token A Valid Logout Token If you do not have a logout token because you only have a session cookie, call &#x60;/self-service/logout/urls&#x60; to generate a URL for this endpoint.
347
+ # @return [nil]
348
+ describe 'submit_self_service_logout_flow test' do
349
+ it 'should work' do
350
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
351
+ end
352
+ end
353
+
354
+ # unit tests for submit_self_service_logout_flow_without_browser
355
+ # Perform Logout for APIs, Services, Apps, ...
356
+ # Use this endpoint to log out an identity using an Ory Session Token. If the Ory Session Token was successfully revoked, the server returns a 204 No Content response. A 204 No Content response is also sent when the Ory Session Token has been revoked already before. If the Ory Session Token is malformed or does not exist a 403 Forbidden response will be returned. This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead.
357
+ # @param submit_self_service_logout_flow_without_browser_body
358
+ # @param [Hash] opts the optional parameters
359
+ # @return [nil]
360
+ describe 'submit_self_service_logout_flow_without_browser test' do
361
+ it 'should work' do
362
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
363
+ end
364
+ end
365
+
366
+ # unit tests for submit_self_service_recovery_flow
367
+ # Complete Recovery Flow
368
+ # Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: &#x60;choose_method&#x60; expects &#x60;flow&#x60; (in the URL query) and &#x60;email&#x60; (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header &#x60;Accept: application/json&#x60; it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 302 Found redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header &#x60;Accept&#x60; or with &#x60;Accept: text/*&#x60; it returns a HTTP 302 Found redirect to the Recovery UI URL with the Recovery Flow ID appended. &#x60;sent_email&#x60; is the success state after &#x60;choose_method&#x60; for the &#x60;link&#x60; method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in &#x60;choose_method&#x60; state. &#x60;passed_challenge&#x60; expects a &#x60;token&#x60; to be sent in the URL query and given the nature of the flow (\&quot;sending a recovery link\&quot;) does not have any API capabilities. The server responds with a HTTP 302 Found redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery.mdx).
369
+ # @param flow The Recovery Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/recovery?flow&#x3D;abcde&#x60;).
370
+ # @param [Hash] opts the optional parameters
371
+ # @option opts [String] :token Recovery Token The recovery token which completes the recovery request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not used by any direct API call.
372
+ # @option opts [SubmitSelfServiceRecoveryFlowBody] :submit_self_service_recovery_flow_body
373
+ # @return [SelfServiceRecoveryFlow]
374
+ describe 'submit_self_service_recovery_flow test' do
375
+ it 'should work' do
376
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
377
+ end
378
+ end
379
+
380
+ # unit tests for submit_self_service_registration_flow
381
+ # Submit a Registration Flow
382
+ # Use this endpoint to complete a registration flow by sending an identity&#39;s traits and password. This endpoint behaves differently for API and browser flows. API flows expect &#x60;application/json&#x60; to be sent in the body and respond with HTTP 200 and a application/json body with the created identity success - if the session hook is configured the &#x60;session&#x60; and &#x60;session_token&#x60; will also be included; HTTP 302 redirect to a fresh registration flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. Browser flows expect a Content-Type of &#x60;application/x-www-form-urlencoded&#x60; or &#x60;application/json&#x60; to be sent in the body and respond with a HTTP 302 redirect to the post/after registration URL or the &#x60;return_to&#x60; value if it was set and if the registration succeeded; a HTTP 302 redirect to the registration UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of &#x60;application/json&#x60; will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a &#x60;Set-Cookie&#x60; header on success; HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
383
+ # @param flow The Registration Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?flow&#x3D;abcde&#x60;).
384
+ # @param [Hash] opts the optional parameters
385
+ # @option opts [SubmitSelfServiceRegistrationFlowBody] :submit_self_service_registration_flow_body
386
+ # @return [SuccessfulSelfServiceRegistrationWithoutBrowser]
387
+ describe 'submit_self_service_registration_flow test' do
388
+ it 'should work' do
389
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
390
+ end
391
+ end
392
+
393
+ # unit tests for submit_self_service_settings_flow
394
+ # Complete Settings Flow
395
+ # Use this endpoint to complete a settings flow by sending an identity&#39;s updated password. This endpoint behaves differently for API and browser flows. API-initiated flows expect &#x60;application/json&#x60; to be sent in the body and respond with HTTP 200 and an application/json body with the session token on success; HTTP 302 redirect to a fresh settings flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. HTTP 401 when the endpoint is called without a valid session token. HTTP 403 when &#x60;selfservice.flows.settings.privileged_session_max_age&#x60; was reached or the session&#39;s AAL is too low. Implies that the user needs to re-authenticate. Browser flows without HTTP Header &#x60;Accept&#x60; or with &#x60;Accept: text/*&#x60; respond with a HTTP 302 redirect to the post/after settings URL or the &#x60;return_to&#x60; value if it was set and if the flow succeeded; a HTTP 302 redirect to the Settings UI URL with the flow ID containing the validation errors otherwise. a HTTP 302 redirect to the login endpoint when &#x60;selfservice.flows.settings.privileged_session_max_age&#x60; was reached or the session&#39;s AAL is too low. Browser flows with HTTP Header &#x60;Accept: application/json&#x60; respond with HTTP 200 and a application/json body with the signed in identity and a &#x60;Set-Cookie&#x60; header on success; HTTP 302 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 403 when the page is accessed without a session cookie or the session&#39;s AAL is too low. HTTP 400 on form validation errors. Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor (happens automatically for server-side browser flows) or change the configuration. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
396
+ # @param flow The Settings Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/settings?flow&#x3D;abcde&#x60;).
397
+ # @param [Hash] opts the optional parameters
398
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
399
+ # @option opts [SubmitSelfServiceSettingsFlowBody] :submit_self_service_settings_flow_body
400
+ # @return [SelfServiceSettingsFlow]
401
+ describe 'submit_self_service_settings_flow test' do
402
+ it 'should work' do
403
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
404
+ end
405
+ end
406
+
407
+ # unit tests for submit_self_service_verification_flow
408
+ # Complete Verification Flow
409
+ # Use this endpoint to complete a verification flow. This endpoint behaves differently for API and browser flows and has several states: &#x60;choose_method&#x60; expects &#x60;flow&#x60; (in the URL query) and &#x60;email&#x60; (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header &#x60;Accept: application/json&#x60; it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid and a HTTP 302 Found redirect with a fresh verification flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header &#x60;Accept&#x60; or with &#x60;Accept: text/*&#x60; it returns a HTTP 302 Found redirect to the Verification UI URL with the Verification Flow ID appended. &#x60;sent_email&#x60; is the success state after &#x60;choose_method&#x60; when using the &#x60;link&#x60; method and allows the user to request another verification email. It works for both API and Browser-initiated flows and returns the same responses as the flow in &#x60;choose_method&#x60; state. &#x60;passed_challenge&#x60; expects a &#x60;token&#x60; to be sent in the URL query and given the nature of the flow (\&quot;sending a verification link\&quot;) does not have any API capabilities. The server responds with a HTTP 302 Found redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Verification UI URL with a new Verification Flow ID which contains an error message that the verification link was invalid. More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
410
+ # @param flow The Verification Flow ID The value for this parameter comes from &#x60;flow&#x60; URL Query parameter sent to your application (e.g. &#x60;/verification?flow&#x3D;abcde&#x60;).
411
+ # @param [Hash] opts the optional parameters
412
+ # @option opts [String] :token Verification Token The verification token which completes the verification request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not used by any direct API call.
413
+ # @option opts [SubmitSelfServiceVerificationFlowBody] :submit_self_service_verification_flow_body
414
+ # @return [SelfServiceVerificationFlow]
415
+ describe 'submit_self_service_verification_flow test' do
416
+ it 'should work' do
417
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
418
+ end
419
+ end
420
+
421
+ # unit tests for to_session
422
+ # Check Who the Current HTTP Session Belongs To
423
+ # Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. Additionally when the request it successful it adds the user ID to the &#39;X-Kratos-Authenticated-Identity-Id&#39; header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: &#x60;&#x60;&#x60;js pseudo-code example router.get(&#39;/protected-endpoint&#39;, async function (req, res) { const session &#x3D; await client.toSession(undefined, req.header(&#39;cookie&#39;)) console.log(session) }) &#x60;&#x60;&#x60; When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: &#x60;&#x60;&#x60;js pseudo-code example ... const session &#x3D; await client.toSession(\&quot;the-session-token\&quot;) console.log(session) &#x60;&#x60;&#x60; Depending on your configuration this endpoint might return a 403 error if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the &#x60;X-Session-Token&#x60; header! This endpoint authenticates users by checking if the &#x60;Cookie&#x60; HTTP header was set containing an Ory Kratos Session Cookie; if the &#x60;Authorization: bearer &lt;ory-session-token&gt;&#x60; HTTP header was set with a valid Ory Kratos Session Token; if the &#x60;X-Session-Token&#x60; HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cooke or token are invalid, the endpoint returns a HTTP 401 status code.
424
+ # @param [Hash] opts the optional parameters
425
+ # @option opts [String] :x_session_token Set the Session Token when calling from non-browser clients. A session token has a format of &#x60;MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj&#x60;.
426
+ # @option opts [String] :cookie Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: &#x60;ory_kratos_session&#x3D;a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f&#x3D;&#x3D;&#x60;. It is ok if more than one cookie are included here as all other cookies will be ignored.
427
+ # @return [Session]
428
+ describe 'to_session test' do
429
+ it 'should work' do
430
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
431
+ end
432
+ end
433
+
434
+ end
@@ -3,60 +3,60 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.14
6
+ The version of the OpenAPI document: v0.0.1-alpha.18
7
7
  Contact: support@ory.sh
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 OryClient::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
+ OryClient.configure { |c| c.host = 'http://example.com' }
21
+ expect(OryClient::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
+ OryClient.configure { |c| c.host = 'https://wookiee.com' }
26
+ expect(OryClient::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
+ OryClient.configure { |c| c.host = 'hobo.com/v4' }
31
+ expect(OryClient::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
+ OryClient.configure { |c| c.base_path = 'v4/dog' }
38
+ expect(OryClient::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
+ OryClient.configure { |c| c.base_path = '/v4/dog' }
43
+ expect(OryClient::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
+ OryClient.configure { |c| c.base_path = nil }
48
+ expect(OryClient::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) { OryClient::Configuration.new }
56
+ let(:api_client) { OryClient::ApiClient.new(config) }
57
57
 
58
58
  it 'defaults to nil' do
59
- expect(OryHydraClient::Configuration.default.params_encoding).to eq(nil)
59
+ expect(OryClient::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) { OryClient::Configuration.new }
75
+ let(:api_client) { OryClient::ApiClient.new(config) }
76
76
 
77
77
  it 'defaults to 0' do
78
- expect(OryHydraClient::Configuration.default.timeout).to eq(0)
78
+ expect(OryClient::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 = OryClient::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 = OryClient::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 = OryClient::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 = OryClient::ApiClient.new
125
+ # _model = OryClient::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) { OryClient::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) { OryClient::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) { OryClient::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) { OryClient::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) { OryClient::ApiClient.new }
213
213
 
214
214
  it 'works' do
215
215
  expect(api_client.sanitize_filename('sun')).to eq('sun')