ory-kratos-client 0.7.6.alpha7 → 0.8.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (407) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +57 -40
  4. data/docs/AdminCreateIdentityBody.md +2 -0
  5. data/docs/AuthenticatorAssuranceLevel.md +15 -0
  6. data/docs/ErrorAuthenticatorAssuranceLevelNotSatisfied.md +34 -0
  7. data/docs/GenericError.md +2 -0
  8. data/docs/IdentityCredentials.md +1 -1
  9. data/docs/IdentityCredentialsType.md +15 -0
  10. data/docs/IdentitySchema.md +20 -0
  11. data/docs/MetadataApi.md +0 -61
  12. data/docs/NeedsPrivilegedSessionError.md +34 -0
  13. data/docs/SelfServiceBrowserLocationChangeRequiredError.md +34 -0
  14. data/docs/SelfServiceFlowExpiredError.md +36 -0
  15. data/docs/SelfServiceLoginFlow.md +7 -3
  16. data/docs/SelfServiceLogoutUrl.md +3 -1
  17. data/docs/SelfServiceRecoveryFlow.md +2 -0
  18. data/docs/SelfServiceRegistrationFlow.md +3 -1
  19. data/docs/SelfServiceSettingsFlow.md +2 -0
  20. data/docs/SelfServiceVerificationFlow.md +2 -0
  21. data/docs/Session.md +7 -3
  22. data/docs/SessionAuthenticationMethod.md +20 -0
  23. data/docs/SessionDevice.md +18 -0
  24. data/docs/SubmitSelfServiceLoginFlowBody.md +5 -2
  25. data/docs/SubmitSelfServiceLoginFlowWithLookupSecretMethodBody.md +22 -0
  26. data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +3 -1
  27. data/docs/SubmitSelfServiceLoginFlowWithTotpMethodBody.md +22 -0
  28. data/docs/SubmitSelfServiceLoginFlowWithWebAuthnMethodBody.md +22 -0
  29. data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +3 -1
  30. data/docs/SubmitSelfServiceSettingsFlowBody.md +5 -2
  31. data/docs/SubmitSelfServiceSettingsFlowWithLookupMethodBody.md +28 -0
  32. data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +2 -0
  33. data/docs/SubmitSelfServiceSettingsFlowWithTotpMethodBody.md +24 -0
  34. data/docs/SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody.md +26 -0
  35. data/docs/UiNode.md +1 -1
  36. data/docs/UiNodeAnchorAttributes.md +4 -0
  37. data/docs/UiNodeAttributes.md +34 -0
  38. data/docs/UiNodeImageAttributes.md +9 -1
  39. data/docs/UiNodeInputAttributes.md +4 -0
  40. data/docs/{Meta.md → UiNodeMeta.md} +2 -2
  41. data/docs/UiNodeScriptAttributes.md +32 -0
  42. data/docs/UiNodeTextAttributes.md +4 -0
  43. data/docs/{V0alpha1Api.md → V0alpha2Api.md} +405 -172
  44. data/lib/ory-kratos-client/api/metadata_api.rb +1 -56
  45. data/lib/ory-kratos-client/api/{v0alpha1_api.rb → v0alpha2_api.rb} +372 -149
  46. data/lib/ory-kratos-client/api_client.rb +1 -1
  47. data/lib/ory-kratos-client/api_error.rb +1 -1
  48. data/lib/ory-kratos-client/configuration.rb +1 -1
  49. data/lib/ory-kratos-client/models/admin_create_identity_body.rb +11 -2
  50. data/lib/ory-kratos-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
  51. data/lib/ory-kratos-client/models/admin_update_identity_body.rb +1 -1
  52. data/lib/ory-kratos-client/models/authenticator_assurance_level.rb +39 -0
  53. data/lib/ory-kratos-client/models/error_authenticator_assurance_level_not_satisfied.rb +305 -0
  54. data/lib/ory-kratos-client/models/generic_error.rb +12 -2
  55. data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
  56. data/lib/ory-kratos-client/models/health_status.rb +1 -1
  57. data/lib/ory-kratos-client/models/identity.rb +1 -1
  58. data/lib/ory-kratos-client/models/identity_credentials.rb +2 -3
  59. data/lib/ory-kratos-client/models/identity_credentials_type.rb +38 -0
  60. data/lib/ory-kratos-client/models/{successful_self_service_settings_without_browser.rb → identity_schema.rb} +19 -28
  61. data/lib/ory-kratos-client/models/identity_state.rb +1 -1
  62. data/lib/ory-kratos-client/models/inline_response200.rb +1 -1
  63. data/lib/ory-kratos-client/models/inline_response2001.rb +1 -1
  64. data/lib/ory-kratos-client/models/inline_response503.rb +1 -1
  65. data/lib/ory-kratos-client/models/json_error.rb +1 -1
  66. data/lib/ory-kratos-client/models/needs_privileged_session_error.rb +311 -0
  67. data/lib/ory-kratos-client/models/recovery_address.rb +1 -1
  68. data/lib/ory-kratos-client/models/self_service_browser_location_change_required_error.rb +306 -0
  69. data/lib/ory-kratos-client/models/self_service_error.rb +1 -1
  70. data/lib/ory-kratos-client/models/self_service_flow_expired_error.rb +316 -0
  71. data/lib/ory-kratos-client/models/self_service_login_flow.rb +32 -14
  72. data/lib/ory-kratos-client/models/self_service_logout_url.rb +18 -3
  73. data/lib/ory-kratos-client/models/self_service_recovery_flow.rb +12 -2
  74. data/lib/ory-kratos-client/models/self_service_recovery_flow_state.rb +1 -1
  75. data/lib/ory-kratos-client/models/self_service_recovery_link.rb +1 -1
  76. data/lib/ory-kratos-client/models/self_service_registration_flow.rb +13 -4
  77. data/lib/ory-kratos-client/models/self_service_settings_flow.rb +12 -2
  78. data/lib/ory-kratos-client/models/self_service_settings_flow_state.rb +1 -1
  79. data/lib/ory-kratos-client/models/self_service_verification_flow.rb +12 -2
  80. data/lib/ory-kratos-client/models/self_service_verification_flow_state.rb +1 -1
  81. data/lib/ory-kratos-client/models/session.rb +26 -5
  82. data/lib/ory-kratos-client/models/session_authentication_method.rb +263 -0
  83. data/lib/ory-kratos-client/models/session_device.rb +219 -0
  84. data/lib/ory-kratos-client/models/settings_profile_form_config.rb +1 -1
  85. data/lib/ory-kratos-client/models/submit_self_service_login_flow_body.rb +5 -3
  86. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +249 -0
  87. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +16 -6
  88. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
  89. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_totp_method_body.rb +249 -0
  90. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +244 -0
  91. data/lib/ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
  92. data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_body.rb +1 -1
  93. data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
  94. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_body.rb +1 -1
  95. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +16 -6
  96. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
  97. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_body.rb +5 -3
  98. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +274 -0
  99. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +12 -2
  100. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
  101. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
  102. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +254 -0
  103. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +264 -0
  104. data/lib/ory-kratos-client/models/submit_self_service_verification_flow_body.rb +1 -1
  105. data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
  106. data/lib/ory-kratos-client/models/successful_self_service_login_without_browser.rb +1 -1
  107. data/lib/ory-kratos-client/models/successful_self_service_registration_without_browser.rb +1 -1
  108. data/lib/ory-kratos-client/models/ui_container.rb +1 -1
  109. data/lib/ory-kratos-client/models/ui_node.rb +2 -2
  110. data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +31 -2
  111. data/lib/ory-kratos-client/models/ui_node_attributes.rb +23 -69
  112. data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +54 -5
  113. data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +26 -2
  114. data/lib/ory-kratos-client/models/{meta.rb → ui_node_meta.rb} +4 -4
  115. data/lib/ory-kratos-client/models/ui_node_script_attributes.rb +328 -0
  116. data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +31 -2
  117. data/lib/ory-kratos-client/models/ui_text.rb +1 -1
  118. data/lib/ory-kratos-client/models/verifiable_identity_address.rb +1 -1
  119. data/lib/ory-kratos-client/models/version.rb +1 -1
  120. data/lib/ory-kratos-client/version.rb +2 -2
  121. data/lib/ory-kratos-client.rb +19 -4
  122. data/ory-kratos-client.gemspec +1 -1
  123. data/spec/api/metadata_api_spec.rb +1 -12
  124. data/spec/api/{v0alpha1_api_spec.rb → v0alpha2_api_spec.rb} +67 -22
  125. data/spec/api_client_spec.rb +1 -1
  126. data/spec/configuration_spec.rb +1 -1
  127. data/spec/models/admin_create_identity_body_spec.rb +7 -1
  128. data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
  129. data/spec/models/admin_update_identity_body_spec.rb +1 -1
  130. data/spec/models/authenticator_assurance_level_spec.rb +28 -0
  131. data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +82 -0
  132. data/spec/models/generic_error_spec.rb +7 -1
  133. data/spec/models/health_not_ready_status_spec.rb +1 -1
  134. data/spec/models/health_status_spec.rb +1 -1
  135. data/spec/models/identity_credentials_spec.rb +1 -1
  136. data/spec/models/identity_credentials_type_spec.rb +28 -0
  137. data/spec/models/{successful_self_service_settings_without_browser_spec.rb → identity_schema_spec.rb} +9 -9
  138. data/spec/models/identity_spec.rb +1 -1
  139. data/spec/models/identity_state_spec.rb +1 -1
  140. data/spec/models/inline_response2001_spec.rb +1 -1
  141. data/spec/models/inline_response200_spec.rb +1 -1
  142. data/spec/models/inline_response503_spec.rb +1 -1
  143. data/spec/models/json_error_spec.rb +1 -1
  144. data/spec/models/needs_privileged_session_error_spec.rb +82 -0
  145. data/spec/models/recovery_address_spec.rb +1 -1
  146. data/spec/models/self_service_browser_location_change_required_error_spec.rb +82 -0
  147. data/spec/models/self_service_error_spec.rb +1 -1
  148. data/spec/models/self_service_flow_expired_error_spec.rb +88 -0
  149. data/spec/models/self_service_login_flow_spec.rb +16 -4
  150. data/spec/models/self_service_logout_url_spec.rb +7 -1
  151. data/spec/models/self_service_recovery_flow_spec.rb +7 -1
  152. data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
  153. data/spec/models/self_service_recovery_link_spec.rb +1 -1
  154. data/spec/models/self_service_registration_flow_spec.rb +7 -1
  155. data/spec/models/self_service_settings_flow_spec.rb +7 -1
  156. data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
  157. data/spec/models/self_service_verification_flow_spec.rb +7 -1
  158. data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
  159. data/spec/models/session_authentication_method_spec.rb +44 -0
  160. data/spec/models/session_device_spec.rb +34 -0
  161. data/spec/models/session_spec.rb +13 -1
  162. data/spec/models/settings_profile_form_config_spec.rb +1 -1
  163. data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
  164. data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +46 -0
  165. data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +7 -1
  166. data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
  167. data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +46 -0
  168. data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +46 -0
  169. data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
  170. data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
  171. data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
  172. data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
  173. data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +7 -1
  174. data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
  175. data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
  176. data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +64 -0
  177. data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +7 -1
  178. data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
  179. data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
  180. data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +52 -0
  181. data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +58 -0
  182. data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
  183. data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
  184. data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
  185. data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
  186. data/spec/models/ui_container_spec.rb +1 -1
  187. data/spec/models/ui_node_anchor_attributes_spec.rb +13 -1
  188. data/spec/models/ui_node_attributes_spec.rb +13 -1
  189. data/spec/models/ui_node_image_attributes_spec.rb +25 -1
  190. data/spec/models/ui_node_input_attributes_spec.rb +13 -1
  191. data/spec/models/{meta_spec.rb → ui_node_meta_spec.rb} +7 -7
  192. data/spec/models/ui_node_script_attributes_spec.rb +76 -0
  193. data/spec/models/ui_node_spec.rb +1 -1
  194. data/spec/models/ui_node_text_attributes_spec.rb +13 -1
  195. data/spec/models/ui_text_spec.rb +1 -1
  196. data/spec/models/verifiable_identity_address_spec.rb +1 -1
  197. data/spec/models/version_spec.rb +1 -1
  198. data/spec/spec_helper.rb +1 -1
  199. data/vendor/bundle/ruby/2.5.0/cache/ethon-0.15.0.gem +0 -0
  200. data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.2.gem +0 -0
  201. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
  202. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.4/gem_make.out +2 -2
  203. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
  204. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.1 → psych-4.0.2}/gem.build_complete +0 -0
  205. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.1 → psych-4.0.2}/gem_make.out +6 -6
  206. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.1 → psych-4.0.2}/mkmf.log +0 -0
  207. data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/{psych-4.0.1 → psych-4.0.2}/psych.so +0 -0
  208. data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  209. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/.github/workflows/ruby.yml +0 -0
  210. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/.gitignore +0 -0
  211. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/.rspec +0 -0
  212. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/CHANGELOG.md +5 -1
  213. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/Gemfile +0 -0
  214. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/Guardfile +0 -0
  215. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/LICENSE +0 -0
  216. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/README.md +0 -0
  217. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/Rakefile +0 -0
  218. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/ethon.gemspec +0 -0
  219. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curl.rb +0 -0
  220. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/classes.rb +0 -0
  221. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/codes.rb +0 -0
  222. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/constants.rb +17 -0
  223. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/form_options.rb +0 -0
  224. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/functions.rb +1 -0
  225. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/infos.rb +0 -0
  226. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/messages.rb +0 -0
  227. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/options.rb +33 -2
  228. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/settings.rb +2 -0
  229. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/callbacks.rb +0 -0
  230. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/debug_info.rb +0 -0
  231. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/features.rb +0 -0
  232. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/form.rb +0 -0
  233. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/header.rb +0 -0
  234. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/actionable.rb +0 -0
  235. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/custom.rb +0 -0
  236. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/delete.rb +0 -0
  237. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/get.rb +0 -0
  238. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/head.rb +0 -0
  239. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/options.rb +0 -0
  240. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/patch.rb +0 -0
  241. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/post.rb +0 -0
  242. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/postable.rb +0 -0
  243. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/put.rb +0 -0
  244. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/putable.rb +0 -0
  245. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http.rb +0 -0
  246. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/informations.rb +19 -1
  247. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/mirror.rb +0 -0
  248. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/operations.rb +1 -15
  249. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/options.rb +0 -0
  250. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/params.rb +0 -0
  251. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/queryable.rb +0 -0
  252. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/response_callbacks.rb +0 -0
  253. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/util.rb +0 -0
  254. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy.rb +0 -0
  255. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/ethon_error.rb +0 -0
  256. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/global_init.rb +0 -0
  257. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/invalid_option.rb +0 -0
  258. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/invalid_value.rb +0 -0
  259. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_add.rb +0 -0
  260. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_fdset.rb +0 -0
  261. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_remove.rb +0 -0
  262. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_timeout.rb +0 -0
  263. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/select.rb +0 -0
  264. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors.rb +0 -0
  265. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/libc.rb +0 -0
  266. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/loggable.rb +0 -0
  267. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi/operations.rb +45 -8
  268. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi/options.rb +0 -0
  269. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi/stack.rb +0 -0
  270. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi.rb +22 -0
  271. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/version.rb +1 -1
  272. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon.rb +0 -0
  273. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/benchmarks.rb +0 -0
  274. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/memory_leaks.rb +0 -0
  275. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/perf_spec_helper.rb +0 -0
  276. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/support/memory_test_helpers.rb +0 -0
  277. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/support/os_memory_leak_tracker.rb +0 -0
  278. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/support/ruby_object_leak_tracker.rb +0 -0
  279. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/curl_spec.rb +0 -0
  280. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/callbacks_spec.rb +0 -0
  281. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/debug_info_spec.rb +0 -0
  282. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/features_spec.rb +0 -0
  283. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/form_spec.rb +0 -0
  284. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/header_spec.rb +0 -0
  285. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/custom_spec.rb +0 -0
  286. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/delete_spec.rb +0 -0
  287. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/get_spec.rb +0 -0
  288. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/head_spec.rb +0 -0
  289. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/options_spec.rb +0 -0
  290. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/patch_spec.rb +0 -0
  291. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/post_spec.rb +0 -0
  292. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http/put_spec.rb +0 -0
  293. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http_spec.rb +0 -0
  294. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/informations_spec.rb +22 -0
  295. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/mirror_spec.rb +1 -0
  296. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/operations_spec.rb +0 -0
  297. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/options_spec.rb +0 -0
  298. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/queryable_spec.rb +0 -0
  299. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/response_callbacks_spec.rb +0 -0
  300. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/util_spec.rb +0 -0
  301. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy_spec.rb +0 -0
  302. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/libc_spec.rb +0 -0
  303. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/loggable_spec.rb +0 -0
  304. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/multi/operations_spec.rb +0 -0
  305. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/multi/options_spec.rb +182 -0
  306. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/multi/stack_spec.rb +0 -0
  307. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/multi_spec.rb +152 -0
  308. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/spec_helper.rb +0 -0
  309. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/support/localhost_server.rb +0 -0
  310. data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/support/server.rb +0 -0
  311. data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/ext/ffi_c/Makefile +2 -2
  312. data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  313. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/.gitignore +0 -0
  314. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/Gemfile +0 -0
  315. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/LICENSE +0 -0
  316. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/Mavenfile +0 -0
  317. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/README.md +0 -0
  318. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/Rakefile +1 -1
  319. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/bin/console +0 -0
  320. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/bin/setup +0 -0
  321. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/.sitearchdir.time +0 -0
  322. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/Makefile +2 -2
  323. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/api.o +0 -0
  324. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/depend +0 -0
  325. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/dumper.o +0 -0
  326. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/emitter.o +0 -0
  327. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/extconf.rb +0 -0
  328. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/loader.o +0 -0
  329. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/parser.o +0 -0
  330. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych.c +0 -0
  331. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych.h +0 -0
  332. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych.o +0 -0
  333. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1/lib → psych-4.0.2/ext/psych}/psych.so +0 -0
  334. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_emitter.c +0 -0
  335. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_emitter.h +0 -0
  336. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_emitter.o +0 -0
  337. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_parser.c +0 -0
  338. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_parser.h +0 -0
  339. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_parser.o +0 -0
  340. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_to_ruby.c +0 -0
  341. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_to_ruby.h +0 -0
  342. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_to_ruby.o +0 -0
  343. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_yaml_tree.c +0 -0
  344. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_yaml_tree.h +0 -0
  345. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_yaml_tree.o +0 -0
  346. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/reader.o +0 -0
  347. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/scanner.o +0 -0
  348. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/writer.o +0 -0
  349. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/LICENSE +0 -0
  350. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/api.c +0 -0
  351. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/config.h +0 -0
  352. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/dumper.c +0 -0
  353. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/emitter.c +0 -0
  354. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/loader.c +0 -0
  355. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/parser.c +0 -0
  356. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/reader.c +0 -0
  357. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/scanner.c +0 -0
  358. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/writer.c +0 -0
  359. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/yaml.h +0 -0
  360. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/yaml_private.h +0 -0
  361. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/class_loader.rb +0 -0
  362. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/coder.rb +0 -0
  363. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/core_ext.rb +0 -0
  364. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/exception.rb +0 -0
  365. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/handler.rb +0 -0
  366. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/handlers/document_stream.rb +0 -0
  367. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/handlers/recorder.rb +0 -0
  368. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/ruby_events.rb +0 -0
  369. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/stream.rb +0 -0
  370. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/tree_builder.rb +0 -0
  371. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/yaml_events.rb +0 -0
  372. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/alias.rb +0 -0
  373. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/document.rb +0 -0
  374. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/mapping.rb +0 -0
  375. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/node.rb +0 -0
  376. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/scalar.rb +0 -0
  377. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/sequence.rb +0 -0
  378. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/stream.rb +0 -0
  379. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes.rb +0 -0
  380. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/omap.rb +0 -0
  381. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/parser.rb +0 -0
  382. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/scalar_scanner.rb +8 -9
  383. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/set.rb +0 -0
  384. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/stream.rb +0 -0
  385. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/streaming.rb +0 -0
  386. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/syntax_error.rb +0 -0
  387. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/tree_builder.rb +0 -0
  388. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/versions.rb +1 -1
  389. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/depth_first.rb +0 -0
  390. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/emitter.rb +0 -0
  391. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/json_tree.rb +0 -0
  392. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/to_ruby.rb +0 -0
  393. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/visitor.rb +0 -0
  394. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/yaml_tree.rb +2 -0
  395. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors.rb +0 -0
  396. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/y.rb +0 -0
  397. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych.rb +1 -1
  398. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1/ext/psych → psych-4.0.2/lib}/psych.so +0 -0
  399. data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/psych.gemspec +0 -0
  400. data/vendor/bundle/ruby/2.5.0/specifications/{ethon-0.14.0.gemspec → ethon-0.15.0.gemspec} +3 -3
  401. data/vendor/bundle/ruby/2.5.0/specifications/{psych-4.0.1.gemspec → psych-4.0.2.gemspec} +3 -3
  402. metadata +271 -211
  403. data/docs/SuccessfulSelfServiceSettingsWithoutBrowser.md +0 -20
  404. data/vendor/bundle/ruby/2.5.0/cache/ethon-0.14.0.gem +0 -0
  405. data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.1.gem +0 -0
  406. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.14.0/spec/ethon/multi/options_spec.rb +0 -69
  407. data/vendor/bundle/ruby/2.5.0/gems/ethon-0.14.0/spec/ethon/multi_spec.rb +0 -22
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.7.6-alpha.7
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1
@@ -13,22 +13,22 @@ OpenAPI Generator version: 5.2.1
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for OryKratosClient::V0alpha1Api
16
+ # Unit tests for OryKratosClient::V0alpha2Api
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'V0alpha1Api' do
19
+ describe 'V0alpha2Api' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = OryKratosClient::V0alpha1Api.new
22
+ @api_instance = OryKratosClient::V0alpha2Api.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of V0alpha1Api' do
30
- it 'should create an instance of V0alpha1Api' do
31
- expect(@api_instance).to be_instance_of(OryKratosClient::V0alpha1Api)
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(OryKratosClient::V0alpha2Api)
32
32
  end
33
33
  end
34
34
 
@@ -68,11 +68,24 @@ describe 'V0alpha1Api' do
68
68
  end
69
69
  end
70
70
 
71
+ # unit tests for admin_delete_identity_sessions
72
+ # Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity.
73
+ # This endpoint is useful for: To forcefully logout Identity from all devices and sessions
74
+ # @param id ID is the identity's ID.
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [nil]
77
+ describe 'admin_delete_identity_sessions 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
+
71
83
  # unit tests for admin_get_identity
72
84
  # Get an Identity
73
85
  # Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
74
86
  # @param id ID must be set to the ID of identity you want to get
75
87
  # @param [Hash] opts the optional parameters
88
+ # @option opts [Array<String>] :include_credential DeclassifyCredentials will declassify one or more identity&#39;s credentials Currently, only &#x60;oidc&#x60; is supported. This will return the initial OAuth 2.0 Access, Refresh and (optionally) OpenID Connect ID Token.
76
89
  # @return [Identity]
77
90
  describe 'admin_get_identity test' do
78
91
  it 'should work' do
@@ -143,7 +156,7 @@ describe 'V0alpha1Api' do
143
156
 
144
157
  # unit tests for get_self_service_login_flow
145
158
  # 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).
159
+ # 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; This request may fail due to several reasons. The &#x60;error.id&#x60; can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;self_service_flow_expired&#x60;: The flow is expired and you should request a new one. 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
160
  # @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
161
  # @param [Hash] opts the optional parameters
149
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.
@@ -169,7 +182,7 @@ describe 'V0alpha1Api' do
169
182
 
170
183
  # unit tests for get_self_service_registration_flow
171
184
  # 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).
185
+ # 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; This request may fail due to several reasons. The &#x60;error.id&#x60; can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;self_service_flow_expired&#x60;: The flow is expired and you should request a new one. 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
186
  # @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
187
  # @param [Hash] opts the optional parameters
175
188
  # @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.
@@ -182,7 +195,7 @@ describe 'V0alpha1Api' do
182
195
 
183
196
  # unit tests for get_self_service_settings_flow
184
197
  # 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. 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).
198
+ # 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. 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. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;session_inactive&#x60;: No Ory Session was found - sign in a user first. &#x60;security_identity_mismatch&#x60;: The flow was interrupted with &#x60;session_refresh_required&#x60; but apparently some other identity logged in instead. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
186
199
  # @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
200
  # @param [Hash] opts the optional parameters
188
201
  # @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.
@@ -207,11 +220,24 @@ describe 'V0alpha1Api' do
207
220
  end
208
221
  end
209
222
 
223
+ # unit tests for get_web_authn_java_script
224
+ # Get WebAuthn JavaScript
225
+ # This endpoint provides JavaScript which is needed in order to perform WebAuthn login and registration. If you are building a JavaScript Browser App (e.g. in ReactJS or AngularJS) you will need to load this file: &#x60;&#x60;&#x60;html &lt;script src&#x3D;\&quot;https://public-kratos.example.org/.well-known/ory/webauthn.js\&quot; type&#x3D;\&quot;script\&quot; async /&gt; &#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).
226
+ # @param [Hash] opts the optional parameters
227
+ # @return [String]
228
+ describe 'get_web_authn_java_script test' do
229
+ it 'should work' do
230
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
231
+ end
232
+ end
233
+
210
234
  # unit tests for initialize_self_service_login_flow_for_browsers
211
235
  # 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).
236
+ # 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 flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;session_aal1_required&#x60;: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in 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 Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
213
237
  # @param [Hash] opts the optional parameters
214
238
  # @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.
239
+ # @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;.
240
+ # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
215
241
  # @return [SelfServiceLoginFlow]
216
242
  describe 'initialize_self_service_login_flow_for_browsers test' do
217
243
  it 'should work' do
@@ -221,9 +247,11 @@ describe 'V0alpha1Api' do
221
247
 
222
248
  # unit tests for initialize_self_service_login_flow_without_browser
223
249
  # Initialize Login Flow for APIs, Services, Apps, ...
224
- # 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).
250
+ # 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. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;session_aal1_required&#x60;: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. 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).
225
251
  # @param [Hash] opts the optional parameters
226
252
  # @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.
253
+ # @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;.
254
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
227
255
  # @return [SelfServiceLoginFlow]
228
256
  describe 'initialize_self_service_login_flow_without_browser test' do
229
257
  it 'should work' do
@@ -235,6 +263,7 @@ describe 'V0alpha1Api' do
235
263
  # Initialize Recovery Flow for Browsers
236
264
  # 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).
237
265
  # @param [Hash] opts the optional parameters
266
+ # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
238
267
  # @return [SelfServiceRecoveryFlow]
239
268
  describe 'initialize_self_service_recovery_flow_for_browsers test' do
240
269
  it 'should work' do
@@ -255,8 +284,9 @@ describe 'V0alpha1Api' do
255
284
 
256
285
  # unit tests for initialize_self_service_registration_flow_for_browsers
257
286
  # Initialize Registration Flow for Browsers
258
- # 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).
287
+ # 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 flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in the configuration! 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).
259
288
  # @param [Hash] opts the optional parameters
289
+ # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
260
290
  # @return [SelfServiceRegistrationFlow]
261
291
  describe 'initialize_self_service_registration_flow_for_browsers test' do
262
292
  it 'should work' do
@@ -266,7 +296,7 @@ describe 'V0alpha1Api' do
266
296
 
267
297
  # unit tests for initialize_self_service_registration_flow_without_browser
268
298
  # Initialize Registration Flow for APIs, Services, Apps, ...
269
- # 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).
299
+ # 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. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. 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).
270
300
  # @param [Hash] opts the optional parameters
271
301
  # @return [SelfServiceRegistrationFlow]
272
302
  describe 'initialize_self_service_registration_flow_without_browser test' do
@@ -277,9 +307,9 @@ describe 'V0alpha1Api' do
277
307
 
278
308
  # unit tests for initialize_self_service_settings_flow_for_browsers
279
309
  # Initialize Settings Flow for Browsers
280
- # 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. 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).
310
+ # 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 401 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. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;session_inactive&#x60;: No Ory Session was found - sign in a user first. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in 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).
281
311
  # @param [Hash] opts the optional parameters
282
- # @option opts [String] :cookie The Session Cookie of the Identity performing the settings flow.
312
+ # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
283
313
  # @return [SelfServiceSettingsFlow]
284
314
  describe 'initialize_self_service_settings_flow_for_browsers test' do
285
315
  it 'should work' do
@@ -289,7 +319,7 @@ describe 'V0alpha1Api' do
289
319
 
290
320
  # unit tests for initialize_self_service_settings_flow_without_browser
291
321
  # Initialize Settings Flow for APIs, Services, Apps, ...
292
- # 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. 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).
322
+ # 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. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;session_inactive&#x60;: No Ory Session was found - sign in a user first. 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).
293
323
  # @param [Hash] opts the optional parameters
294
324
  # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
295
325
  # @return [SelfServiceSettingsFlow]
@@ -303,6 +333,7 @@ describe 'V0alpha1Api' do
303
333
  # Initialize Verification Flow for Browser Clients
304
334
  # 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).
305
335
  # @param [Hash] opts the optional parameters
336
+ # @option opts [String] :return_to The URL to return the browser to after the flow was completed.
306
337
  # @return [SelfServiceVerificationFlow]
307
338
  describe 'initialize_self_service_verification_flow_for_browsers test' do
308
339
  it 'should work' do
@@ -321,11 +352,24 @@ describe 'V0alpha1Api' do
321
352
  end
322
353
  end
323
354
 
355
+ # unit tests for list_identity_schemas
356
+ # Get all Identity Schemas
357
+ # @param [Hash] opts the optional parameters
358
+ # @option opts [Integer] :per_page Items per Page This is the number of items per page.
359
+ # @option opts [Integer] :page Pagination Page
360
+ # @return [Array<IdentitySchema>]
361
+ describe 'list_identity_schemas test' do
362
+ it 'should work' do
363
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
364
+ end
365
+ end
366
+
324
367
  # unit tests for submit_self_service_login_flow
325
368
  # Submit a Login Flow
326
- # :::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).
369
+ # :::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. If this endpoint is called with &#x60;Accept: application/json&#x60; in the header, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in the configuration! &#x60;browser_location_change_required&#x60;: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. 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).
327
370
  # @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;).
328
371
  # @param [Hash] opts the optional parameters
372
+ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
329
373
  # @option opts [SubmitSelfServiceLoginFlowBody] :submit_self_service_login_flow_body
330
374
  # @return [SuccessfulSelfServiceLoginWithoutBrowser]
331
375
  describe 'submit_self_service_login_flow test' do
@@ -339,6 +383,7 @@ describe 'V0alpha1Api' do
339
383
  # 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).
340
384
  # @param [Hash] opts the optional parameters
341
385
  # @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.
386
+ # @option opts [String] :return_to The URL to return to after the logout was completed.
342
387
  # @return [nil]
343
388
  describe 'submit_self_service_logout_flow test' do
344
389
  it 'should work' do
@@ -374,7 +419,7 @@ describe 'V0alpha1Api' do
374
419
 
375
420
  # unit tests for submit_self_service_registration_flow
376
421
  # Submit a Registration Flow
377
- # 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).
422
+ # 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. If this endpoint is called with &#x60;Accept: application/json&#x60; in the header, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_already_available&#x60;: The user is already signed in. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in the configuration! &#x60;browser_location_change_required&#x60;: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. 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).
378
423
  # @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;).
379
424
  # @param [Hash] opts the optional parameters
380
425
  # @option opts [SubmitSelfServiceRegistrationFlowBody] :submit_self_service_registration_flow_body
@@ -387,12 +432,12 @@ describe 'V0alpha1Api' do
387
432
 
388
433
  # unit tests for submit_self_service_settings_flow
389
434
  # Complete Settings Flow
390
- # 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. 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. 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. HTTP 400 on form validation errors. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
435
+ # 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 401 when the endpoint is called without a valid session cookie. 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. If this endpoint is called with a &#x60;Accept: application/json&#x60; HTTP header, the response contains the flow without a redirect. In the case of an error, the &#x60;error.id&#x60; of the JSON response body can be one of: &#x60;session_refresh_required&#x60;: The identity requested to change something that needs a privileged session. Redirect the identity to the login init endpoint with query parameters &#x60;?refresh&#x3D;true&amp;return_to&#x3D;&lt;the-current-browser-url&gt;&#x60;, or initiate a refresh login flow otherwise. &#x60;security_csrf_violation&#x60;: Unable to fetch the flow because a CSRF violation occurred. &#x60;session_inactive&#x60;: No Ory Session was found - sign in a user first. &#x60;security_identity_mismatch&#x60;: The flow was interrupted with &#x60;session_refresh_required&#x60; but apparently some other identity logged in instead. &#x60;security_identity_mismatch&#x60;: The requested &#x60;?return_to&#x60; address is not allowed to be used. Adjust this in the configuration! &#x60;browser_location_change_required&#x60;: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Settings &amp; Profile Management Documentation](../self-service/flows/user-settings).
391
436
  # @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;).
392
437
  # @param [Hash] opts the optional parameters
393
438
  # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
394
439
  # @option opts [SubmitSelfServiceSettingsFlowBody] :submit_self_service_settings_flow_body
395
- # @return [SuccessfulSelfServiceSettingsWithoutBrowser]
440
+ # @return [SelfServiceSettingsFlow]
396
441
  describe 'submit_self_service_settings_flow test' do
397
442
  it 'should work' do
398
443
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -415,7 +460,7 @@ describe 'V0alpha1Api' do
415
460
 
416
461
  # unit tests for to_session
417
462
  # Check Who the Current HTTP Session Belongs To
418
- # 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; 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.
463
+ # 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 status code 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. As explained above, this request may fail due to several reasons. The &#x60;error.id&#x60; can be one of: &#x60;session_inactive&#x60;: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). &#x60;session_aal2_required&#x60;: An active session was found but it does not fulfil the Authenticator Assurance Level, implying that the session must (e.g.) authenticate the second factor.
419
464
  # @param [Hash] opts the optional parameters
420
465
  # @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;.
421
466
  # @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.
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.7.6-alpha.7
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.7.6-alpha.7
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.7.6-alpha.7
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1
@@ -31,6 +31,12 @@ describe OryKratosClient::AdminCreateIdentityBody do
31
31
  end
32
32
  end
33
33
 
34
+ describe 'test attribute "state"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
34
40
  describe 'test attribute "traits"' do
35
41
  it 'should work' do
36
42
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.7.6-alpha.7
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.7.6-alpha.7
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1
@@ -0,0 +1,28 @@
1
+ =begin
2
+ #Ory Kratos API
3
+
4
+ #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
+
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
+ Contact: hi@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
+ require 'date'
16
+
17
+ # Unit tests for OryKratosClient::AuthenticatorAssuranceLevel
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OryKratosClient::AuthenticatorAssuranceLevel do
21
+ let(:instance) { OryKratosClient::AuthenticatorAssuranceLevel.new }
22
+
23
+ describe 'test an instance of AuthenticatorAssuranceLevel' do
24
+ it 'should create an instance of AuthenticatorAssuranceLevel' do
25
+ expect(instance).to be_instance_of(OryKratosClient::AuthenticatorAssuranceLevel)
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,82 @@
1
+ =begin
2
+ #Ory Kratos API
3
+
4
+ #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
+
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
+ Contact: hi@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
+ require 'date'
16
+
17
+ # Unit tests for OryKratosClient::ErrorAuthenticatorAssuranceLevelNotSatisfied
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OryKratosClient::ErrorAuthenticatorAssuranceLevelNotSatisfied do
21
+ let(:instance) { OryKratosClient::ErrorAuthenticatorAssuranceLevelNotSatisfied.new }
22
+
23
+ describe 'test an instance of ErrorAuthenticatorAssuranceLevelNotSatisfied' do
24
+ it 'should create an instance of ErrorAuthenticatorAssuranceLevelNotSatisfied' do
25
+ expect(instance).to be_instance_of(OryKratosClient::ErrorAuthenticatorAssuranceLevelNotSatisfied)
26
+ end
27
+ end
28
+ describe 'test attribute "code"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "debug"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "details"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "id"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "message"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "reason"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "redirect_browser_to"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ describe 'test attribute "request"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ describe 'test attribute "status"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.7.6-alpha.7
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1
@@ -43,6 +43,12 @@ describe OryKratosClient::GenericError do
43
43
  end
44
44
  end
45
45
 
46
+ describe 'test attribute "id"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
46
52
  describe 'test attribute "message"' do
47
53
  it 'should work' do
48
54
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.7.6-alpha.7
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.7.6-alpha.7
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.7.6-alpha.7
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1
@@ -0,0 +1,28 @@
1
+ =begin
2
+ #Ory Kratos API
3
+
4
+ #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
+
6
+ The version of the OpenAPI document: v0.8.0-alpha.2
7
+ Contact: hi@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
+ require 'date'
16
+
17
+ # Unit tests for OryKratosClient::IdentityCredentialsType
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe OryKratosClient::IdentityCredentialsType do
21
+ let(:instance) { OryKratosClient::IdentityCredentialsType.new }
22
+
23
+ describe 'test an instance of IdentityCredentialsType' do
24
+ it 'should create an instance of IdentityCredentialsType' do
25
+ expect(instance).to be_instance_of(OryKratosClient::IdentityCredentialsType)
26
+ end
27
+ end
28
+ end