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.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +57 -40
- data/docs/AdminCreateIdentityBody.md +2 -0
- data/docs/AuthenticatorAssuranceLevel.md +15 -0
- data/docs/ErrorAuthenticatorAssuranceLevelNotSatisfied.md +34 -0
- data/docs/GenericError.md +2 -0
- data/docs/IdentityCredentials.md +1 -1
- data/docs/IdentityCredentialsType.md +15 -0
- data/docs/IdentitySchema.md +20 -0
- data/docs/MetadataApi.md +0 -61
- data/docs/NeedsPrivilegedSessionError.md +34 -0
- data/docs/SelfServiceBrowserLocationChangeRequiredError.md +34 -0
- data/docs/SelfServiceFlowExpiredError.md +36 -0
- data/docs/SelfServiceLoginFlow.md +7 -3
- data/docs/SelfServiceLogoutUrl.md +3 -1
- data/docs/SelfServiceRecoveryFlow.md +2 -0
- data/docs/SelfServiceRegistrationFlow.md +3 -1
- data/docs/SelfServiceSettingsFlow.md +2 -0
- data/docs/SelfServiceVerificationFlow.md +2 -0
- data/docs/Session.md +7 -3
- data/docs/SessionAuthenticationMethod.md +20 -0
- data/docs/SessionDevice.md +18 -0
- data/docs/SubmitSelfServiceLoginFlowBody.md +5 -2
- data/docs/SubmitSelfServiceLoginFlowWithLookupSecretMethodBody.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +3 -1
- data/docs/SubmitSelfServiceLoginFlowWithTotpMethodBody.md +22 -0
- data/docs/SubmitSelfServiceLoginFlowWithWebAuthnMethodBody.md +22 -0
- data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +3 -1
- data/docs/SubmitSelfServiceSettingsFlowBody.md +5 -2
- data/docs/SubmitSelfServiceSettingsFlowWithLookupMethodBody.md +28 -0
- data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +2 -0
- data/docs/SubmitSelfServiceSettingsFlowWithTotpMethodBody.md +24 -0
- data/docs/SubmitSelfServiceSettingsFlowWithWebAuthnMethodBody.md +26 -0
- data/docs/UiNode.md +1 -1
- data/docs/UiNodeAnchorAttributes.md +4 -0
- data/docs/UiNodeAttributes.md +34 -0
- data/docs/UiNodeImageAttributes.md +9 -1
- data/docs/UiNodeInputAttributes.md +4 -0
- data/docs/{Meta.md → UiNodeMeta.md} +2 -2
- data/docs/UiNodeScriptAttributes.md +32 -0
- data/docs/UiNodeTextAttributes.md +4 -0
- data/docs/{V0alpha1Api.md → V0alpha2Api.md} +405 -172
- data/lib/ory-kratos-client/api/metadata_api.rb +1 -56
- data/lib/ory-kratos-client/api/{v0alpha1_api.rb → v0alpha2_api.rb} +372 -149
- data/lib/ory-kratos-client/api_client.rb +1 -1
- data/lib/ory-kratos-client/api_error.rb +1 -1
- data/lib/ory-kratos-client/configuration.rb +1 -1
- data/lib/ory-kratos-client/models/admin_create_identity_body.rb +11 -2
- data/lib/ory-kratos-client/models/admin_create_self_service_recovery_link_body.rb +1 -1
- data/lib/ory-kratos-client/models/admin_update_identity_body.rb +1 -1
- data/lib/ory-kratos-client/models/authenticator_assurance_level.rb +39 -0
- data/lib/ory-kratos-client/models/error_authenticator_assurance_level_not_satisfied.rb +305 -0
- data/lib/ory-kratos-client/models/generic_error.rb +12 -2
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-kratos-client/models/health_status.rb +1 -1
- data/lib/ory-kratos-client/models/identity.rb +1 -1
- data/lib/ory-kratos-client/models/identity_credentials.rb +2 -3
- data/lib/ory-kratos-client/models/identity_credentials_type.rb +38 -0
- data/lib/ory-kratos-client/models/{successful_self_service_settings_without_browser.rb → identity_schema.rb} +19 -28
- data/lib/ory-kratos-client/models/identity_state.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response200.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response2001.rb +1 -1
- data/lib/ory-kratos-client/models/inline_response503.rb +1 -1
- data/lib/ory-kratos-client/models/json_error.rb +1 -1
- data/lib/ory-kratos-client/models/needs_privileged_session_error.rb +311 -0
- data/lib/ory-kratos-client/models/recovery_address.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_browser_location_change_required_error.rb +306 -0
- data/lib/ory-kratos-client/models/self_service_error.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_flow_expired_error.rb +316 -0
- data/lib/ory-kratos-client/models/self_service_login_flow.rb +32 -14
- data/lib/ory-kratos-client/models/self_service_logout_url.rb +18 -3
- data/lib/ory-kratos-client/models/self_service_recovery_flow.rb +12 -2
- data/lib/ory-kratos-client/models/self_service_recovery_flow_state.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_recovery_link.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_registration_flow.rb +13 -4
- data/lib/ory-kratos-client/models/self_service_settings_flow.rb +12 -2
- data/lib/ory-kratos-client/models/self_service_settings_flow_state.rb +1 -1
- data/lib/ory-kratos-client/models/self_service_verification_flow.rb +12 -2
- data/lib/ory-kratos-client/models/self_service_verification_flow_state.rb +1 -1
- data/lib/ory-kratos-client/models/session.rb +26 -5
- data/lib/ory-kratos-client/models/session_authentication_method.rb +263 -0
- data/lib/ory-kratos-client/models/session_device.rb +219 -0
- data/lib/ory-kratos-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_body.rb +5 -3
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_lookup_secret_method_body.rb +249 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +16 -6
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_totp_method_body.rb +249 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_web_authn_method_body.rb +244 -0
- data/lib/ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +16 -6
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_body.rb +5 -3
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_lookup_method_body.rb +274 -0
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +12 -2
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_totp_method_body.rb +254 -0
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_web_authn_method_body.rb +264 -0
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_body.rb +1 -1
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body.rb +1 -1
- data/lib/ory-kratos-client/models/successful_self_service_login_without_browser.rb +1 -1
- data/lib/ory-kratos-client/models/successful_self_service_registration_without_browser.rb +1 -1
- data/lib/ory-kratos-client/models/ui_container.rb +1 -1
- data/lib/ory-kratos-client/models/ui_node.rb +2 -2
- data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +31 -2
- data/lib/ory-kratos-client/models/ui_node_attributes.rb +23 -69
- data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +54 -5
- data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +26 -2
- data/lib/ory-kratos-client/models/{meta.rb → ui_node_meta.rb} +4 -4
- data/lib/ory-kratos-client/models/ui_node_script_attributes.rb +328 -0
- data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +31 -2
- data/lib/ory-kratos-client/models/ui_text.rb +1 -1
- data/lib/ory-kratos-client/models/verifiable_identity_address.rb +1 -1
- data/lib/ory-kratos-client/models/version.rb +1 -1
- data/lib/ory-kratos-client/version.rb +2 -2
- data/lib/ory-kratos-client.rb +19 -4
- data/ory-kratos-client.gemspec +1 -1
- data/spec/api/metadata_api_spec.rb +1 -12
- data/spec/api/{v0alpha1_api_spec.rb → v0alpha2_api_spec.rb} +67 -22
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/admin_create_identity_body_spec.rb +7 -1
- data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +1 -1
- data/spec/models/admin_update_identity_body_spec.rb +1 -1
- data/spec/models/authenticator_assurance_level_spec.rb +28 -0
- data/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +82 -0
- data/spec/models/generic_error_spec.rb +7 -1
- data/spec/models/health_not_ready_status_spec.rb +1 -1
- data/spec/models/health_status_spec.rb +1 -1
- data/spec/models/identity_credentials_spec.rb +1 -1
- data/spec/models/identity_credentials_type_spec.rb +28 -0
- data/spec/models/{successful_self_service_settings_without_browser_spec.rb → identity_schema_spec.rb} +9 -9
- data/spec/models/identity_spec.rb +1 -1
- data/spec/models/identity_state_spec.rb +1 -1
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/inline_response503_spec.rb +1 -1
- data/spec/models/json_error_spec.rb +1 -1
- data/spec/models/needs_privileged_session_error_spec.rb +82 -0
- data/spec/models/recovery_address_spec.rb +1 -1
- data/spec/models/self_service_browser_location_change_required_error_spec.rb +82 -0
- data/spec/models/self_service_error_spec.rb +1 -1
- data/spec/models/self_service_flow_expired_error_spec.rb +88 -0
- data/spec/models/self_service_login_flow_spec.rb +16 -4
- data/spec/models/self_service_logout_url_spec.rb +7 -1
- data/spec/models/self_service_recovery_flow_spec.rb +7 -1
- data/spec/models/self_service_recovery_flow_state_spec.rb +1 -1
- data/spec/models/self_service_recovery_link_spec.rb +1 -1
- data/spec/models/self_service_registration_flow_spec.rb +7 -1
- data/spec/models/self_service_settings_flow_spec.rb +7 -1
- data/spec/models/self_service_settings_flow_state_spec.rb +1 -1
- data/spec/models/self_service_verification_flow_spec.rb +7 -1
- data/spec/models/self_service_verification_flow_state_spec.rb +1 -1
- data/spec/models/session_authentication_method_spec.rb +44 -0
- data/spec/models/session_device_spec.rb +34 -0
- data/spec/models/session_spec.rb +13 -1
- data/spec/models/settings_profile_form_config_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_lookup_secret_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +7 -1
- data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_login_flow_with_totp_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_with_web_authn_method_body_spec.rb +46 -0
- data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +7 -1
- data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_lookup_method_body_spec.rb +64 -0
- data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +7 -1
- data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +1 -1
- data/spec/models/submit_self_service_settings_flow_with_totp_method_body_spec.rb +52 -0
- data/spec/models/submit_self_service_settings_flow_with_web_authn_method_body_spec.rb +58 -0
- data/spec/models/submit_self_service_verification_flow_body_spec.rb +1 -1
- data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +1 -1
- data/spec/models/successful_self_service_login_without_browser_spec.rb +1 -1
- data/spec/models/successful_self_service_registration_without_browser_spec.rb +1 -1
- data/spec/models/ui_container_spec.rb +1 -1
- data/spec/models/ui_node_anchor_attributes_spec.rb +13 -1
- data/spec/models/ui_node_attributes_spec.rb +13 -1
- data/spec/models/ui_node_image_attributes_spec.rb +25 -1
- data/spec/models/ui_node_input_attributes_spec.rb +13 -1
- data/spec/models/{meta_spec.rb → ui_node_meta_spec.rb} +7 -7
- data/spec/models/ui_node_script_attributes_spec.rb +76 -0
- data/spec/models/ui_node_spec.rb +1 -1
- data/spec/models/ui_node_text_attributes_spec.rb +13 -1
- data/spec/models/ui_text_spec.rb +1 -1
- data/spec/models/verifiable_identity_address_spec.rb +1 -1
- data/spec/models/version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/cache/ethon-0.15.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.2.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.15.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0/jaro_winkler-1.5.4/gem_make.out +2 -2
- 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
- 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
- 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
- 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
- data/vendor/bundle/ruby/2.5.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/.github/workflows/ruby.yml +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/.rspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/CHANGELOG.md +5 -1
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/Guardfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/README.md +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/ethon.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curl.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/classes.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/codes.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/constants.rb +17 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/form_options.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/functions.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/infos.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/messages.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/options.rb +33 -2
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/curls/settings.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/callbacks.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/debug_info.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/features.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/form.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/header.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/actionable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/custom.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/delete.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/get.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/head.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/options.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/patch.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/post.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/postable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/put.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http/putable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/http.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/informations.rb +19 -1
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/mirror.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/operations.rb +1 -15
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/options.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/params.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/queryable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/response_callbacks.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy/util.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/easy.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/ethon_error.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/global_init.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/invalid_option.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/invalid_value.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_add.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_fdset.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_remove.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/multi_timeout.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors/select.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/errors.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/libc.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/loggable.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi/operations.rb +45 -8
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi/options.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi/stack.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/multi.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon/version.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/lib/ethon.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/benchmarks.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/memory_leaks.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/perf_spec_helper.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/profile/support/memory_test_helpers.rb +0 -0
- 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
- 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
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/curl_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/callbacks_spec.rb +0 -0
- 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
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/features_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/form_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/header_spec.rb +0 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/http_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/informations_spec.rb +22 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/mirror_spec.rb +1 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/operations_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/queryable_spec.rb +0 -0
- 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
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy/util_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/easy_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/libc_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/loggable_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/multi/operations_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/multi/options_spec.rb +182 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/ethon/multi/stack_spec.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ethon-0.15.0/spec/ethon/multi_spec.rb +152 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/spec_helper.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/support/localhost_server.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{ethon-0.14.0 → ethon-0.15.0}/spec/support/server.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ffi-1.15.4/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/.gitignore +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/Gemfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/Mavenfile +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/README.md +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/Rakefile +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/bin/console +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/bin/setup +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/.sitearchdir.time +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/Makefile +2 -2
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/api.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/depend +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/dumper.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/extconf.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/loader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1/lib → psych-4.0.2/ext/psych}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_emitter.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_parser.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_to_ruby.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_to_ruby.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_yaml_tree.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_yaml_tree.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/reader.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/scanner.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/writer.o +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/LICENSE +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/api.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/config.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/dumper.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/emitter.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/loader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/parser.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/reader.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/scanner.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/writer.c +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/yaml.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/ext/psych/yaml/yaml_private.h +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/class_loader.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/coder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/core_ext.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/exception.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/handler.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/handlers/document_stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/handlers/recorder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/ruby_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/json/yaml_events.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/alias.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/document.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/mapping.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/node.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/scalar.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/sequence.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/nodes.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/omap.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/parser.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/scalar_scanner.rb +8 -9
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/set.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/stream.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/streaming.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/syntax_error.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/tree_builder.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/versions.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/depth_first.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/emitter.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/json_tree.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/to_ruby.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/visitor.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors/yaml_tree.rb +2 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/visitors.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych/y.rb +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/lib/psych.rb +1 -1
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1/ext/psych → psych-4.0.2/lib}/psych.so +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/{psych-4.0.1 → psych-4.0.2}/psych.gemspec +0 -0
- data/vendor/bundle/ruby/2.5.0/specifications/{ethon-0.14.0.gemspec → ethon-0.15.0.gemspec} +3 -3
- data/vendor/bundle/ruby/2.5.0/specifications/{psych-4.0.1.gemspec → psych-4.0.2.gemspec} +3 -3
- metadata +271 -211
- data/docs/SuccessfulSelfServiceSettingsWithoutBrowser.md +0 -20
- data/vendor/bundle/ruby/2.5.0/cache/ethon-0.14.0.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/cache/psych-4.0.1.gem +0 -0
- data/vendor/bundle/ruby/2.5.0/gems/ethon-0.14.0/spec/ethon/multi/options_spec.rb +0 -69
- 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.
|
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,7 +13,7 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module OryKratosClient
|
16
|
-
class
|
16
|
+
class V0alpha2Api
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -36,7 +36,7 @@ module OryKratosClient
|
|
36
36
|
# @return [Array<(Identity, Integer, Hash)>] Identity data, response status code and response headers
|
37
37
|
def admin_create_identity_with_http_info(opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_create_identity ...'
|
40
40
|
end
|
41
41
|
# resource path
|
42
42
|
local_var_path = '/identities'
|
@@ -64,7 +64,7 @@ module OryKratosClient
|
|
64
64
|
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
65
65
|
|
66
66
|
new_options = opts.merge(
|
67
|
-
:operation => :"
|
67
|
+
:operation => :"V0alpha2Api.admin_create_identity",
|
68
68
|
:header_params => header_params,
|
69
69
|
:query_params => query_params,
|
70
70
|
:form_params => form_params,
|
@@ -75,7 +75,7 @@ module OryKratosClient
|
|
75
75
|
|
76
76
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
77
77
|
if @api_client.config.debugging
|
78
|
-
@api_client.config.logger.debug "API called:
|
78
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#admin_create_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
79
|
end
|
80
80
|
return data, status_code, headers
|
81
81
|
end
|
@@ -97,7 +97,7 @@ module OryKratosClient
|
|
97
97
|
# @return [Array<(SelfServiceRecoveryLink, Integer, Hash)>] SelfServiceRecoveryLink data, response status code and response headers
|
98
98
|
def admin_create_self_service_recovery_link_with_http_info(opts = {})
|
99
99
|
if @api_client.config.debugging
|
100
|
-
@api_client.config.logger.debug 'Calling API:
|
100
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_create_self_service_recovery_link ...'
|
101
101
|
end
|
102
102
|
# resource path
|
103
103
|
local_var_path = '/recovery/link'
|
@@ -125,7 +125,7 @@ module OryKratosClient
|
|
125
125
|
auth_names = opts[:debug_auth_names] || []
|
126
126
|
|
127
127
|
new_options = opts.merge(
|
128
|
-
:operation => :"
|
128
|
+
:operation => :"V0alpha2Api.admin_create_self_service_recovery_link",
|
129
129
|
:header_params => header_params,
|
130
130
|
:query_params => query_params,
|
131
131
|
:form_params => form_params,
|
@@ -136,7 +136,7 @@ module OryKratosClient
|
|
136
136
|
|
137
137
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
138
138
|
if @api_client.config.debugging
|
139
|
-
@api_client.config.logger.debug "API called:
|
139
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#admin_create_self_service_recovery_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
140
140
|
end
|
141
141
|
return data, status_code, headers
|
142
142
|
end
|
@@ -158,11 +158,11 @@ module OryKratosClient
|
|
158
158
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
159
159
|
def admin_delete_identity_with_http_info(id, opts = {})
|
160
160
|
if @api_client.config.debugging
|
161
|
-
@api_client.config.logger.debug 'Calling API:
|
161
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_delete_identity ...'
|
162
162
|
end
|
163
163
|
# verify the required parameter 'id' is set
|
164
164
|
if @api_client.config.client_side_validation && id.nil?
|
165
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
165
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_delete_identity"
|
166
166
|
end
|
167
167
|
# resource path
|
168
168
|
local_var_path = '/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
@@ -188,7 +188,7 @@ module OryKratosClient
|
|
188
188
|
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
189
189
|
|
190
190
|
new_options = opts.merge(
|
191
|
-
:operation => :"
|
191
|
+
:operation => :"V0alpha2Api.admin_delete_identity",
|
192
192
|
:header_params => header_params,
|
193
193
|
:query_params => query_params,
|
194
194
|
:form_params => form_params,
|
@@ -199,7 +199,70 @@ module OryKratosClient
|
|
199
199
|
|
200
200
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
201
201
|
if @api_client.config.debugging
|
202
|
-
@api_client.config.logger.debug "API called:
|
202
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#admin_delete_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
|
+
end
|
204
|
+
return data, status_code, headers
|
205
|
+
end
|
206
|
+
|
207
|
+
# Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity.
|
208
|
+
# This endpoint is useful for: To forcefully logout Identity from all devices and sessions
|
209
|
+
# @param id [String] ID is the identity's ID.
|
210
|
+
# @param [Hash] opts the optional parameters
|
211
|
+
# @return [nil]
|
212
|
+
def admin_delete_identity_sessions(id, opts = {})
|
213
|
+
admin_delete_identity_sessions_with_http_info(id, opts)
|
214
|
+
nil
|
215
|
+
end
|
216
|
+
|
217
|
+
# Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity.
|
218
|
+
# This endpoint is useful for: To forcefully logout Identity from all devices and sessions
|
219
|
+
# @param id [String] ID is the identity's ID.
|
220
|
+
# @param [Hash] opts the optional parameters
|
221
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
222
|
+
def admin_delete_identity_sessions_with_http_info(id, opts = {})
|
223
|
+
if @api_client.config.debugging
|
224
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_delete_identity_sessions ...'
|
225
|
+
end
|
226
|
+
# verify the required parameter 'id' is set
|
227
|
+
if @api_client.config.client_side_validation && id.nil?
|
228
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_delete_identity_sessions"
|
229
|
+
end
|
230
|
+
# resource path
|
231
|
+
local_var_path = '/identities/{id}/sessions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
232
|
+
|
233
|
+
# query parameters
|
234
|
+
query_params = opts[:query_params] || {}
|
235
|
+
|
236
|
+
# header parameters
|
237
|
+
header_params = opts[:header_params] || {}
|
238
|
+
# HTTP header 'Accept' (if needed)
|
239
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
240
|
+
|
241
|
+
# form parameters
|
242
|
+
form_params = opts[:form_params] || {}
|
243
|
+
|
244
|
+
# http body (model)
|
245
|
+
post_body = opts[:debug_body]
|
246
|
+
|
247
|
+
# return_type
|
248
|
+
return_type = opts[:debug_return_type]
|
249
|
+
|
250
|
+
# auth_names
|
251
|
+
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
252
|
+
|
253
|
+
new_options = opts.merge(
|
254
|
+
:operation => :"V0alpha2Api.admin_delete_identity_sessions",
|
255
|
+
:header_params => header_params,
|
256
|
+
:query_params => query_params,
|
257
|
+
:form_params => form_params,
|
258
|
+
:body => post_body,
|
259
|
+
:auth_names => auth_names,
|
260
|
+
:return_type => return_type
|
261
|
+
)
|
262
|
+
|
263
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
264
|
+
if @api_client.config.debugging
|
265
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#admin_delete_identity_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
266
|
end
|
204
267
|
return data, status_code, headers
|
205
268
|
end
|
@@ -208,6 +271,7 @@ module OryKratosClient
|
|
208
271
|
# Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
|
209
272
|
# @param id [String] ID must be set to the ID of identity you want to get
|
210
273
|
# @param [Hash] opts the optional parameters
|
274
|
+
# @option opts [Array<String>] :include_credential DeclassifyCredentials will declassify one or more identity's credentials Currently, only `oidc` is supported. This will return the initial OAuth 2.0 Access, Refresh and (optionally) OpenID Connect ID Token.
|
211
275
|
# @return [Identity]
|
212
276
|
def admin_get_identity(id, opts = {})
|
213
277
|
data, _status_code, _headers = admin_get_identity_with_http_info(id, opts)
|
@@ -218,20 +282,22 @@ module OryKratosClient
|
|
218
282
|
# Learn how identities work in [Ory Kratos' User And Identity Model Documentation](https://www.ory.sh/docs/next/kratos/concepts/identity-user-model).
|
219
283
|
# @param id [String] ID must be set to the ID of identity you want to get
|
220
284
|
# @param [Hash] opts the optional parameters
|
285
|
+
# @option opts [Array<String>] :include_credential DeclassifyCredentials will declassify one or more identity's credentials Currently, only `oidc` is supported. This will return the initial OAuth 2.0 Access, Refresh and (optionally) OpenID Connect ID Token.
|
221
286
|
# @return [Array<(Identity, Integer, Hash)>] Identity data, response status code and response headers
|
222
287
|
def admin_get_identity_with_http_info(id, opts = {})
|
223
288
|
if @api_client.config.debugging
|
224
|
-
@api_client.config.logger.debug 'Calling API:
|
289
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_get_identity ...'
|
225
290
|
end
|
226
291
|
# verify the required parameter 'id' is set
|
227
292
|
if @api_client.config.client_side_validation && id.nil?
|
228
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
293
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_get_identity"
|
229
294
|
end
|
230
295
|
# resource path
|
231
296
|
local_var_path = '/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
232
297
|
|
233
298
|
# query parameters
|
234
299
|
query_params = opts[:query_params] || {}
|
300
|
+
query_params[:'include_credential'] = @api_client.build_collection_param(opts[:'include_credential'], :multi) if !opts[:'include_credential'].nil?
|
235
301
|
|
236
302
|
# header parameters
|
237
303
|
header_params = opts[:header_params] || {}
|
@@ -251,7 +317,7 @@ module OryKratosClient
|
|
251
317
|
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
252
318
|
|
253
319
|
new_options = opts.merge(
|
254
|
-
:operation => :"
|
320
|
+
:operation => :"V0alpha2Api.admin_get_identity",
|
255
321
|
:header_params => header_params,
|
256
322
|
:query_params => query_params,
|
257
323
|
:form_params => form_params,
|
@@ -262,7 +328,7 @@ module OryKratosClient
|
|
262
328
|
|
263
329
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
264
330
|
if @api_client.config.debugging
|
265
|
-
@api_client.config.logger.debug "API called:
|
331
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#admin_get_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
266
332
|
end
|
267
333
|
return data, status_code, headers
|
268
334
|
end
|
@@ -286,18 +352,18 @@ module OryKratosClient
|
|
286
352
|
# @return [Array<(Array<Identity>, Integer, Hash)>] Array<Identity> data, response status code and response headers
|
287
353
|
def admin_list_identities_with_http_info(opts = {})
|
288
354
|
if @api_client.config.debugging
|
289
|
-
@api_client.config.logger.debug 'Calling API:
|
355
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_list_identities ...'
|
290
356
|
end
|
291
357
|
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 500
|
292
|
-
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling
|
358
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.admin_list_identities, must be smaller than or equal to 500.'
|
293
359
|
end
|
294
360
|
|
295
361
|
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
|
296
|
-
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling
|
362
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.admin_list_identities, must be greater than or equal to 1.'
|
297
363
|
end
|
298
364
|
|
299
365
|
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
|
300
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling
|
366
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling V0alpha2Api.admin_list_identities, must be greater than or equal to 0.'
|
301
367
|
end
|
302
368
|
|
303
369
|
# resource path
|
@@ -326,7 +392,7 @@ module OryKratosClient
|
|
326
392
|
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
327
393
|
|
328
394
|
new_options = opts.merge(
|
329
|
-
:operation => :"
|
395
|
+
:operation => :"V0alpha2Api.admin_list_identities",
|
330
396
|
:header_params => header_params,
|
331
397
|
:query_params => query_params,
|
332
398
|
:form_params => form_params,
|
@@ -337,7 +403,7 @@ module OryKratosClient
|
|
337
403
|
|
338
404
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
339
405
|
if @api_client.config.debugging
|
340
|
-
@api_client.config.logger.debug "API called:
|
406
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#admin_list_identities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
341
407
|
end
|
342
408
|
return data, status_code, headers
|
343
409
|
end
|
@@ -361,11 +427,11 @@ module OryKratosClient
|
|
361
427
|
# @return [Array<(Identity, Integer, Hash)>] Identity data, response status code and response headers
|
362
428
|
def admin_update_identity_with_http_info(id, opts = {})
|
363
429
|
if @api_client.config.debugging
|
364
|
-
@api_client.config.logger.debug 'Calling API:
|
430
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.admin_update_identity ...'
|
365
431
|
end
|
366
432
|
# verify the required parameter 'id' is set
|
367
433
|
if @api_client.config.client_side_validation && id.nil?
|
368
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
434
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.admin_update_identity"
|
369
435
|
end
|
370
436
|
# resource path
|
371
437
|
local_var_path = '/identities/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
@@ -393,7 +459,7 @@ module OryKratosClient
|
|
393
459
|
auth_names = opts[:debug_auth_names] || ['oryAccessToken']
|
394
460
|
|
395
461
|
new_options = opts.merge(
|
396
|
-
:operation => :"
|
462
|
+
:operation => :"V0alpha2Api.admin_update_identity",
|
397
463
|
:header_params => header_params,
|
398
464
|
:query_params => query_params,
|
399
465
|
:form_params => form_params,
|
@@ -404,7 +470,7 @@ module OryKratosClient
|
|
404
470
|
|
405
471
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
406
472
|
if @api_client.config.debugging
|
407
|
-
@api_client.config.logger.debug "API called:
|
473
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#admin_update_identity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
408
474
|
end
|
409
475
|
return data, status_code, headers
|
410
476
|
end
|
@@ -426,7 +492,7 @@ module OryKratosClient
|
|
426
492
|
# @return [Array<(SelfServiceLogoutUrl, Integer, Hash)>] SelfServiceLogoutUrl data, response status code and response headers
|
427
493
|
def create_self_service_logout_flow_url_for_browsers_with_http_info(opts = {})
|
428
494
|
if @api_client.config.debugging
|
429
|
-
@api_client.config.logger.debug 'Calling API:
|
495
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.create_self_service_logout_flow_url_for_browsers ...'
|
430
496
|
end
|
431
497
|
# resource path
|
432
498
|
local_var_path = '/self-service/logout/browser'
|
@@ -453,7 +519,7 @@ module OryKratosClient
|
|
453
519
|
auth_names = opts[:debug_auth_names] || []
|
454
520
|
|
455
521
|
new_options = opts.merge(
|
456
|
-
:operation => :"
|
522
|
+
:operation => :"V0alpha2Api.create_self_service_logout_flow_url_for_browsers",
|
457
523
|
:header_params => header_params,
|
458
524
|
:query_params => query_params,
|
459
525
|
:form_params => form_params,
|
@@ -464,7 +530,7 @@ module OryKratosClient
|
|
464
530
|
|
465
531
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
466
532
|
if @api_client.config.debugging
|
467
|
-
@api_client.config.logger.debug "API called:
|
533
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#create_self_service_logout_flow_url_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
468
534
|
end
|
469
535
|
return data, status_code, headers
|
470
536
|
end
|
@@ -484,11 +550,11 @@ module OryKratosClient
|
|
484
550
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
485
551
|
def get_json_schema_with_http_info(id, opts = {})
|
486
552
|
if @api_client.config.debugging
|
487
|
-
@api_client.config.logger.debug 'Calling API:
|
553
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.get_json_schema ...'
|
488
554
|
end
|
489
555
|
# verify the required parameter 'id' is set
|
490
556
|
if @api_client.config.client_side_validation && id.nil?
|
491
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
557
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_json_schema"
|
492
558
|
end
|
493
559
|
# resource path
|
494
560
|
local_var_path = '/schemas/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
@@ -514,7 +580,7 @@ module OryKratosClient
|
|
514
580
|
auth_names = opts[:debug_auth_names] || []
|
515
581
|
|
516
582
|
new_options = opts.merge(
|
517
|
-
:operation => :"
|
583
|
+
:operation => :"V0alpha2Api.get_json_schema",
|
518
584
|
:header_params => header_params,
|
519
585
|
:query_params => query_params,
|
520
586
|
:form_params => form_params,
|
@@ -525,7 +591,7 @@ module OryKratosClient
|
|
525
591
|
|
526
592
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
527
593
|
if @api_client.config.debugging
|
528
|
-
@api_client.config.logger.debug "API called:
|
594
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#get_json_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
529
595
|
end
|
530
596
|
return data, status_code, headers
|
531
597
|
end
|
@@ -547,11 +613,11 @@ module OryKratosClient
|
|
547
613
|
# @return [Array<(SelfServiceError, Integer, Hash)>] SelfServiceError data, response status code and response headers
|
548
614
|
def get_self_service_error_with_http_info(id, opts = {})
|
549
615
|
if @api_client.config.debugging
|
550
|
-
@api_client.config.logger.debug 'Calling API:
|
616
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_error ...'
|
551
617
|
end
|
552
618
|
# verify the required parameter 'id' is set
|
553
619
|
if @api_client.config.client_side_validation && id.nil?
|
554
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
620
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_error"
|
555
621
|
end
|
556
622
|
# resource path
|
557
623
|
local_var_path = '/self-service/errors'
|
@@ -578,7 +644,7 @@ module OryKratosClient
|
|
578
644
|
auth_names = opts[:debug_auth_names] || []
|
579
645
|
|
580
646
|
new_options = opts.merge(
|
581
|
-
:operation => :"
|
647
|
+
:operation => :"V0alpha2Api.get_self_service_error",
|
582
648
|
:header_params => header_params,
|
583
649
|
:query_params => query_params,
|
584
650
|
:form_params => form_params,
|
@@ -589,13 +655,13 @@ module OryKratosClient
|
|
589
655
|
|
590
656
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
591
657
|
if @api_client.config.debugging
|
592
|
-
@api_client.config.logger.debug "API called:
|
658
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_error\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
593
659
|
end
|
594
660
|
return data, status_code, headers
|
595
661
|
end
|
596
662
|
|
597
663
|
# Get Login Flow
|
598
|
-
# This endpoint returns a login flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request'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: ```js pseudo-code example router.get('/login', async function (req, res) { const flow = await client.getSelfServiceLoginFlow(req.header('cookie'), req.query['flow']) res.render('login', flow) }) ``` 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).
|
664
|
+
# This endpoint returns a login flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request'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: ```js pseudo-code example router.get('/login', async function (req, res) { const flow = await client.getSelfServiceLoginFlow(req.header('cookie'), req.query['flow']) res.render('login', flow) }) ``` This request may fail due to several reasons. The `error.id` can be one of: `session_already_available`: The user is already signed in. `self_service_flow_expired`: 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).
|
599
665
|
# @param id [String] The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`).
|
600
666
|
# @param [Hash] opts the optional parameters
|
601
667
|
# @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.
|
@@ -606,18 +672,18 @@ module OryKratosClient
|
|
606
672
|
end
|
607
673
|
|
608
674
|
# Get Login Flow
|
609
|
-
# This endpoint returns a login flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request'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: ```js pseudo-code example router.get('/login', async function (req, res) { const flow = await client.getSelfServiceLoginFlow(req.header('cookie'), req.query['flow']) res.render('login', flow) }) ``` 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).
|
675
|
+
# This endpoint returns a login flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request'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: ```js pseudo-code example router.get('/login', async function (req, res) { const flow = await client.getSelfServiceLoginFlow(req.header('cookie'), req.query['flow']) res.render('login', flow) }) ``` This request may fail due to several reasons. The `error.id` can be one of: `session_already_available`: The user is already signed in. `self_service_flow_expired`: 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).
|
610
676
|
# @param id [String] The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`).
|
611
677
|
# @param [Hash] opts the optional parameters
|
612
678
|
# @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.
|
613
679
|
# @return [Array<(SelfServiceLoginFlow, Integer, Hash)>] SelfServiceLoginFlow data, response status code and response headers
|
614
680
|
def get_self_service_login_flow_with_http_info(id, opts = {})
|
615
681
|
if @api_client.config.debugging
|
616
|
-
@api_client.config.logger.debug 'Calling API:
|
682
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_login_flow ...'
|
617
683
|
end
|
618
684
|
# verify the required parameter 'id' is set
|
619
685
|
if @api_client.config.client_side_validation && id.nil?
|
620
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
686
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_login_flow"
|
621
687
|
end
|
622
688
|
# resource path
|
623
689
|
local_var_path = '/self-service/login/flows'
|
@@ -645,7 +711,7 @@ module OryKratosClient
|
|
645
711
|
auth_names = opts[:debug_auth_names] || []
|
646
712
|
|
647
713
|
new_options = opts.merge(
|
648
|
-
:operation => :"
|
714
|
+
:operation => :"V0alpha2Api.get_self_service_login_flow",
|
649
715
|
:header_params => header_params,
|
650
716
|
:query_params => query_params,
|
651
717
|
:form_params => form_params,
|
@@ -656,7 +722,7 @@ module OryKratosClient
|
|
656
722
|
|
657
723
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
658
724
|
if @api_client.config.debugging
|
659
|
-
@api_client.config.logger.debug "API called:
|
725
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_login_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
660
726
|
end
|
661
727
|
return data, status_code, headers
|
662
728
|
end
|
@@ -680,11 +746,11 @@ module OryKratosClient
|
|
680
746
|
# @return [Array<(SelfServiceRecoveryFlow, Integer, Hash)>] SelfServiceRecoveryFlow data, response status code and response headers
|
681
747
|
def get_self_service_recovery_flow_with_http_info(id, opts = {})
|
682
748
|
if @api_client.config.debugging
|
683
|
-
@api_client.config.logger.debug 'Calling API:
|
749
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_recovery_flow ...'
|
684
750
|
end
|
685
751
|
# verify the required parameter 'id' is set
|
686
752
|
if @api_client.config.client_side_validation && id.nil?
|
687
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
753
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_recovery_flow"
|
688
754
|
end
|
689
755
|
# resource path
|
690
756
|
local_var_path = '/self-service/recovery/flows'
|
@@ -712,7 +778,7 @@ module OryKratosClient
|
|
712
778
|
auth_names = opts[:debug_auth_names] || []
|
713
779
|
|
714
780
|
new_options = opts.merge(
|
715
|
-
:operation => :"
|
781
|
+
:operation => :"V0alpha2Api.get_self_service_recovery_flow",
|
716
782
|
:header_params => header_params,
|
717
783
|
:query_params => query_params,
|
718
784
|
:form_params => form_params,
|
@@ -723,13 +789,13 @@ module OryKratosClient
|
|
723
789
|
|
724
790
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
725
791
|
if @api_client.config.debugging
|
726
|
-
@api_client.config.logger.debug "API called:
|
792
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_recovery_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
727
793
|
end
|
728
794
|
return data, status_code, headers
|
729
795
|
end
|
730
796
|
|
731
797
|
# Get Registration Flow
|
732
|
-
# This endpoint returns a registration flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request'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: ```js pseudo-code example router.get('/registration', async function (req, res) { const flow = await client.getSelfServiceRegistrationFlow(req.header('cookie'), req.query['flow']) res.render('registration', flow) }) ``` 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).
|
798
|
+
# This endpoint returns a registration flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request'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: ```js pseudo-code example router.get('/registration', async function (req, res) { const flow = await client.getSelfServiceRegistrationFlow(req.header('cookie'), req.query['flow']) res.render('registration', flow) }) ``` This request may fail due to several reasons. The `error.id` can be one of: `session_already_available`: The user is already signed in. `self_service_flow_expired`: 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).
|
733
799
|
# @param id [String] The Registration Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/registration?flow=abcde`).
|
734
800
|
# @param [Hash] opts the optional parameters
|
735
801
|
# @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.
|
@@ -740,18 +806,18 @@ module OryKratosClient
|
|
740
806
|
end
|
741
807
|
|
742
808
|
# Get Registration Flow
|
743
|
-
# This endpoint returns a registration flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request'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: ```js pseudo-code example router.get('/registration', async function (req, res) { const flow = await client.getSelfServiceRegistrationFlow(req.header('cookie'), req.query['flow']) res.render('registration', flow) }) ``` 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).
|
809
|
+
# This endpoint returns a registration flow's context with, for example, error details and other information. Browser flows expect the anti-CSRF cookie to be included in the request'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: ```js pseudo-code example router.get('/registration', async function (req, res) { const flow = await client.getSelfServiceRegistrationFlow(req.header('cookie'), req.query['flow']) res.render('registration', flow) }) ``` This request may fail due to several reasons. The `error.id` can be one of: `session_already_available`: The user is already signed in. `self_service_flow_expired`: 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).
|
744
810
|
# @param id [String] The Registration Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/registration?flow=abcde`).
|
745
811
|
# @param [Hash] opts the optional parameters
|
746
812
|
# @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.
|
747
813
|
# @return [Array<(SelfServiceRegistrationFlow, Integer, Hash)>] SelfServiceRegistrationFlow data, response status code and response headers
|
748
814
|
def get_self_service_registration_flow_with_http_info(id, opts = {})
|
749
815
|
if @api_client.config.debugging
|
750
|
-
@api_client.config.logger.debug 'Calling API:
|
816
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_registration_flow ...'
|
751
817
|
end
|
752
818
|
# verify the required parameter 'id' is set
|
753
819
|
if @api_client.config.client_side_validation && id.nil?
|
754
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
820
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_registration_flow"
|
755
821
|
end
|
756
822
|
# resource path
|
757
823
|
local_var_path = '/self-service/registration/flows'
|
@@ -779,7 +845,7 @@ module OryKratosClient
|
|
779
845
|
auth_names = opts[:debug_auth_names] || []
|
780
846
|
|
781
847
|
new_options = opts.merge(
|
782
|
-
:operation => :"
|
848
|
+
:operation => :"V0alpha2Api.get_self_service_registration_flow",
|
783
849
|
:header_params => header_params,
|
784
850
|
:query_params => query_params,
|
785
851
|
:form_params => form_params,
|
@@ -790,13 +856,13 @@ module OryKratosClient
|
|
790
856
|
|
791
857
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
792
858
|
if @api_client.config.debugging
|
793
|
-
@api_client.config.logger.debug "API called:
|
859
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_registration_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
794
860
|
end
|
795
861
|
return data, status_code, headers
|
796
862
|
end
|
797
863
|
|
798
864
|
# Get Settings Flow
|
799
|
-
# When accessing this endpoint through Ory Kratos' Public API you must ensure that either the Ory Kratos Session Cookie or the Ory Kratos Session Token are set.
|
865
|
+
# When accessing this endpoint through Ory Kratos' 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' 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 `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The flow was interrupted with `session_refresh_required` but apparently some other identity logged in instead. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
800
866
|
# @param id [String] ID is the Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`).
|
801
867
|
# @param [Hash] opts the optional parameters
|
802
868
|
# @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.
|
@@ -808,7 +874,7 @@ module OryKratosClient
|
|
808
874
|
end
|
809
875
|
|
810
876
|
# Get Settings Flow
|
811
|
-
# When accessing this endpoint through Ory Kratos' Public API you must ensure that either the Ory Kratos Session Cookie or the Ory Kratos Session Token are set.
|
877
|
+
# When accessing this endpoint through Ory Kratos' 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' 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 `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The flow was interrupted with `session_refresh_required` but apparently some other identity logged in instead. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
812
878
|
# @param id [String] ID is the Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`).
|
813
879
|
# @param [Hash] opts the optional parameters
|
814
880
|
# @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.
|
@@ -816,11 +882,11 @@ module OryKratosClient
|
|
816
882
|
# @return [Array<(SelfServiceSettingsFlow, Integer, Hash)>] SelfServiceSettingsFlow data, response status code and response headers
|
817
883
|
def get_self_service_settings_flow_with_http_info(id, opts = {})
|
818
884
|
if @api_client.config.debugging
|
819
|
-
@api_client.config.logger.debug 'Calling API:
|
885
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_settings_flow ...'
|
820
886
|
end
|
821
887
|
# verify the required parameter 'id' is set
|
822
888
|
if @api_client.config.client_side_validation && id.nil?
|
823
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
889
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_settings_flow"
|
824
890
|
end
|
825
891
|
# resource path
|
826
892
|
local_var_path = '/self-service/settings/flows'
|
@@ -849,7 +915,7 @@ module OryKratosClient
|
|
849
915
|
auth_names = opts[:debug_auth_names] || []
|
850
916
|
|
851
917
|
new_options = opts.merge(
|
852
|
-
:operation => :"
|
918
|
+
:operation => :"V0alpha2Api.get_self_service_settings_flow",
|
853
919
|
:header_params => header_params,
|
854
920
|
:query_params => query_params,
|
855
921
|
:form_params => form_params,
|
@@ -860,7 +926,7 @@ module OryKratosClient
|
|
860
926
|
|
861
927
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
862
928
|
if @api_client.config.debugging
|
863
|
-
@api_client.config.logger.debug "API called:
|
929
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_settings_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
864
930
|
end
|
865
931
|
return data, status_code, headers
|
866
932
|
end
|
@@ -884,11 +950,11 @@ module OryKratosClient
|
|
884
950
|
# @return [Array<(SelfServiceVerificationFlow, Integer, Hash)>] SelfServiceVerificationFlow data, response status code and response headers
|
885
951
|
def get_self_service_verification_flow_with_http_info(id, opts = {})
|
886
952
|
if @api_client.config.debugging
|
887
|
-
@api_client.config.logger.debug 'Calling API:
|
953
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.get_self_service_verification_flow ...'
|
888
954
|
end
|
889
955
|
# verify the required parameter 'id' is set
|
890
956
|
if @api_client.config.client_side_validation && id.nil?
|
891
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
957
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling V0alpha2Api.get_self_service_verification_flow"
|
892
958
|
end
|
893
959
|
# resource path
|
894
960
|
local_var_path = '/self-service/verification/flows'
|
@@ -916,7 +982,64 @@ module OryKratosClient
|
|
916
982
|
auth_names = opts[:debug_auth_names] || []
|
917
983
|
|
918
984
|
new_options = opts.merge(
|
919
|
-
:operation => :"
|
985
|
+
:operation => :"V0alpha2Api.get_self_service_verification_flow",
|
986
|
+
:header_params => header_params,
|
987
|
+
:query_params => query_params,
|
988
|
+
:form_params => form_params,
|
989
|
+
:body => post_body,
|
990
|
+
:auth_names => auth_names,
|
991
|
+
:return_type => return_type
|
992
|
+
)
|
993
|
+
|
994
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
995
|
+
if @api_client.config.debugging
|
996
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#get_self_service_verification_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
997
|
+
end
|
998
|
+
return data, status_code, headers
|
999
|
+
end
|
1000
|
+
|
1001
|
+
# Get WebAuthn JavaScript
|
1002
|
+
# 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: ```html <script src=\"https://public-kratos.example.org/.well-known/ory/webauthn.js\" type=\"script\" async /> ``` 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).
|
1003
|
+
# @param [Hash] opts the optional parameters
|
1004
|
+
# @return [String]
|
1005
|
+
def get_web_authn_java_script(opts = {})
|
1006
|
+
data, _status_code, _headers = get_web_authn_java_script_with_http_info(opts)
|
1007
|
+
data
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
# Get WebAuthn JavaScript
|
1011
|
+
# 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: ```html <script src=\"https://public-kratos.example.org/.well-known/ory/webauthn.js\" type=\"script\" async /> ``` 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).
|
1012
|
+
# @param [Hash] opts the optional parameters
|
1013
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
1014
|
+
def get_web_authn_java_script_with_http_info(opts = {})
|
1015
|
+
if @api_client.config.debugging
|
1016
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.get_web_authn_java_script ...'
|
1017
|
+
end
|
1018
|
+
# resource path
|
1019
|
+
local_var_path = '/.well-known/ory/webauthn.js'
|
1020
|
+
|
1021
|
+
# query parameters
|
1022
|
+
query_params = opts[:query_params] || {}
|
1023
|
+
|
1024
|
+
# header parameters
|
1025
|
+
header_params = opts[:header_params] || {}
|
1026
|
+
# HTTP header 'Accept' (if needed)
|
1027
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1028
|
+
|
1029
|
+
# form parameters
|
1030
|
+
form_params = opts[:form_params] || {}
|
1031
|
+
|
1032
|
+
# http body (model)
|
1033
|
+
post_body = opts[:debug_body]
|
1034
|
+
|
1035
|
+
# return_type
|
1036
|
+
return_type = opts[:debug_return_type] || 'String'
|
1037
|
+
|
1038
|
+
# auth_names
|
1039
|
+
auth_names = opts[:debug_auth_names] || []
|
1040
|
+
|
1041
|
+
new_options = opts.merge(
|
1042
|
+
:operation => :"V0alpha2Api.get_web_authn_java_script",
|
920
1043
|
:header_params => header_params,
|
921
1044
|
:query_params => query_params,
|
922
1045
|
:form_params => form_params,
|
@@ -927,15 +1050,17 @@ module OryKratosClient
|
|
927
1050
|
|
928
1051
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
929
1052
|
if @api_client.config.debugging
|
930
|
-
@api_client.config.logger.debug "API called:
|
1053
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#get_web_authn_java_script\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
931
1054
|
end
|
932
1055
|
return data, status_code, headers
|
933
1056
|
end
|
934
1057
|
|
935
1058
|
# Initialize Login Flow for Browsers
|
936
|
-
# 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 `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` was set. If this endpoint is called via an AJAX request, the response contains the
|
1059
|
+
# 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 `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` 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 `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` 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).
|
937
1060
|
# @param [Hash] opts the optional parameters
|
938
1061
|
# @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.
|
1062
|
+
# @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session'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 \"upgrade\" the session's security by asking the user to perform TOTP / WebAuth/ ... you would set this to \"aal2\".
|
1063
|
+
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
939
1064
|
# @return [SelfServiceLoginFlow]
|
940
1065
|
def initialize_self_service_login_flow_for_browsers(opts = {})
|
941
1066
|
data, _status_code, _headers = initialize_self_service_login_flow_for_browsers_with_http_info(opts)
|
@@ -943,13 +1068,15 @@ module OryKratosClient
|
|
943
1068
|
end
|
944
1069
|
|
945
1070
|
# Initialize Login Flow for Browsers
|
946
|
-
# 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 `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` was set. If this endpoint is called via an AJAX request, the response contains the
|
1071
|
+
# 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 `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` 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 `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` 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).
|
947
1072
|
# @param [Hash] opts the optional parameters
|
948
1073
|
# @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.
|
1074
|
+
# @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session'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 \"upgrade\" the session's security by asking the user to perform TOTP / WebAuth/ ... you would set this to \"aal2\".
|
1075
|
+
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
949
1076
|
# @return [Array<(SelfServiceLoginFlow, Integer, Hash)>] SelfServiceLoginFlow data, response status code and response headers
|
950
1077
|
def initialize_self_service_login_flow_for_browsers_with_http_info(opts = {})
|
951
1078
|
if @api_client.config.debugging
|
952
|
-
@api_client.config.logger.debug 'Calling API:
|
1079
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_login_flow_for_browsers ...'
|
953
1080
|
end
|
954
1081
|
# resource path
|
955
1082
|
local_var_path = '/self-service/login/browser'
|
@@ -957,6 +1084,8 @@ module OryKratosClient
|
|
957
1084
|
# query parameters
|
958
1085
|
query_params = opts[:query_params] || {}
|
959
1086
|
query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
|
1087
|
+
query_params[:'aal'] = opts[:'aal'] if !opts[:'aal'].nil?
|
1088
|
+
query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
|
960
1089
|
|
961
1090
|
# header parameters
|
962
1091
|
header_params = opts[:header_params] || {}
|
@@ -976,7 +1105,7 @@ module OryKratosClient
|
|
976
1105
|
auth_names = opts[:debug_auth_names] || []
|
977
1106
|
|
978
1107
|
new_options = opts.merge(
|
979
|
-
:operation => :"
|
1108
|
+
:operation => :"V0alpha2Api.initialize_self_service_login_flow_for_browsers",
|
980
1109
|
:header_params => header_params,
|
981
1110
|
:query_params => query_params,
|
982
1111
|
:form_params => form_params,
|
@@ -987,15 +1116,17 @@ module OryKratosClient
|
|
987
1116
|
|
988
1117
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
989
1118
|
if @api_client.config.debugging
|
990
|
-
@api_client.config.logger.debug "API called:
|
1119
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_login_flow_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
991
1120
|
end
|
992
1121
|
return data, status_code, headers
|
993
1122
|
end
|
994
1123
|
|
995
1124
|
# Initialize Login Flow for APIs, Services, Apps, ...
|
996
|
-
# 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 `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=<flow_id>`. 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).
|
1125
|
+
# 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 `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=<flow_id>`. 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 `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: 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).
|
997
1126
|
# @param [Hash] opts the optional parameters
|
998
1127
|
# @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.
|
1128
|
+
# @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session'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 \"upgrade\" the session's security by asking the user to perform TOTP / WebAuth/ ... you would set this to \"aal2\".
|
1129
|
+
# @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
|
999
1130
|
# @return [SelfServiceLoginFlow]
|
1000
1131
|
def initialize_self_service_login_flow_without_browser(opts = {})
|
1001
1132
|
data, _status_code, _headers = initialize_self_service_login_flow_without_browser_with_http_info(opts)
|
@@ -1003,13 +1134,15 @@ module OryKratosClient
|
|
1003
1134
|
end
|
1004
1135
|
|
1005
1136
|
# Initialize Login Flow for APIs, Services, Apps, ...
|
1006
|
-
# 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 `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=<flow_id>`. 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).
|
1137
|
+
# 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 `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=<flow_id>`. 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 `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: 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).
|
1007
1138
|
# @param [Hash] opts the optional parameters
|
1008
1139
|
# @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.
|
1140
|
+
# @option opts [String] :aal Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session'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 \"upgrade\" the session's security by asking the user to perform TOTP / WebAuth/ ... you would set this to \"aal2\".
|
1141
|
+
# @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
|
1009
1142
|
# @return [Array<(SelfServiceLoginFlow, Integer, Hash)>] SelfServiceLoginFlow data, response status code and response headers
|
1010
1143
|
def initialize_self_service_login_flow_without_browser_with_http_info(opts = {})
|
1011
1144
|
if @api_client.config.debugging
|
1012
|
-
@api_client.config.logger.debug 'Calling API:
|
1145
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_login_flow_without_browser ...'
|
1013
1146
|
end
|
1014
1147
|
# resource path
|
1015
1148
|
local_var_path = '/self-service/login/api'
|
@@ -1017,11 +1150,13 @@ module OryKratosClient
|
|
1017
1150
|
# query parameters
|
1018
1151
|
query_params = opts[:query_params] || {}
|
1019
1152
|
query_params[:'refresh'] = opts[:'refresh'] if !opts[:'refresh'].nil?
|
1153
|
+
query_params[:'aal'] = opts[:'aal'] if !opts[:'aal'].nil?
|
1020
1154
|
|
1021
1155
|
# header parameters
|
1022
1156
|
header_params = opts[:header_params] || {}
|
1023
1157
|
# HTTP header 'Accept' (if needed)
|
1024
1158
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1159
|
+
header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
|
1025
1160
|
|
1026
1161
|
# form parameters
|
1027
1162
|
form_params = opts[:form_params] || {}
|
@@ -1036,7 +1171,7 @@ module OryKratosClient
|
|
1036
1171
|
auth_names = opts[:debug_auth_names] || []
|
1037
1172
|
|
1038
1173
|
new_options = opts.merge(
|
1039
|
-
:operation => :"
|
1174
|
+
:operation => :"V0alpha2Api.initialize_self_service_login_flow_without_browser",
|
1040
1175
|
:header_params => header_params,
|
1041
1176
|
:query_params => query_params,
|
1042
1177
|
:form_params => form_params,
|
@@ -1047,7 +1182,7 @@ module OryKratosClient
|
|
1047
1182
|
|
1048
1183
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1049
1184
|
if @api_client.config.debugging
|
1050
|
-
@api_client.config.logger.debug "API called:
|
1185
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_login_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1051
1186
|
end
|
1052
1187
|
return data, status_code, headers
|
1053
1188
|
end
|
@@ -1055,6 +1190,7 @@ module OryKratosClient
|
|
1055
1190
|
# Initialize Recovery Flow for Browsers
|
1056
1191
|
# This endpoint initializes a browser-based account recovery flow. Once initialized, the browser will be redirected to `selfservice.flows.recovery.ui_url` with the flow ID set as the query parameter `?flow=`. 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).
|
1057
1192
|
# @param [Hash] opts the optional parameters
|
1193
|
+
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
1058
1194
|
# @return [SelfServiceRecoveryFlow]
|
1059
1195
|
def initialize_self_service_recovery_flow_for_browsers(opts = {})
|
1060
1196
|
data, _status_code, _headers = initialize_self_service_recovery_flow_for_browsers_with_http_info(opts)
|
@@ -1064,16 +1200,18 @@ module OryKratosClient
|
|
1064
1200
|
# Initialize Recovery Flow for Browsers
|
1065
1201
|
# This endpoint initializes a browser-based account recovery flow. Once initialized, the browser will be redirected to `selfservice.flows.recovery.ui_url` with the flow ID set as the query parameter `?flow=`. 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).
|
1066
1202
|
# @param [Hash] opts the optional parameters
|
1203
|
+
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
1067
1204
|
# @return [Array<(SelfServiceRecoveryFlow, Integer, Hash)>] SelfServiceRecoveryFlow data, response status code and response headers
|
1068
1205
|
def initialize_self_service_recovery_flow_for_browsers_with_http_info(opts = {})
|
1069
1206
|
if @api_client.config.debugging
|
1070
|
-
@api_client.config.logger.debug 'Calling API:
|
1207
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_recovery_flow_for_browsers ...'
|
1071
1208
|
end
|
1072
1209
|
# resource path
|
1073
1210
|
local_var_path = '/self-service/recovery/browser'
|
1074
1211
|
|
1075
1212
|
# query parameters
|
1076
1213
|
query_params = opts[:query_params] || {}
|
1214
|
+
query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
|
1077
1215
|
|
1078
1216
|
# header parameters
|
1079
1217
|
header_params = opts[:header_params] || {}
|
@@ -1093,7 +1231,7 @@ module OryKratosClient
|
|
1093
1231
|
auth_names = opts[:debug_auth_names] || []
|
1094
1232
|
|
1095
1233
|
new_options = opts.merge(
|
1096
|
-
:operation => :"
|
1234
|
+
:operation => :"V0alpha2Api.initialize_self_service_recovery_flow_for_browsers",
|
1097
1235
|
:header_params => header_params,
|
1098
1236
|
:query_params => query_params,
|
1099
1237
|
:form_params => form_params,
|
@@ -1104,7 +1242,7 @@ module OryKratosClient
|
|
1104
1242
|
|
1105
1243
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1106
1244
|
if @api_client.config.debugging
|
1107
|
-
@api_client.config.logger.debug "API called:
|
1245
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_recovery_flow_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1108
1246
|
end
|
1109
1247
|
return data, status_code, headers
|
1110
1248
|
end
|
@@ -1124,7 +1262,7 @@ module OryKratosClient
|
|
1124
1262
|
# @return [Array<(SelfServiceRecoveryFlow, Integer, Hash)>] SelfServiceRecoveryFlow data, response status code and response headers
|
1125
1263
|
def initialize_self_service_recovery_flow_without_browser_with_http_info(opts = {})
|
1126
1264
|
if @api_client.config.debugging
|
1127
|
-
@api_client.config.logger.debug 'Calling API:
|
1265
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_recovery_flow_without_browser ...'
|
1128
1266
|
end
|
1129
1267
|
# resource path
|
1130
1268
|
local_var_path = '/self-service/recovery/api'
|
@@ -1150,7 +1288,7 @@ module OryKratosClient
|
|
1150
1288
|
auth_names = opts[:debug_auth_names] || []
|
1151
1289
|
|
1152
1290
|
new_options = opts.merge(
|
1153
|
-
:operation => :"
|
1291
|
+
:operation => :"V0alpha2Api.initialize_self_service_recovery_flow_without_browser",
|
1154
1292
|
:header_params => header_params,
|
1155
1293
|
:query_params => query_params,
|
1156
1294
|
:form_params => form_params,
|
@@ -1161,14 +1299,15 @@ module OryKratosClient
|
|
1161
1299
|
|
1162
1300
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1163
1301
|
if @api_client.config.debugging
|
1164
|
-
@api_client.config.logger.debug "API called:
|
1302
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_recovery_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1165
1303
|
end
|
1166
1304
|
return data, status_code, headers
|
1167
1305
|
end
|
1168
1306
|
|
1169
1307
|
# Initialize Registration Flow for Browsers
|
1170
|
-
# 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 `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. 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).
|
1308
|
+
# 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 `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` 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).
|
1171
1309
|
# @param [Hash] opts the optional parameters
|
1310
|
+
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
1172
1311
|
# @return [SelfServiceRegistrationFlow]
|
1173
1312
|
def initialize_self_service_registration_flow_for_browsers(opts = {})
|
1174
1313
|
data, _status_code, _headers = initialize_self_service_registration_flow_for_browsers_with_http_info(opts)
|
@@ -1176,18 +1315,20 @@ module OryKratosClient
|
|
1176
1315
|
end
|
1177
1316
|
|
1178
1317
|
# Initialize Registration Flow for Browsers
|
1179
|
-
# 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 `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. 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).
|
1318
|
+
# 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 `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` 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).
|
1180
1319
|
# @param [Hash] opts the optional parameters
|
1320
|
+
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
1181
1321
|
# @return [Array<(SelfServiceRegistrationFlow, Integer, Hash)>] SelfServiceRegistrationFlow data, response status code and response headers
|
1182
1322
|
def initialize_self_service_registration_flow_for_browsers_with_http_info(opts = {})
|
1183
1323
|
if @api_client.config.debugging
|
1184
|
-
@api_client.config.logger.debug 'Calling API:
|
1324
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_registration_flow_for_browsers ...'
|
1185
1325
|
end
|
1186
1326
|
# resource path
|
1187
1327
|
local_var_path = '/self-service/registration/browser'
|
1188
1328
|
|
1189
1329
|
# query parameters
|
1190
1330
|
query_params = opts[:query_params] || {}
|
1331
|
+
query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
|
1191
1332
|
|
1192
1333
|
# header parameters
|
1193
1334
|
header_params = opts[:header_params] || {}
|
@@ -1207,7 +1348,7 @@ module OryKratosClient
|
|
1207
1348
|
auth_names = opts[:debug_auth_names] || []
|
1208
1349
|
|
1209
1350
|
new_options = opts.merge(
|
1210
|
-
:operation => :"
|
1351
|
+
:operation => :"V0alpha2Api.initialize_self_service_registration_flow_for_browsers",
|
1211
1352
|
:header_params => header_params,
|
1212
1353
|
:query_params => query_params,
|
1213
1354
|
:form_params => form_params,
|
@@ -1218,13 +1359,13 @@ module OryKratosClient
|
|
1218
1359
|
|
1219
1360
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1220
1361
|
if @api_client.config.debugging
|
1221
|
-
@api_client.config.logger.debug "API called:
|
1362
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_registration_flow_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1222
1363
|
end
|
1223
1364
|
return data, status_code, headers
|
1224
1365
|
end
|
1225
1366
|
|
1226
1367
|
# Initialize Registration Flow for APIs, Services, Apps, ...
|
1227
|
-
# 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 `?refresh=true` is set. To fetch an existing registration flow call `/self-service/registration/flows?flow=<flow_id>`. 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).
|
1368
|
+
# 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 `?refresh=true` is set. To fetch an existing registration flow call `/self-service/registration/flows?flow=<flow_id>`. 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 `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: 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).
|
1228
1369
|
# @param [Hash] opts the optional parameters
|
1229
1370
|
# @return [SelfServiceRegistrationFlow]
|
1230
1371
|
def initialize_self_service_registration_flow_without_browser(opts = {})
|
@@ -1233,12 +1374,12 @@ module OryKratosClient
|
|
1233
1374
|
end
|
1234
1375
|
|
1235
1376
|
# Initialize Registration Flow for APIs, Services, Apps, ...
|
1236
|
-
# 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 `?refresh=true` is set. To fetch an existing registration flow call `/self-service/registration/flows?flow=<flow_id>`. 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).
|
1377
|
+
# 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 `?refresh=true` is set. To fetch an existing registration flow call `/self-service/registration/flows?flow=<flow_id>`. 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 `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: 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).
|
1237
1378
|
# @param [Hash] opts the optional parameters
|
1238
1379
|
# @return [Array<(SelfServiceRegistrationFlow, Integer, Hash)>] SelfServiceRegistrationFlow data, response status code and response headers
|
1239
1380
|
def initialize_self_service_registration_flow_without_browser_with_http_info(opts = {})
|
1240
1381
|
if @api_client.config.debugging
|
1241
|
-
@api_client.config.logger.debug 'Calling API:
|
1382
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_registration_flow_without_browser ...'
|
1242
1383
|
end
|
1243
1384
|
# resource path
|
1244
1385
|
local_var_path = '/self-service/registration/api'
|
@@ -1264,7 +1405,7 @@ module OryKratosClient
|
|
1264
1405
|
auth_names = opts[:debug_auth_names] || []
|
1265
1406
|
|
1266
1407
|
new_options = opts.merge(
|
1267
|
-
:operation => :"
|
1408
|
+
:operation => :"V0alpha2Api.initialize_self_service_registration_flow_without_browser",
|
1268
1409
|
:header_params => header_params,
|
1269
1410
|
:query_params => query_params,
|
1270
1411
|
:form_params => form_params,
|
@@ -1275,15 +1416,15 @@ module OryKratosClient
|
|
1275
1416
|
|
1276
1417
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1277
1418
|
if @api_client.config.debugging
|
1278
|
-
@api_client.config.logger.debug "API called:
|
1419
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_registration_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1279
1420
|
end
|
1280
1421
|
return data, status_code, headers
|
1281
1422
|
end
|
1282
1423
|
|
1283
1424
|
# Initialize Settings Flow for Browsers
|
1284
|
-
# This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. 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 `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. 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
|
1425
|
+
# This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. 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 `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. 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 `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The requested `?return_to` 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 & Profile Management Documentation](../self-service/flows/user-settings).
|
1285
1426
|
# @param [Hash] opts the optional parameters
|
1286
|
-
# @option opts [String] :
|
1427
|
+
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
1287
1428
|
# @return [SelfServiceSettingsFlow]
|
1288
1429
|
def initialize_self_service_settings_flow_for_browsers(opts = {})
|
1289
1430
|
data, _status_code, _headers = initialize_self_service_settings_flow_for_browsers_with_http_info(opts)
|
@@ -1291,25 +1432,25 @@ module OryKratosClient
|
|
1291
1432
|
end
|
1292
1433
|
|
1293
1434
|
# Initialize Settings Flow for Browsers
|
1294
|
-
# This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. 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 `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. 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
|
1435
|
+
# This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. 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 `selfservice.flows.settings.ui_url` with the flow ID set as the query parameter `?flow=`. 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 `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The requested `?return_to` 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 & Profile Management Documentation](../self-service/flows/user-settings).
|
1295
1436
|
# @param [Hash] opts the optional parameters
|
1296
|
-
# @option opts [String] :
|
1437
|
+
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
1297
1438
|
# @return [Array<(SelfServiceSettingsFlow, Integer, Hash)>] SelfServiceSettingsFlow data, response status code and response headers
|
1298
1439
|
def initialize_self_service_settings_flow_for_browsers_with_http_info(opts = {})
|
1299
1440
|
if @api_client.config.debugging
|
1300
|
-
@api_client.config.logger.debug 'Calling API:
|
1441
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_settings_flow_for_browsers ...'
|
1301
1442
|
end
|
1302
1443
|
# resource path
|
1303
1444
|
local_var_path = '/self-service/settings/browser'
|
1304
1445
|
|
1305
1446
|
# query parameters
|
1306
1447
|
query_params = opts[:query_params] || {}
|
1448
|
+
query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
|
1307
1449
|
|
1308
1450
|
# header parameters
|
1309
1451
|
header_params = opts[:header_params] || {}
|
1310
1452
|
# HTTP header 'Accept' (if needed)
|
1311
1453
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1312
|
-
header_params[:'Cookie'] = opts[:'cookie'] if !opts[:'cookie'].nil?
|
1313
1454
|
|
1314
1455
|
# form parameters
|
1315
1456
|
form_params = opts[:form_params] || {}
|
@@ -1324,7 +1465,7 @@ module OryKratosClient
|
|
1324
1465
|
auth_names = opts[:debug_auth_names] || []
|
1325
1466
|
|
1326
1467
|
new_options = opts.merge(
|
1327
|
-
:operation => :"
|
1468
|
+
:operation => :"V0alpha2Api.initialize_self_service_settings_flow_for_browsers",
|
1328
1469
|
:header_params => header_params,
|
1329
1470
|
:query_params => query_params,
|
1330
1471
|
:form_params => form_params,
|
@@ -1335,13 +1476,13 @@ module OryKratosClient
|
|
1335
1476
|
|
1336
1477
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1337
1478
|
if @api_client.config.debugging
|
1338
|
-
@api_client.config.logger.debug "API called:
|
1479
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_settings_flow_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1339
1480
|
end
|
1340
1481
|
return data, status_code, headers
|
1341
1482
|
end
|
1342
1483
|
|
1343
1484
|
# Initialize Settings Flow for APIs, Services, Apps, ...
|
1344
|
-
# 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 `/self-service/settings/flows?flow=<flow_id>`. 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 & Profile Management Documentation](../self-service/flows/user-settings).
|
1485
|
+
# 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 `/self-service/settings/flows?flow=<flow_id>`. 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 `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: 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 & Profile Management Documentation](../self-service/flows/user-settings).
|
1345
1486
|
# @param [Hash] opts the optional parameters
|
1346
1487
|
# @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
|
1347
1488
|
# @return [SelfServiceSettingsFlow]
|
@@ -1351,13 +1492,13 @@ module OryKratosClient
|
|
1351
1492
|
end
|
1352
1493
|
|
1353
1494
|
# Initialize Settings Flow for APIs, Services, Apps, ...
|
1354
|
-
# 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 `/self-service/settings/flows?flow=<flow_id>`. 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 & Profile Management Documentation](../self-service/flows/user-settings).
|
1495
|
+
# 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 `/self-service/settings/flows?flow=<flow_id>`. 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 `error.id` of the JSON response body can be one of: `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: 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 & Profile Management Documentation](../self-service/flows/user-settings).
|
1355
1496
|
# @param [Hash] opts the optional parameters
|
1356
1497
|
# @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
|
1357
1498
|
# @return [Array<(SelfServiceSettingsFlow, Integer, Hash)>] SelfServiceSettingsFlow data, response status code and response headers
|
1358
1499
|
def initialize_self_service_settings_flow_without_browser_with_http_info(opts = {})
|
1359
1500
|
if @api_client.config.debugging
|
1360
|
-
@api_client.config.logger.debug 'Calling API:
|
1501
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_settings_flow_without_browser ...'
|
1361
1502
|
end
|
1362
1503
|
# resource path
|
1363
1504
|
local_var_path = '/self-service/settings/api'
|
@@ -1384,7 +1525,7 @@ module OryKratosClient
|
|
1384
1525
|
auth_names = opts[:debug_auth_names] || []
|
1385
1526
|
|
1386
1527
|
new_options = opts.merge(
|
1387
|
-
:operation => :"
|
1528
|
+
:operation => :"V0alpha2Api.initialize_self_service_settings_flow_without_browser",
|
1388
1529
|
:header_params => header_params,
|
1389
1530
|
:query_params => query_params,
|
1390
1531
|
:form_params => form_params,
|
@@ -1395,7 +1536,7 @@ module OryKratosClient
|
|
1395
1536
|
|
1396
1537
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1397
1538
|
if @api_client.config.debugging
|
1398
|
-
@api_client.config.logger.debug "API called:
|
1539
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_settings_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1399
1540
|
end
|
1400
1541
|
return data, status_code, headers
|
1401
1542
|
end
|
@@ -1403,6 +1544,7 @@ module OryKratosClient
|
|
1403
1544
|
# Initialize Verification Flow for Browser Clients
|
1404
1545
|
# This endpoint initializes a browser-based account verification flow. Once initialized, the browser will be redirected to `selfservice.flows.verification.ui_url` with the flow ID set as the query parameter `?flow=`. 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).
|
1405
1546
|
# @param [Hash] opts the optional parameters
|
1547
|
+
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
1406
1548
|
# @return [SelfServiceVerificationFlow]
|
1407
1549
|
def initialize_self_service_verification_flow_for_browsers(opts = {})
|
1408
1550
|
data, _status_code, _headers = initialize_self_service_verification_flow_for_browsers_with_http_info(opts)
|
@@ -1412,16 +1554,18 @@ module OryKratosClient
|
|
1412
1554
|
# Initialize Verification Flow for Browser Clients
|
1413
1555
|
# This endpoint initializes a browser-based account verification flow. Once initialized, the browser will be redirected to `selfservice.flows.verification.ui_url` with the flow ID set as the query parameter `?flow=`. 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).
|
1414
1556
|
# @param [Hash] opts the optional parameters
|
1557
|
+
# @option opts [String] :return_to The URL to return the browser to after the flow was completed.
|
1415
1558
|
# @return [Array<(SelfServiceVerificationFlow, Integer, Hash)>] SelfServiceVerificationFlow data, response status code and response headers
|
1416
1559
|
def initialize_self_service_verification_flow_for_browsers_with_http_info(opts = {})
|
1417
1560
|
if @api_client.config.debugging
|
1418
|
-
@api_client.config.logger.debug 'Calling API:
|
1561
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_verification_flow_for_browsers ...'
|
1419
1562
|
end
|
1420
1563
|
# resource path
|
1421
1564
|
local_var_path = '/self-service/verification/browser'
|
1422
1565
|
|
1423
1566
|
# query parameters
|
1424
1567
|
query_params = opts[:query_params] || {}
|
1568
|
+
query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
|
1425
1569
|
|
1426
1570
|
# header parameters
|
1427
1571
|
header_params = opts[:header_params] || {}
|
@@ -1441,7 +1585,7 @@ module OryKratosClient
|
|
1441
1585
|
auth_names = opts[:debug_auth_names] || []
|
1442
1586
|
|
1443
1587
|
new_options = opts.merge(
|
1444
|
-
:operation => :"
|
1588
|
+
:operation => :"V0alpha2Api.initialize_self_service_verification_flow_for_browsers",
|
1445
1589
|
:header_params => header_params,
|
1446
1590
|
:query_params => query_params,
|
1447
1591
|
:form_params => form_params,
|
@@ -1452,7 +1596,7 @@ module OryKratosClient
|
|
1452
1596
|
|
1453
1597
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1454
1598
|
if @api_client.config.debugging
|
1455
|
-
@api_client.config.logger.debug "API called:
|
1599
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_verification_flow_for_browsers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1456
1600
|
end
|
1457
1601
|
return data, status_code, headers
|
1458
1602
|
end
|
@@ -1472,7 +1616,7 @@ module OryKratosClient
|
|
1472
1616
|
# @return [Array<(SelfServiceVerificationFlow, Integer, Hash)>] SelfServiceVerificationFlow data, response status code and response headers
|
1473
1617
|
def initialize_self_service_verification_flow_without_browser_with_http_info(opts = {})
|
1474
1618
|
if @api_client.config.debugging
|
1475
|
-
@api_client.config.logger.debug 'Calling API:
|
1619
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.initialize_self_service_verification_flow_without_browser ...'
|
1476
1620
|
end
|
1477
1621
|
# resource path
|
1478
1622
|
local_var_path = '/self-service/verification/api'
|
@@ -1498,7 +1642,7 @@ module OryKratosClient
|
|
1498
1642
|
auth_names = opts[:debug_auth_names] || []
|
1499
1643
|
|
1500
1644
|
new_options = opts.merge(
|
1501
|
-
:operation => :"
|
1645
|
+
:operation => :"V0alpha2Api.initialize_self_service_verification_flow_without_browser",
|
1502
1646
|
:header_params => header_params,
|
1503
1647
|
:query_params => query_params,
|
1504
1648
|
:form_params => form_params,
|
@@ -1509,15 +1653,89 @@ module OryKratosClient
|
|
1509
1653
|
|
1510
1654
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1511
1655
|
if @api_client.config.debugging
|
1512
|
-
@api_client.config.logger.debug "API called:
|
1656
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#initialize_self_service_verification_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1657
|
+
end
|
1658
|
+
return data, status_code, headers
|
1659
|
+
end
|
1660
|
+
|
1661
|
+
# Get all Identity Schemas
|
1662
|
+
# @param [Hash] opts the optional parameters
|
1663
|
+
# @option opts [Integer] :per_page Items per Page This is the number of items per page. (default to 100)
|
1664
|
+
# @option opts [Integer] :page Pagination Page (default to 0)
|
1665
|
+
# @return [Array<IdentitySchema>]
|
1666
|
+
def list_identity_schemas(opts = {})
|
1667
|
+
data, _status_code, _headers = list_identity_schemas_with_http_info(opts)
|
1668
|
+
data
|
1669
|
+
end
|
1670
|
+
|
1671
|
+
# Get all Identity Schemas
|
1672
|
+
# @param [Hash] opts the optional parameters
|
1673
|
+
# @option opts [Integer] :per_page Items per Page This is the number of items per page.
|
1674
|
+
# @option opts [Integer] :page Pagination Page
|
1675
|
+
# @return [Array<(Array<IdentitySchema>, Integer, Hash)>] Array<IdentitySchema> data, response status code and response headers
|
1676
|
+
def list_identity_schemas_with_http_info(opts = {})
|
1677
|
+
if @api_client.config.debugging
|
1678
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.list_identity_schemas ...'
|
1679
|
+
end
|
1680
|
+
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 500
|
1681
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.list_identity_schemas, must be smaller than or equal to 500.'
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
|
1685
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling V0alpha2Api.list_identity_schemas, must be greater than or equal to 1.'
|
1686
|
+
end
|
1687
|
+
|
1688
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
|
1689
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling V0alpha2Api.list_identity_schemas, must be greater than or equal to 0.'
|
1690
|
+
end
|
1691
|
+
|
1692
|
+
# resource path
|
1693
|
+
local_var_path = '/schemas'
|
1694
|
+
|
1695
|
+
# query parameters
|
1696
|
+
query_params = opts[:query_params] || {}
|
1697
|
+
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
1698
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1699
|
+
|
1700
|
+
# header parameters
|
1701
|
+
header_params = opts[:header_params] || {}
|
1702
|
+
# HTTP header 'Accept' (if needed)
|
1703
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1704
|
+
|
1705
|
+
# form parameters
|
1706
|
+
form_params = opts[:form_params] || {}
|
1707
|
+
|
1708
|
+
# http body (model)
|
1709
|
+
post_body = opts[:debug_body]
|
1710
|
+
|
1711
|
+
# return_type
|
1712
|
+
return_type = opts[:debug_return_type] || 'Array<IdentitySchema>'
|
1713
|
+
|
1714
|
+
# auth_names
|
1715
|
+
auth_names = opts[:debug_auth_names] || []
|
1716
|
+
|
1717
|
+
new_options = opts.merge(
|
1718
|
+
:operation => :"V0alpha2Api.list_identity_schemas",
|
1719
|
+
:header_params => header_params,
|
1720
|
+
:query_params => query_params,
|
1721
|
+
:form_params => form_params,
|
1722
|
+
:body => post_body,
|
1723
|
+
:auth_names => auth_names,
|
1724
|
+
:return_type => return_type
|
1725
|
+
)
|
1726
|
+
|
1727
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1728
|
+
if @api_client.config.debugging
|
1729
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#list_identity_schemas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1513
1730
|
end
|
1514
1731
|
return data, status_code, headers
|
1515
1732
|
end
|
1516
1733
|
|
1517
1734
|
# Submit a Login Flow
|
1518
|
-
# :::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 `application/json` 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 `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 302 redirect to the post/after login URL or the `return_to` 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 `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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).
|
1735
|
+
# :::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 `application/json` 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 `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 302 redirect to the post/after login URL or the `return_to` 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 `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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 `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: 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).
|
1519
1736
|
# @param flow [String] The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`).
|
1520
1737
|
# @param [Hash] opts the optional parameters
|
1738
|
+
# @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
|
1521
1739
|
# @option opts [SubmitSelfServiceLoginFlowBody] :submit_self_service_login_flow_body
|
1522
1740
|
# @return [SuccessfulSelfServiceLoginWithoutBrowser]
|
1523
1741
|
def submit_self_service_login_flow(flow, opts = {})
|
@@ -1526,18 +1744,19 @@ module OryKratosClient
|
|
1526
1744
|
end
|
1527
1745
|
|
1528
1746
|
# Submit a Login Flow
|
1529
|
-
# :::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 `application/json` 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 `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 302 redirect to the post/after login URL or the `return_to` 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 `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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).
|
1747
|
+
# :::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 `application/json` 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 `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 302 redirect to the post/after login URL or the `return_to` 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 `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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 `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: 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).
|
1530
1748
|
# @param flow [String] The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`).
|
1531
1749
|
# @param [Hash] opts the optional parameters
|
1750
|
+
# @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
|
1532
1751
|
# @option opts [SubmitSelfServiceLoginFlowBody] :submit_self_service_login_flow_body
|
1533
1752
|
# @return [Array<(SuccessfulSelfServiceLoginWithoutBrowser, Integer, Hash)>] SuccessfulSelfServiceLoginWithoutBrowser data, response status code and response headers
|
1534
1753
|
def submit_self_service_login_flow_with_http_info(flow, opts = {})
|
1535
1754
|
if @api_client.config.debugging
|
1536
|
-
@api_client.config.logger.debug 'Calling API:
|
1755
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_login_flow ...'
|
1537
1756
|
end
|
1538
1757
|
# verify the required parameter 'flow' is set
|
1539
1758
|
if @api_client.config.client_side_validation && flow.nil?
|
1540
|
-
fail ArgumentError, "Missing the required parameter 'flow' when calling
|
1759
|
+
fail ArgumentError, "Missing the required parameter 'flow' when calling V0alpha2Api.submit_self_service_login_flow"
|
1541
1760
|
end
|
1542
1761
|
# resource path
|
1543
1762
|
local_var_path = '/self-service/login'
|
@@ -1552,6 +1771,7 @@ module OryKratosClient
|
|
1552
1771
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1553
1772
|
# HTTP header 'Content-Type'
|
1554
1773
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded'])
|
1774
|
+
header_params[:'X-Session-Token'] = opts[:'x_session_token'] if !opts[:'x_session_token'].nil?
|
1555
1775
|
|
1556
1776
|
# form parameters
|
1557
1777
|
form_params = opts[:form_params] || {}
|
@@ -1566,7 +1786,7 @@ module OryKratosClient
|
|
1566
1786
|
auth_names = opts[:debug_auth_names] || []
|
1567
1787
|
|
1568
1788
|
new_options = opts.merge(
|
1569
|
-
:operation => :"
|
1789
|
+
:operation => :"V0alpha2Api.submit_self_service_login_flow",
|
1570
1790
|
:header_params => header_params,
|
1571
1791
|
:query_params => query_params,
|
1572
1792
|
:form_params => form_params,
|
@@ -1577,7 +1797,7 @@ module OryKratosClient
|
|
1577
1797
|
|
1578
1798
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1579
1799
|
if @api_client.config.debugging
|
1580
|
-
@api_client.config.logger.debug "API called:
|
1800
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_login_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1581
1801
|
end
|
1582
1802
|
return data, status_code, headers
|
1583
1803
|
end
|
@@ -1586,6 +1806,7 @@ module OryKratosClient
|
|
1586
1806
|
# This endpoint logs out an identity in a self-service manner. If the `Accept` HTTP header is not set to `application/json`, the browser will be redirected (HTTP 302 Found) to the `return_to` parameter of the initial request or fall back to `urls.default_return_to`. If the `Accept` HTTP header is set to `application/json`, 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 `/self-service/logout/api` 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).
|
1587
1807
|
# @param [Hash] opts the optional parameters
|
1588
1808
|
# @option opts [String] :token A Valid Logout Token If you do not have a logout token because you only have a session cookie, call `/self-service/logout/urls` to generate a URL for this endpoint.
|
1809
|
+
# @option opts [String] :return_to The URL to return to after the logout was completed.
|
1589
1810
|
# @return [nil]
|
1590
1811
|
def submit_self_service_logout_flow(opts = {})
|
1591
1812
|
submit_self_service_logout_flow_with_http_info(opts)
|
@@ -1596,10 +1817,11 @@ module OryKratosClient
|
|
1596
1817
|
# This endpoint logs out an identity in a self-service manner. If the `Accept` HTTP header is not set to `application/json`, the browser will be redirected (HTTP 302 Found) to the `return_to` parameter of the initial request or fall back to `urls.default_return_to`. If the `Accept` HTTP header is set to `application/json`, 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 `/self-service/logout/api` 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).
|
1597
1818
|
# @param [Hash] opts the optional parameters
|
1598
1819
|
# @option opts [String] :token A Valid Logout Token If you do not have a logout token because you only have a session cookie, call `/self-service/logout/urls` to generate a URL for this endpoint.
|
1820
|
+
# @option opts [String] :return_to The URL to return to after the logout was completed.
|
1599
1821
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1600
1822
|
def submit_self_service_logout_flow_with_http_info(opts = {})
|
1601
1823
|
if @api_client.config.debugging
|
1602
|
-
@api_client.config.logger.debug 'Calling API:
|
1824
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_logout_flow ...'
|
1603
1825
|
end
|
1604
1826
|
# resource path
|
1605
1827
|
local_var_path = '/self-service/logout'
|
@@ -1607,6 +1829,7 @@ module OryKratosClient
|
|
1607
1829
|
# query parameters
|
1608
1830
|
query_params = opts[:query_params] || {}
|
1609
1831
|
query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil?
|
1832
|
+
query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil?
|
1610
1833
|
|
1611
1834
|
# header parameters
|
1612
1835
|
header_params = opts[:header_params] || {}
|
@@ -1626,7 +1849,7 @@ module OryKratosClient
|
|
1626
1849
|
auth_names = opts[:debug_auth_names] || []
|
1627
1850
|
|
1628
1851
|
new_options = opts.merge(
|
1629
|
-
:operation => :"
|
1852
|
+
:operation => :"V0alpha2Api.submit_self_service_logout_flow",
|
1630
1853
|
:header_params => header_params,
|
1631
1854
|
:query_params => query_params,
|
1632
1855
|
:form_params => form_params,
|
@@ -1637,7 +1860,7 @@ module OryKratosClient
|
|
1637
1860
|
|
1638
1861
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1639
1862
|
if @api_client.config.debugging
|
1640
|
-
@api_client.config.logger.debug "API called:
|
1863
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_logout_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1641
1864
|
end
|
1642
1865
|
return data, status_code, headers
|
1643
1866
|
end
|
@@ -1659,11 +1882,11 @@ module OryKratosClient
|
|
1659
1882
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1660
1883
|
def submit_self_service_logout_flow_without_browser_with_http_info(submit_self_service_logout_flow_without_browser_body, opts = {})
|
1661
1884
|
if @api_client.config.debugging
|
1662
|
-
@api_client.config.logger.debug 'Calling API:
|
1885
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_logout_flow_without_browser ...'
|
1663
1886
|
end
|
1664
1887
|
# verify the required parameter 'submit_self_service_logout_flow_without_browser_body' is set
|
1665
1888
|
if @api_client.config.client_side_validation && submit_self_service_logout_flow_without_browser_body.nil?
|
1666
|
-
fail ArgumentError, "Missing the required parameter 'submit_self_service_logout_flow_without_browser_body' when calling
|
1889
|
+
fail ArgumentError, "Missing the required parameter 'submit_self_service_logout_flow_without_browser_body' when calling V0alpha2Api.submit_self_service_logout_flow_without_browser"
|
1667
1890
|
end
|
1668
1891
|
# resource path
|
1669
1892
|
local_var_path = '/self-service/logout/api'
|
@@ -1691,7 +1914,7 @@ module OryKratosClient
|
|
1691
1914
|
auth_names = opts[:debug_auth_names] || []
|
1692
1915
|
|
1693
1916
|
new_options = opts.merge(
|
1694
|
-
:operation => :"
|
1917
|
+
:operation => :"V0alpha2Api.submit_self_service_logout_flow_without_browser",
|
1695
1918
|
:header_params => header_params,
|
1696
1919
|
:query_params => query_params,
|
1697
1920
|
:form_params => form_params,
|
@@ -1702,7 +1925,7 @@ module OryKratosClient
|
|
1702
1925
|
|
1703
1926
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1704
1927
|
if @api_client.config.debugging
|
1705
|
-
@api_client.config.logger.debug "API called:
|
1928
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_logout_flow_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1706
1929
|
end
|
1707
1930
|
return data, status_code, headers
|
1708
1931
|
end
|
@@ -1728,11 +1951,11 @@ module OryKratosClient
|
|
1728
1951
|
# @return [Array<(SelfServiceRecoveryFlow, Integer, Hash)>] SelfServiceRecoveryFlow data, response status code and response headers
|
1729
1952
|
def submit_self_service_recovery_flow_with_http_info(flow, opts = {})
|
1730
1953
|
if @api_client.config.debugging
|
1731
|
-
@api_client.config.logger.debug 'Calling API:
|
1954
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_recovery_flow ...'
|
1732
1955
|
end
|
1733
1956
|
# verify the required parameter 'flow' is set
|
1734
1957
|
if @api_client.config.client_side_validation && flow.nil?
|
1735
|
-
fail ArgumentError, "Missing the required parameter 'flow' when calling
|
1958
|
+
fail ArgumentError, "Missing the required parameter 'flow' when calling V0alpha2Api.submit_self_service_recovery_flow"
|
1736
1959
|
end
|
1737
1960
|
# resource path
|
1738
1961
|
local_var_path = '/self-service/recovery'
|
@@ -1762,7 +1985,7 @@ module OryKratosClient
|
|
1762
1985
|
auth_names = opts[:debug_auth_names] || []
|
1763
1986
|
|
1764
1987
|
new_options = opts.merge(
|
1765
|
-
:operation => :"
|
1988
|
+
:operation => :"V0alpha2Api.submit_self_service_recovery_flow",
|
1766
1989
|
:header_params => header_params,
|
1767
1990
|
:query_params => query_params,
|
1768
1991
|
:form_params => form_params,
|
@@ -1773,13 +1996,13 @@ module OryKratosClient
|
|
1773
1996
|
|
1774
1997
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1775
1998
|
if @api_client.config.debugging
|
1776
|
-
@api_client.config.logger.debug "API called:
|
1999
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_recovery_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1777
2000
|
end
|
1778
2001
|
return data, status_code, headers
|
1779
2002
|
end
|
1780
2003
|
|
1781
2004
|
# Submit a Registration Flow
|
1782
|
-
# Use this endpoint to complete a registration flow by sending an identity's traits and password. This endpoint behaves differently for API and browser flows. API flows expect `application/json` 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 `session` and `session_token` 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 `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 302 redirect to the post/after registration URL or the `return_to` 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 `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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).
|
2005
|
+
# Use this endpoint to complete a registration flow by sending an identity's traits and password. This endpoint behaves differently for API and browser flows. API flows expect `application/json` 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 `session` and `session_token` 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 `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 302 redirect to the post/after registration URL or the `return_to` 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 `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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 `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: 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).
|
1783
2006
|
# @param flow [String] The Registration Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/registration?flow=abcde`).
|
1784
2007
|
# @param [Hash] opts the optional parameters
|
1785
2008
|
# @option opts [SubmitSelfServiceRegistrationFlowBody] :submit_self_service_registration_flow_body
|
@@ -1790,18 +2013,18 @@ module OryKratosClient
|
|
1790
2013
|
end
|
1791
2014
|
|
1792
2015
|
# Submit a Registration Flow
|
1793
|
-
# Use this endpoint to complete a registration flow by sending an identity's traits and password. This endpoint behaves differently for API and browser flows. API flows expect `application/json` 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 `session` and `session_token` 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 `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 302 redirect to the post/after registration URL or the `return_to` 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 `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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).
|
2016
|
+
# Use this endpoint to complete a registration flow by sending an identity's traits and password. This endpoint behaves differently for API and browser flows. API flows expect `application/json` 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 `session` and `session_token` 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 `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 302 redirect to the post/after registration URL or the `return_to` 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 `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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 `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: 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).
|
1794
2017
|
# @param flow [String] The Registration Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/registration?flow=abcde`).
|
1795
2018
|
# @param [Hash] opts the optional parameters
|
1796
2019
|
# @option opts [SubmitSelfServiceRegistrationFlowBody] :submit_self_service_registration_flow_body
|
1797
2020
|
# @return [Array<(SuccessfulSelfServiceRegistrationWithoutBrowser, Integer, Hash)>] SuccessfulSelfServiceRegistrationWithoutBrowser data, response status code and response headers
|
1798
2021
|
def submit_self_service_registration_flow_with_http_info(flow, opts = {})
|
1799
2022
|
if @api_client.config.debugging
|
1800
|
-
@api_client.config.logger.debug 'Calling API:
|
2023
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_registration_flow ...'
|
1801
2024
|
end
|
1802
2025
|
# verify the required parameter 'flow' is set
|
1803
2026
|
if @api_client.config.client_side_validation && flow.nil?
|
1804
|
-
fail ArgumentError, "Missing the required parameter 'flow' when calling
|
2027
|
+
fail ArgumentError, "Missing the required parameter 'flow' when calling V0alpha2Api.submit_self_service_registration_flow"
|
1805
2028
|
end
|
1806
2029
|
# resource path
|
1807
2030
|
local_var_path = '/self-service/registration'
|
@@ -1830,7 +2053,7 @@ module OryKratosClient
|
|
1830
2053
|
auth_names = opts[:debug_auth_names] || []
|
1831
2054
|
|
1832
2055
|
new_options = opts.merge(
|
1833
|
-
:operation => :"
|
2056
|
+
:operation => :"V0alpha2Api.submit_self_service_registration_flow",
|
1834
2057
|
:header_params => header_params,
|
1835
2058
|
:query_params => query_params,
|
1836
2059
|
:form_params => form_params,
|
@@ -1841,37 +2064,37 @@ module OryKratosClient
|
|
1841
2064
|
|
1842
2065
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1843
2066
|
if @api_client.config.debugging
|
1844
|
-
@api_client.config.logger.debug "API called:
|
2067
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_registration_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1845
2068
|
end
|
1846
2069
|
return data, status_code, headers
|
1847
2070
|
end
|
1848
2071
|
|
1849
2072
|
# Complete Settings Flow
|
1850
|
-
# Use this endpoint to complete a settings flow by sending an identity's updated password. This endpoint behaves differently for API and browser flows. API-initiated flows expect `application/json` 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 `selfservice.flows.settings.privileged_session_max_age` was reached. Implies that the user needs to re-authenticate. Browser flows without HTTP Header `Accept` or with `Accept: text/*` respond with a HTTP 302 redirect to the post/after settings URL or the `return_to` 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 `selfservice.flows.settings.privileged_session_max_age` was reached. Browser flows with HTTP Header `Accept: application/json` respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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 & Profile Management Documentation](../self-service/flows/user-settings).
|
2073
|
+
# Use this endpoint to complete a settings flow by sending an identity's updated password. This endpoint behaves differently for API and browser flows. API-initiated flows expect `application/json` 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 `selfservice.flows.settings.privileged_session_max_age` was reached or the session's AAL is too low. Implies that the user needs to re-authenticate. Browser flows without HTTP Header `Accept` or with `Accept: text/*` respond with a HTTP 302 redirect to the post/after settings URL or the `return_to` 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 `selfservice.flows.settings.privileged_session_max_age` was reached or the session's AAL is too low. Browser flows with HTTP Header `Accept: application/json` respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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'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 `Accept: application/json` HTTP header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_refresh_required`: The identity requested to change something that needs a privileged session. Redirect the identity to the login init endpoint with query parameters `?refresh=true&return_to=<the-current-browser-url>`, or initiate a refresh login flow otherwise. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The flow was interrupted with `session_refresh_required` but apparently some other identity logged in instead. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: 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 & Profile Management Documentation](../self-service/flows/user-settings).
|
1851
2074
|
# @param flow [String] The Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`).
|
1852
2075
|
# @param [Hash] opts the optional parameters
|
1853
2076
|
# @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
|
1854
2077
|
# @option opts [SubmitSelfServiceSettingsFlowBody] :submit_self_service_settings_flow_body
|
1855
|
-
# @return [
|
2078
|
+
# @return [SelfServiceSettingsFlow]
|
1856
2079
|
def submit_self_service_settings_flow(flow, opts = {})
|
1857
2080
|
data, _status_code, _headers = submit_self_service_settings_flow_with_http_info(flow, opts)
|
1858
2081
|
data
|
1859
2082
|
end
|
1860
2083
|
|
1861
2084
|
# Complete Settings Flow
|
1862
|
-
# Use this endpoint to complete a settings flow by sending an identity's updated password. This endpoint behaves differently for API and browser flows. API-initiated flows expect `application/json` 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 `selfservice.flows.settings.privileged_session_max_age` was reached. Implies that the user needs to re-authenticate. Browser flows without HTTP Header `Accept` or with `Accept: text/*` respond with a HTTP 302 redirect to the post/after settings URL or the `return_to` 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 `selfservice.flows.settings.privileged_session_max_age` was reached. Browser flows with HTTP Header `Accept: application/json` respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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 & Profile Management Documentation](../self-service/flows/user-settings).
|
2085
|
+
# Use this endpoint to complete a settings flow by sending an identity's updated password. This endpoint behaves differently for API and browser flows. API-initiated flows expect `application/json` 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 `selfservice.flows.settings.privileged_session_max_age` was reached or the session's AAL is too low. Implies that the user needs to re-authenticate. Browser flows without HTTP Header `Accept` or with `Accept: text/*` respond with a HTTP 302 redirect to the post/after settings URL or the `return_to` 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 `selfservice.flows.settings.privileged_session_max_age` was reached or the session's AAL is too low. Browser flows with HTTP Header `Accept: application/json` respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` 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'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 `Accept: application/json` HTTP header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_refresh_required`: The identity requested to change something that needs a privileged session. Redirect the identity to the login init endpoint with query parameters `?refresh=true&return_to=<the-current-browser-url>`, or initiate a refresh login flow otherwise. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `session_inactive`: No Ory Session was found - sign in a user first. `security_identity_mismatch`: The flow was interrupted with `session_refresh_required` but apparently some other identity logged in instead. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: 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 & Profile Management Documentation](../self-service/flows/user-settings).
|
1863
2086
|
# @param flow [String] The Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`).
|
1864
2087
|
# @param [Hash] opts the optional parameters
|
1865
2088
|
# @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow.
|
1866
2089
|
# @option opts [SubmitSelfServiceSettingsFlowBody] :submit_self_service_settings_flow_body
|
1867
|
-
# @return [Array<(
|
2090
|
+
# @return [Array<(SelfServiceSettingsFlow, Integer, Hash)>] SelfServiceSettingsFlow data, response status code and response headers
|
1868
2091
|
def submit_self_service_settings_flow_with_http_info(flow, opts = {})
|
1869
2092
|
if @api_client.config.debugging
|
1870
|
-
@api_client.config.logger.debug 'Calling API:
|
2093
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_settings_flow ...'
|
1871
2094
|
end
|
1872
2095
|
# verify the required parameter 'flow' is set
|
1873
2096
|
if @api_client.config.client_side_validation && flow.nil?
|
1874
|
-
fail ArgumentError, "Missing the required parameter 'flow' when calling
|
2097
|
+
fail ArgumentError, "Missing the required parameter 'flow' when calling V0alpha2Api.submit_self_service_settings_flow"
|
1875
2098
|
end
|
1876
2099
|
# resource path
|
1877
2100
|
local_var_path = '/self-service/settings'
|
@@ -1895,13 +2118,13 @@ module OryKratosClient
|
|
1895
2118
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'submit_self_service_settings_flow_body'])
|
1896
2119
|
|
1897
2120
|
# return_type
|
1898
|
-
return_type = opts[:debug_return_type] || '
|
2121
|
+
return_type = opts[:debug_return_type] || 'SelfServiceSettingsFlow'
|
1899
2122
|
|
1900
2123
|
# auth_names
|
1901
2124
|
auth_names = opts[:debug_auth_names] || []
|
1902
2125
|
|
1903
2126
|
new_options = opts.merge(
|
1904
|
-
:operation => :"
|
2127
|
+
:operation => :"V0alpha2Api.submit_self_service_settings_flow",
|
1905
2128
|
:header_params => header_params,
|
1906
2129
|
:query_params => query_params,
|
1907
2130
|
:form_params => form_params,
|
@@ -1912,7 +2135,7 @@ module OryKratosClient
|
|
1912
2135
|
|
1913
2136
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1914
2137
|
if @api_client.config.debugging
|
1915
|
-
@api_client.config.logger.debug "API called:
|
2138
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_settings_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1916
2139
|
end
|
1917
2140
|
return data, status_code, headers
|
1918
2141
|
end
|
@@ -1938,11 +2161,11 @@ module OryKratosClient
|
|
1938
2161
|
# @return [Array<(SelfServiceVerificationFlow, Integer, Hash)>] SelfServiceVerificationFlow data, response status code and response headers
|
1939
2162
|
def submit_self_service_verification_flow_with_http_info(flow, opts = {})
|
1940
2163
|
if @api_client.config.debugging
|
1941
|
-
@api_client.config.logger.debug 'Calling API:
|
2164
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.submit_self_service_verification_flow ...'
|
1942
2165
|
end
|
1943
2166
|
# verify the required parameter 'flow' is set
|
1944
2167
|
if @api_client.config.client_side_validation && flow.nil?
|
1945
|
-
fail ArgumentError, "Missing the required parameter 'flow' when calling
|
2168
|
+
fail ArgumentError, "Missing the required parameter 'flow' when calling V0alpha2Api.submit_self_service_verification_flow"
|
1946
2169
|
end
|
1947
2170
|
# resource path
|
1948
2171
|
local_var_path = '/self-service/verification'
|
@@ -1972,7 +2195,7 @@ module OryKratosClient
|
|
1972
2195
|
auth_names = opts[:debug_auth_names] || []
|
1973
2196
|
|
1974
2197
|
new_options = opts.merge(
|
1975
|
-
:operation => :"
|
2198
|
+
:operation => :"V0alpha2Api.submit_self_service_verification_flow",
|
1976
2199
|
:header_params => header_params,
|
1977
2200
|
:query_params => query_params,
|
1978
2201
|
:form_params => form_params,
|
@@ -1983,13 +2206,13 @@ module OryKratosClient
|
|
1983
2206
|
|
1984
2207
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1985
2208
|
if @api_client.config.debugging
|
1986
|
-
@api_client.config.logger.debug "API called:
|
2209
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#submit_self_service_verification_flow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1987
2210
|
end
|
1988
2211
|
return data, status_code, headers
|
1989
2212
|
end
|
1990
2213
|
|
1991
2214
|
# Check Who the Current HTTP Session Belongs To
|
1992
|
-
# 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 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` 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 `X-Session-Token` header! This endpoint authenticates users by checking if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` 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.
|
2215
|
+
# 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 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` 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 `X-Session-Token` header! This endpoint authenticates users by checking if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` 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 `error.id` can be one of: `session_inactive`: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). `session_aal2_required`: 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.
|
1993
2216
|
# @param [Hash] opts the optional parameters
|
1994
2217
|
# @option opts [String] :x_session_token Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`.
|
1995
2218
|
# @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: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored.
|
@@ -2000,14 +2223,14 @@ module OryKratosClient
|
|
2000
2223
|
end
|
2001
2224
|
|
2002
2225
|
# Check Who the Current HTTP Session Belongs To
|
2003
|
-
# 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 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` 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 `X-Session-Token` header! This endpoint authenticates users by checking if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` 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.
|
2226
|
+
# 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 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` 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 `X-Session-Token` header! This endpoint authenticates users by checking if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` 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 `error.id` can be one of: `session_inactive`: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). `session_aal2_required`: 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.
|
2004
2227
|
# @param [Hash] opts the optional parameters
|
2005
2228
|
# @option opts [String] :x_session_token Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`.
|
2006
2229
|
# @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: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored.
|
2007
2230
|
# @return [Array<(Session, Integer, Hash)>] Session data, response status code and response headers
|
2008
2231
|
def to_session_with_http_info(opts = {})
|
2009
2232
|
if @api_client.config.debugging
|
2010
|
-
@api_client.config.logger.debug 'Calling API:
|
2233
|
+
@api_client.config.logger.debug 'Calling API: V0alpha2Api.to_session ...'
|
2011
2234
|
end
|
2012
2235
|
# resource path
|
2013
2236
|
local_var_path = '/sessions/whoami'
|
@@ -2035,7 +2258,7 @@ module OryKratosClient
|
|
2035
2258
|
auth_names = opts[:debug_auth_names] || []
|
2036
2259
|
|
2037
2260
|
new_options = opts.merge(
|
2038
|
-
:operation => :"
|
2261
|
+
:operation => :"V0alpha2Api.to_session",
|
2039
2262
|
:header_params => header_params,
|
2040
2263
|
:query_params => query_params,
|
2041
2264
|
:form_params => form_params,
|
@@ -2046,7 +2269,7 @@ module OryKratosClient
|
|
2046
2269
|
|
2047
2270
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2048
2271
|
if @api_client.config.debugging
|
2049
|
-
@api_client.config.logger.debug "API called:
|
2272
|
+
@api_client.config.logger.debug "API called: V0alpha2Api#to_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2050
2273
|
end
|
2051
2274
|
return data, status_code, headers
|
2052
2275
|
end
|