ory-client 0.0.1.alpha6 → 0.0.1.alpha11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/docs/DefaultApi.md +34 -33
- data/docs/LoginViaApiResponse.md +1 -1
- data/docs/RegistrationViaApiResponse.md +1 -1
- data/lib/ory-client.rb +1 -1
- data/lib/ory-client/api/default_api.rb +37 -37
- data/lib/ory-client/api_client.rb +1 -1
- data/lib/ory-client/api_error.rb +1 -1
- data/lib/ory-client/configuration.rb +1 -1
- data/lib/ory-client/models/authenticate_ok_body.rb +1 -1
- data/lib/ory-client/models/container_change_response_item.rb +1 -1
- data/lib/ory-client/models/container_create_created_body.rb +1 -1
- data/lib/ory-client/models/container_top_ok_body.rb +1 -1
- data/lib/ory-client/models/container_update_ok_body.rb +1 -1
- data/lib/ory-client/models/container_wait_ok_body.rb +1 -1
- data/lib/ory-client/models/container_wait_ok_body_error.rb +1 -1
- data/lib/ory-client/models/create_identity.rb +1 -1
- data/lib/ory-client/models/create_recovery_link.rb +1 -1
- data/lib/ory-client/models/error_response.rb +1 -1
- data/lib/ory-client/models/generic_error.rb +1 -1
- data/lib/ory-client/models/graph_driver_data.rb +1 -1
- data/lib/ory-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-client/models/health_status.rb +1 -1
- data/lib/ory-client/models/id_response.rb +1 -1
- data/lib/ory-client/models/identity.rb +1 -1
- data/lib/ory-client/models/identity_credentials.rb +1 -1
- data/lib/ory-client/models/image_delete_response_item.rb +1 -1
- data/lib/ory-client/models/image_summary.rb +1 -1
- data/lib/ory-client/models/inline_response200.rb +1 -1
- data/lib/ory-client/models/inline_response2001.rb +1 -1
- data/lib/ory-client/models/inline_response503.rb +1 -1
- data/lib/ory-client/models/json_error.rb +1 -1
- data/lib/ory-client/models/login_flow.rb +1 -1
- data/lib/ory-client/models/login_via_api_response.rb +1 -6
- data/lib/ory-client/models/meta.rb +1 -1
- data/lib/ory-client/models/plugin.rb +1 -1
- data/lib/ory-client/models/plugin_config.rb +1 -1
- data/lib/ory-client/models/plugin_config_args.rb +1 -1
- data/lib/ory-client/models/plugin_config_interface.rb +1 -1
- data/lib/ory-client/models/plugin_config_linux.rb +1 -1
- data/lib/ory-client/models/plugin_config_network.rb +1 -1
- data/lib/ory-client/models/plugin_config_rootfs.rb +1 -1
- data/lib/ory-client/models/plugin_config_user.rb +1 -1
- data/lib/ory-client/models/plugin_device.rb +1 -1
- data/lib/ory-client/models/plugin_env.rb +1 -1
- data/lib/ory-client/models/plugin_interface_type.rb +1 -1
- data/lib/ory-client/models/plugin_mount.rb +1 -1
- data/lib/ory-client/models/plugin_settings.rb +1 -1
- data/lib/ory-client/models/port.rb +1 -1
- data/lib/ory-client/models/recovery_address.rb +1 -1
- data/lib/ory-client/models/recovery_flow.rb +1 -1
- data/lib/ory-client/models/recovery_link.rb +1 -1
- data/lib/ory-client/models/registration_flow.rb +1 -1
- data/lib/ory-client/models/registration_via_api_response.rb +1 -6
- data/lib/ory-client/models/revoke_session.rb +1 -1
- data/lib/ory-client/models/self_service_error_container.rb +1 -1
- data/lib/ory-client/models/service_update_response.rb +1 -1
- data/lib/ory-client/models/session.rb +1 -1
- data/lib/ory-client/models/settings_flow.rb +1 -1
- data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
- data/lib/ory-client/models/settings_via_api_response.rb +1 -1
- data/lib/ory-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow.rb +1 -1
- data/lib/ory-client/models/submit_self_service_login_flow_with_password_method.rb +1 -1
- data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow.rb +1 -1
- data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method.rb +1 -1
- data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method.rb +1 -1
- data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method.rb +1 -1
- data/lib/ory-client/models/ui_container.rb +1 -1
- data/lib/ory-client/models/ui_node.rb +1 -1
- data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
- data/lib/ory-client/models/ui_node_input_attributes_value.rb +1 -1
- data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
- data/lib/ory-client/models/ui_text.rb +1 -1
- data/lib/ory-client/models/update_identity.rb +1 -1
- data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
- data/lib/ory-client/models/verification_flow.rb +1 -1
- data/lib/ory-client/models/version.rb +1 -1
- data/lib/ory-client/models/volume.rb +1 -1
- data/lib/ory-client/models/volume_usage_data.rb +1 -1
- data/lib/ory-client/version.rb +2 -2
- data/ory-client.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6874f7856ec059abcf70460cd1524e371e40d76716eb3b1917093cfaa84d1755
|
4
|
+
data.tar.gz: 6cb07834a581d37501d28519d33f398a30e7a9bd722d396307ab142be1a0a5f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d1a2dd347ff4d94defcfbcbdb23681497dd5a1e737604b7c809568331185ee83f003083aaaf98dc2571b1352c58b6ab8fc4858e1dc745c18dfac769c8467a1a
|
7
|
+
data.tar.gz: 953e3863a65a276b2086b071eb137e6a34420b9a7d31a03bb98ee847e47870ec4efa5810f055c2e1980053d313e4e58db80852e3e60fe8c0d3fa93b7423e9905
|
data/README.md
CHANGED
@@ -8,8 +8,8 @@ with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
|
8
8
|
|
9
9
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
10
10
|
|
11
|
-
- API version: v0.0.1-alpha.
|
12
|
-
- Package version: v0.0.1-alpha.
|
11
|
+
- API version: v0.0.1-alpha.11
|
12
|
+
- Package version: v0.0.1-alpha.11
|
13
13
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
14
14
|
|
15
15
|
## Installation
|
@@ -25,16 +25,16 @@ gem build ory-client.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./ory-client-v0.0.1-alpha.
|
28
|
+
gem install ./ory-client-v0.0.1-alpha.11.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./ory-client-v0.0.1-alpha.
|
31
|
+
(for development, run `gem install --dev ./ory-client-v0.0.1-alpha.11.gem` to install the development dependencies)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'ory-client', '~> v0.0.1-alpha.
|
37
|
+
gem 'ory-client', '~> v0.0.1-alpha.11'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -109,8 +109,8 @@ Class | Method | HTTP request | Description
|
|
109
109
|
*OryHydraClient::DefaultApi* | [**initialize_self_service_login_without_browser**](docs/DefaultApi.md#initialize_self_service_login_without_browser) | **GET** /api/kratos/public/self-service/login/api | Initialize Login Flow for APIs, Services, Apps, ...
|
110
110
|
*OryHydraClient::DefaultApi* | [**initialize_self_service_recovery_for_browsers**](docs/DefaultApi.md#initialize_self_service_recovery_for_browsers) | **GET** /api/kratos/public/self-service/recovery/browser | Initialize Recovery Flow for Browser Clients
|
111
111
|
*OryHydraClient::DefaultApi* | [**initialize_self_service_recovery_for_native_apps**](docs/DefaultApi.md#initialize_self_service_recovery_for_native_apps) | **GET** /api/kratos/public/self-service/recovery/api | Initialize Recovery Flow for Native Apps and API clients
|
112
|
-
*OryHydraClient::DefaultApi* | [**initialize_self_service_registration_for_browsers**](docs/DefaultApi.md#initialize_self_service_registration_for_browsers) | **GET** /api/kratos/public/self-service/registration/browser | Initialize Registration Flow for
|
113
|
-
*OryHydraClient::DefaultApi* | [**
|
112
|
+
*OryHydraClient::DefaultApi* | [**initialize_self_service_registration_for_browsers**](docs/DefaultApi.md#initialize_self_service_registration_for_browsers) | **GET** /api/kratos/public/self-service/registration/browser | Initialize Registration Flow for Browsers
|
113
|
+
*OryHydraClient::DefaultApi* | [**initialize_self_service_registration_without_browser**](docs/DefaultApi.md#initialize_self_service_registration_without_browser) | **GET** /api/kratos/public/self-service/registration/api | Initialize Registration Flow for APIs, Services, Apps, ...
|
114
114
|
*OryHydraClient::DefaultApi* | [**initialize_self_service_settings_for_browsers**](docs/DefaultApi.md#initialize_self_service_settings_for_browsers) | **GET** /api/kratos/public/self-service/settings/browser | Initialize Settings Flow for Browsers
|
115
115
|
*OryHydraClient::DefaultApi* | [**initialize_self_service_settings_for_native_apps**](docs/DefaultApi.md#initialize_self_service_settings_for_native_apps) | **GET** /api/kratos/public/self-service/settings/api | Initialize Settings Flow for Native Apps and API clients
|
116
116
|
*OryHydraClient::DefaultApi* | [**initialize_self_service_verification_for_browsers**](docs/DefaultApi.md#initialize_self_service_verification_for_browsers) | **GET** /api/kratos/public/self-service/verification/browser | Initialize Verification Flow for Browser Clients
|
@@ -125,7 +125,7 @@ Class | Method | HTTP request | Description
|
|
125
125
|
*OryHydraClient::DefaultApi* | [**submit_self_service_recovery_flow_with_link_method**](docs/DefaultApi.md#submit_self_service_recovery_flow_with_link_method) | **POST** /api/kratos/public/self-service/recovery/methods/link | Complete Recovery Flow with Link Method
|
126
126
|
*OryHydraClient::DefaultApi* | [**submit_self_service_registration_flow**](docs/DefaultApi.md#submit_self_service_registration_flow) | **POST** /api/kratos/public/self-service/registration | Submit a Registration Flow
|
127
127
|
*OryHydraClient::DefaultApi* | [**submit_self_service_settings_flow**](docs/DefaultApi.md#submit_self_service_settings_flow) | **POST** /api/kratos/public/self-service/settings | Complete Settings Flow
|
128
|
-
*OryHydraClient::DefaultApi* | [**submit_self_service_verification_flow**](docs/DefaultApi.md#submit_self_service_verification_flow) | **POST** /api/kratos/public/self-service/verification/
|
128
|
+
*OryHydraClient::DefaultApi* | [**submit_self_service_verification_flow**](docs/DefaultApi.md#submit_self_service_verification_flow) | **POST** /api/kratos/public/self-service/verification/flows | Complete Verification Flow
|
129
129
|
*OryHydraClient::DefaultApi* | [**to_session**](docs/DefaultApi.md#to_session) | **GET** /api/kratos/public/sessions/whoami | Check Who the Current HTTP Session Belongs To
|
130
130
|
*OryHydraClient::DefaultApi* | [**update_identity_admin**](docs/DefaultApi.md#update_identity_admin) | **PUT** /api/kratos/admin/identities/{id} | Update an Identity
|
131
131
|
|
data/docs/DefaultApi.md
CHANGED
@@ -28,8 +28,8 @@ All URIs are relative to *https://playground.projects.oryapis.com*
|
|
28
28
|
| [**initialize_self_service_login_without_browser**](DefaultApi.md#initialize_self_service_login_without_browser) | **GET** /api/kratos/public/self-service/login/api | Initialize Login Flow for APIs, Services, Apps, ... |
|
29
29
|
| [**initialize_self_service_recovery_for_browsers**](DefaultApi.md#initialize_self_service_recovery_for_browsers) | **GET** /api/kratos/public/self-service/recovery/browser | Initialize Recovery Flow for Browser Clients |
|
30
30
|
| [**initialize_self_service_recovery_for_native_apps**](DefaultApi.md#initialize_self_service_recovery_for_native_apps) | **GET** /api/kratos/public/self-service/recovery/api | Initialize Recovery Flow for Native Apps and API clients |
|
31
|
-
| [**initialize_self_service_registration_for_browsers**](DefaultApi.md#initialize_self_service_registration_for_browsers) | **GET** /api/kratos/public/self-service/registration/browser | Initialize Registration Flow for
|
32
|
-
| [**
|
31
|
+
| [**initialize_self_service_registration_for_browsers**](DefaultApi.md#initialize_self_service_registration_for_browsers) | **GET** /api/kratos/public/self-service/registration/browser | Initialize Registration Flow for Browsers |
|
32
|
+
| [**initialize_self_service_registration_without_browser**](DefaultApi.md#initialize_self_service_registration_without_browser) | **GET** /api/kratos/public/self-service/registration/api | Initialize Registration Flow for APIs, Services, Apps, ... |
|
33
33
|
| [**initialize_self_service_settings_for_browsers**](DefaultApi.md#initialize_self_service_settings_for_browsers) | **GET** /api/kratos/public/self-service/settings/browser | Initialize Settings Flow for Browsers |
|
34
34
|
| [**initialize_self_service_settings_for_native_apps**](DefaultApi.md#initialize_self_service_settings_for_native_apps) | **GET** /api/kratos/public/self-service/settings/api | Initialize Settings Flow for Native Apps and API clients |
|
35
35
|
| [**initialize_self_service_verification_for_browsers**](DefaultApi.md#initialize_self_service_verification_for_browsers) | **GET** /api/kratos/public/self-service/verification/browser | Initialize Verification Flow for Browser Clients |
|
@@ -44,7 +44,7 @@ All URIs are relative to *https://playground.projects.oryapis.com*
|
|
44
44
|
| [**submit_self_service_recovery_flow_with_link_method**](DefaultApi.md#submit_self_service_recovery_flow_with_link_method) | **POST** /api/kratos/public/self-service/recovery/methods/link | Complete Recovery Flow with Link Method |
|
45
45
|
| [**submit_self_service_registration_flow**](DefaultApi.md#submit_self_service_registration_flow) | **POST** /api/kratos/public/self-service/registration | Submit a Registration Flow |
|
46
46
|
| [**submit_self_service_settings_flow**](DefaultApi.md#submit_self_service_settings_flow) | **POST** /api/kratos/public/self-service/settings | Complete Settings Flow |
|
47
|
-
| [**submit_self_service_verification_flow**](DefaultApi.md#submit_self_service_verification_flow) | **POST** /api/kratos/public/self-service/verification/
|
47
|
+
| [**submit_self_service_verification_flow**](DefaultApi.md#submit_self_service_verification_flow) | **POST** /api/kratos/public/self-service/verification/flows | Complete Verification Flow |
|
48
48
|
| [**to_session**](DefaultApi.md#to_session) | **GET** /api/kratos/public/sessions/whoami | Check Who the Current HTTP Session Belongs To |
|
49
49
|
| [**update_identity_admin**](DefaultApi.md#update_identity_admin) | **PUT** /api/kratos/admin/identities/{id} | Update an Identity |
|
50
50
|
|
@@ -600,7 +600,7 @@ end
|
|
600
600
|
|
601
601
|
Get Login Flow
|
602
602
|
|
603
|
-
This endpoint returns a login flow's context with, for example, error details and other information. 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).
|
603
|
+
This endpoint returns a login flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
604
604
|
|
605
605
|
### Examples
|
606
606
|
|
@@ -664,7 +664,7 @@ No authorization required
|
|
664
664
|
|
665
665
|
Get Login Flow
|
666
666
|
|
667
|
-
This endpoint returns a login flow's context with, for example, error details and other information. 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).
|
667
|
+
This endpoint returns a login flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
668
668
|
|
669
669
|
### Examples
|
670
670
|
|
@@ -866,7 +866,7 @@ end
|
|
866
866
|
|
867
867
|
Get Registration Flow
|
868
868
|
|
869
|
-
This endpoint returns a registration flow's context with, for example, error details and other information. 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).
|
869
|
+
This endpoint returns a registration flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
870
870
|
|
871
871
|
### Examples
|
872
872
|
|
@@ -930,7 +930,7 @@ No authorization required
|
|
930
930
|
|
931
931
|
Get Registration Flow
|
932
932
|
|
933
|
-
This endpoint returns a registration flow's context with, for example, error details and other information. 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).
|
933
|
+
This endpoint returns a registration flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
934
934
|
|
935
935
|
### Examples
|
936
936
|
|
@@ -1404,7 +1404,7 @@ No authorization required
|
|
1404
1404
|
|
1405
1405
|
Initialize Login Flow for Browsers
|
1406
1406
|
|
1407
|
-
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 login flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
|
1407
|
+
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. :::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.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 login flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
|
1408
1408
|
|
1409
1409
|
### Examples
|
1410
1410
|
|
@@ -1470,7 +1470,7 @@ No authorization required
|
|
1470
1470
|
|
1471
1471
|
Initialize Login Flow for APIs, Services, Apps, ...
|
1472
1472
|
|
1473
|
-
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>`. :::warning 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).
|
1473
|
+
This endpoint initiates a login flow for API clients that do not use a browser, such as mobile devices, smart TVs, and so on. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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>`. :::warning 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).
|
1474
1474
|
|
1475
1475
|
### Examples
|
1476
1476
|
|
@@ -1653,11 +1653,11 @@ No authorization required
|
|
1653
1653
|
|
1654
1654
|
## initialize_self_service_registration_for_browsers
|
1655
1655
|
|
1656
|
-
> initialize_self_service_registration_for_browsers
|
1656
|
+
> <RegistrationFlow> initialize_self_service_registration_for_browsers
|
1657
1657
|
|
1658
|
-
Initialize Registration Flow for
|
1658
|
+
Initialize Registration Flow for Browsers
|
1659
1659
|
|
1660
|
-
This endpoint initializes a browser-based user registration flow.
|
1660
|
+
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).
|
1661
1661
|
|
1662
1662
|
### Examples
|
1663
1663
|
|
@@ -1668,8 +1668,9 @@ require 'ory-client'
|
|
1668
1668
|
api_instance = OryHydraClient::DefaultApi.new
|
1669
1669
|
|
1670
1670
|
begin
|
1671
|
-
# Initialize Registration Flow for
|
1672
|
-
api_instance.initialize_self_service_registration_for_browsers
|
1671
|
+
# Initialize Registration Flow for Browsers
|
1672
|
+
result = api_instance.initialize_self_service_registration_for_browsers
|
1673
|
+
p result
|
1673
1674
|
rescue OryHydraClient::ApiError => e
|
1674
1675
|
puts "Error when calling DefaultApi->initialize_self_service_registration_for_browsers: #{e}"
|
1675
1676
|
end
|
@@ -1677,17 +1678,17 @@ end
|
|
1677
1678
|
|
1678
1679
|
#### Using the initialize_self_service_registration_for_browsers_with_http_info variant
|
1679
1680
|
|
1680
|
-
This returns an Array which contains the response data
|
1681
|
+
This returns an Array which contains the response data, status code and headers.
|
1681
1682
|
|
1682
|
-
> <Array(
|
1683
|
+
> <Array(<RegistrationFlow>, Integer, Hash)> initialize_self_service_registration_for_browsers_with_http_info
|
1683
1684
|
|
1684
1685
|
```ruby
|
1685
1686
|
begin
|
1686
|
-
# Initialize Registration Flow for
|
1687
|
+
# Initialize Registration Flow for Browsers
|
1687
1688
|
data, status_code, headers = api_instance.initialize_self_service_registration_for_browsers_with_http_info
|
1688
1689
|
p status_code # => 2xx
|
1689
1690
|
p headers # => { ... }
|
1690
|
-
p data # =>
|
1691
|
+
p data # => <RegistrationFlow>
|
1691
1692
|
rescue OryHydraClient::ApiError => e
|
1692
1693
|
puts "Error when calling DefaultApi->initialize_self_service_registration_for_browsers_with_http_info: #{e}"
|
1693
1694
|
end
|
@@ -1699,7 +1700,7 @@ This endpoint does not need any parameter.
|
|
1699
1700
|
|
1700
1701
|
### Return type
|
1701
1702
|
|
1702
|
-
|
1703
|
+
[**RegistrationFlow**](RegistrationFlow.md)
|
1703
1704
|
|
1704
1705
|
### Authorization
|
1705
1706
|
|
@@ -1711,13 +1712,13 @@ No authorization required
|
|
1711
1712
|
- **Accept**: application/json
|
1712
1713
|
|
1713
1714
|
|
1714
|
-
##
|
1715
|
+
## initialize_self_service_registration_without_browser
|
1715
1716
|
|
1716
|
-
> <RegistrationFlow>
|
1717
|
+
> <RegistrationFlow> initialize_self_service_registration_without_browser
|
1717
1718
|
|
1718
|
-
Initialize Registration Flow for
|
1719
|
+
Initialize Registration Flow for APIs, Services, Apps, ...
|
1719
1720
|
|
1720
|
-
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>`. :::warning 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).
|
1721
|
+
This endpoint initiates a registration flow for API clients such as mobile devices, smart TVs, and so on. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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>`. :::warning 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).
|
1721
1722
|
|
1722
1723
|
### Examples
|
1723
1724
|
|
@@ -1728,29 +1729,29 @@ require 'ory-client'
|
|
1728
1729
|
api_instance = OryHydraClient::DefaultApi.new
|
1729
1730
|
|
1730
1731
|
begin
|
1731
|
-
# Initialize Registration Flow for
|
1732
|
-
result = api_instance.
|
1732
|
+
# Initialize Registration Flow for APIs, Services, Apps, ...
|
1733
|
+
result = api_instance.initialize_self_service_registration_without_browser
|
1733
1734
|
p result
|
1734
1735
|
rescue OryHydraClient::ApiError => e
|
1735
|
-
puts "Error when calling DefaultApi->
|
1736
|
+
puts "Error when calling DefaultApi->initialize_self_service_registration_without_browser: #{e}"
|
1736
1737
|
end
|
1737
1738
|
```
|
1738
1739
|
|
1739
|
-
#### Using the
|
1740
|
+
#### Using the initialize_self_service_registration_without_browser_with_http_info variant
|
1740
1741
|
|
1741
1742
|
This returns an Array which contains the response data, status code and headers.
|
1742
1743
|
|
1743
|
-
> <Array(<RegistrationFlow>, Integer, Hash)>
|
1744
|
+
> <Array(<RegistrationFlow>, Integer, Hash)> initialize_self_service_registration_without_browser_with_http_info
|
1744
1745
|
|
1745
1746
|
```ruby
|
1746
1747
|
begin
|
1747
|
-
# Initialize Registration Flow for
|
1748
|
-
data, status_code, headers = api_instance.
|
1748
|
+
# Initialize Registration Flow for APIs, Services, Apps, ...
|
1749
|
+
data, status_code, headers = api_instance.initialize_self_service_registration_without_browser_with_http_info
|
1749
1750
|
p status_code # => 2xx
|
1750
1751
|
p headers # => { ... }
|
1751
1752
|
p data # => <RegistrationFlow>
|
1752
1753
|
rescue OryHydraClient::ApiError => e
|
1753
|
-
puts "Error when calling DefaultApi->
|
1754
|
+
puts "Error when calling DefaultApi->initialize_self_service_registration_without_browser_with_http_info: #{e}"
|
1754
1755
|
end
|
1755
1756
|
```
|
1756
1757
|
|
@@ -2368,7 +2369,7 @@ No authorization required
|
|
2368
2369
|
|
2369
2370
|
Submit a Login Flow
|
2370
2371
|
|
2371
|
-
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 `application/x-www-form-urlencoded` to be sent in the body and
|
2372
|
+
:::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).
|
2372
2373
|
|
2373
2374
|
### Examples
|
2374
2375
|
|
@@ -2572,7 +2573,7 @@ No authorization required
|
|
2572
2573
|
|
2573
2574
|
Submit a Registration Flow
|
2574
2575
|
|
2575
|
-
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 `application/x-www-form-urlencoded` to be sent in the body and
|
2576
|
+
:::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
2576
2577
|
|
2577
2578
|
### Examples
|
2578
2579
|
|
data/docs/LoginViaApiResponse.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **session** | [**Session**](Session.md) | | |
|
8
|
-
| **session_token** | **String** | The Session Token A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for API flows, not for Browser flows! |
|
8
|
+
| **session_token** | **String** | The Session Token A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for API flows, not for Browser flows! | [optional] |
|
9
9
|
|
10
10
|
## Example
|
11
11
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **identity** | [**Identity**](Identity.md) | | |
|
8
8
|
| **session** | [**Session**](Session.md) | | [optional] |
|
9
|
-
| **session_token** | **String** | The Session Token This field is only set when the session hook is configured as a post-registration hook. A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for API flows, not for Browser flows! |
|
9
|
+
| **session_token** | **String** | The Session Token This field is only set when the session hook is configured as a post-registration hook. A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for API flows, not for Browser flows! | [optional] |
|
10
10
|
|
11
11
|
## Example
|
12
12
|
|
data/lib/ory-client.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.11
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.1-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.1-alpha.11
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -518,7 +518,7 @@ module OryHydraClient
|
|
518
518
|
end
|
519
519
|
|
520
520
|
# Get Login Flow
|
521
|
-
# This endpoint returns a login flow's context with, for example, error details and other information. 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).
|
521
|
+
# This endpoint returns a login flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
522
522
|
# @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`).
|
523
523
|
# @param [Hash] opts the optional parameters
|
524
524
|
# @return [LoginFlow]
|
@@ -528,7 +528,7 @@ module OryHydraClient
|
|
528
528
|
end
|
529
529
|
|
530
530
|
# Get Login Flow
|
531
|
-
# This endpoint returns a login flow's context with, for example, error details and other information. 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).
|
531
|
+
# This endpoint returns a login flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
532
532
|
# @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`).
|
533
533
|
# @param [Hash] opts the optional parameters
|
534
534
|
# @return [Array<(LoginFlow, Integer, Hash)>] LoginFlow data, response status code and response headers
|
@@ -582,7 +582,7 @@ module OryHydraClient
|
|
582
582
|
end
|
583
583
|
|
584
584
|
# Get Login Flow
|
585
|
-
# This endpoint returns a login flow's context with, for example, error details and other information. 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).
|
585
|
+
# This endpoint returns a login flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
586
586
|
# @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`).
|
587
587
|
# @param [Hash] opts the optional parameters
|
588
588
|
# @return [LoginFlow]
|
@@ -592,7 +592,7 @@ module OryHydraClient
|
|
592
592
|
end
|
593
593
|
|
594
594
|
# Get Login Flow
|
595
|
-
# This endpoint returns a login flow's context with, for example, error details and other information. 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).
|
595
|
+
# This endpoint returns a login flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
596
596
|
# @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`).
|
597
597
|
# @param [Hash] opts the optional parameters
|
598
598
|
# @return [Array<(LoginFlow, Integer, Hash)>] LoginFlow data, response status code and response headers
|
@@ -774,7 +774,7 @@ module OryHydraClient
|
|
774
774
|
end
|
775
775
|
|
776
776
|
# Get Registration Flow
|
777
|
-
# This endpoint returns a registration flow's context with, for example, error details and other information. 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).
|
777
|
+
# This endpoint returns a registration flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
778
778
|
# @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`).
|
779
779
|
# @param [Hash] opts the optional parameters
|
780
780
|
# @return [RegistrationFlow]
|
@@ -784,7 +784,7 @@ module OryHydraClient
|
|
784
784
|
end
|
785
785
|
|
786
786
|
# Get Registration Flow
|
787
|
-
# This endpoint returns a registration flow's context with, for example, error details and other information. 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).
|
787
|
+
# This endpoint returns a registration flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
788
788
|
# @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`).
|
789
789
|
# @param [Hash] opts the optional parameters
|
790
790
|
# @return [Array<(RegistrationFlow, Integer, Hash)>] RegistrationFlow data, response status code and response headers
|
@@ -838,7 +838,7 @@ module OryHydraClient
|
|
838
838
|
end
|
839
839
|
|
840
840
|
# Get Registration Flow
|
841
|
-
# This endpoint returns a registration flow's context with, for example, error details and other information. 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).
|
841
|
+
# This endpoint returns a registration flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
842
842
|
# @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`).
|
843
843
|
# @param [Hash] opts the optional parameters
|
844
844
|
# @return [RegistrationFlow]
|
@@ -848,7 +848,7 @@ module OryHydraClient
|
|
848
848
|
end
|
849
849
|
|
850
850
|
# Get Registration Flow
|
851
|
-
# This endpoint returns a registration flow's context with, for example, error details and other information. 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).
|
851
|
+
# This endpoint returns a registration flow's context with, for example, error details and other information. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
852
852
|
# @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`).
|
853
853
|
# @param [Hash] opts the optional parameters
|
854
854
|
# @return [Array<(RegistrationFlow, Integer, Hash)>] RegistrationFlow data, response status code and response headers
|
@@ -1278,7 +1278,7 @@ module OryHydraClient
|
|
1278
1278
|
end
|
1279
1279
|
|
1280
1280
|
# Initialize Login Flow for Browsers
|
1281
|
-
# 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 login flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
|
1281
|
+
# 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. :::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.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 login flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
|
1282
1282
|
# @param [Hash] opts the optional parameters
|
1283
1283
|
# @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.
|
1284
1284
|
# @return [LoginFlow]
|
@@ -1288,7 +1288,7 @@ module OryHydraClient
|
|
1288
1288
|
end
|
1289
1289
|
|
1290
1290
|
# Initialize Login Flow for Browsers
|
1291
|
-
# 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 login flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
|
1291
|
+
# 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. :::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.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 login flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. More information can be found at [Ory Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
|
1292
1292
|
# @param [Hash] opts the optional parameters
|
1293
1293
|
# @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.
|
1294
1294
|
# @return [Array<(LoginFlow, Integer, Hash)>] LoginFlow data, response status code and response headers
|
@@ -1338,7 +1338,7 @@ module OryHydraClient
|
|
1338
1338
|
end
|
1339
1339
|
|
1340
1340
|
# Initialize Login Flow for APIs, Services, Apps, ...
|
1341
|
-
# 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>`. :::warning 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).
|
1341
|
+
# This endpoint initiates a login flow for API clients that do not use a browser, such as mobile devices, smart TVs, and so on. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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>`. :::warning 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).
|
1342
1342
|
# @param [Hash] opts the optional parameters
|
1343
1343
|
# @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.
|
1344
1344
|
# @return [LoginFlow]
|
@@ -1348,7 +1348,7 @@ module OryHydraClient
|
|
1348
1348
|
end
|
1349
1349
|
|
1350
1350
|
# Initialize Login Flow for APIs, Services, Apps, ...
|
1351
|
-
# 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>`. :::warning 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).
|
1351
|
+
# This endpoint initiates a login flow for API clients that do not use a browser, such as mobile devices, smart TVs, and so on. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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>`. :::warning 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).
|
1352
1352
|
# @param [Hash] opts the optional parameters
|
1353
1353
|
# @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.
|
1354
1354
|
# @return [Array<(LoginFlow, Integer, Hash)>] LoginFlow data, response status code and response headers
|
@@ -1511,19 +1511,19 @@ module OryHydraClient
|
|
1511
1511
|
return data, status_code, headers
|
1512
1512
|
end
|
1513
1513
|
|
1514
|
-
# Initialize Registration Flow for
|
1515
|
-
# This endpoint initializes a browser-based user registration flow.
|
1514
|
+
# Initialize Registration Flow for Browsers
|
1515
|
+
# 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).
|
1516
1516
|
# @param [Hash] opts the optional parameters
|
1517
|
-
# @return [
|
1517
|
+
# @return [RegistrationFlow]
|
1518
1518
|
def initialize_self_service_registration_for_browsers(opts = {})
|
1519
|
-
initialize_self_service_registration_for_browsers_with_http_info(opts)
|
1520
|
-
|
1519
|
+
data, _status_code, _headers = initialize_self_service_registration_for_browsers_with_http_info(opts)
|
1520
|
+
data
|
1521
1521
|
end
|
1522
1522
|
|
1523
|
-
# Initialize Registration Flow for
|
1524
|
-
# This endpoint initializes a browser-based user registration flow.
|
1523
|
+
# Initialize Registration Flow for Browsers
|
1524
|
+
# 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).
|
1525
1525
|
# @param [Hash] opts the optional parameters
|
1526
|
-
# @return [Array<(
|
1526
|
+
# @return [Array<(RegistrationFlow, Integer, Hash)>] RegistrationFlow data, response status code and response headers
|
1527
1527
|
def initialize_self_service_registration_for_browsers_with_http_info(opts = {})
|
1528
1528
|
if @api_client.config.debugging
|
1529
1529
|
@api_client.config.logger.debug 'Calling API: DefaultApi.initialize_self_service_registration_for_browsers ...'
|
@@ -1546,7 +1546,7 @@ module OryHydraClient
|
|
1546
1546
|
post_body = opts[:debug_body]
|
1547
1547
|
|
1548
1548
|
# return_type
|
1549
|
-
return_type = opts[:debug_return_type]
|
1549
|
+
return_type = opts[:debug_return_type] || 'RegistrationFlow'
|
1550
1550
|
|
1551
1551
|
# auth_names
|
1552
1552
|
auth_names = opts[:debug_auth_names] || []
|
@@ -1568,22 +1568,22 @@ module OryHydraClient
|
|
1568
1568
|
return data, status_code, headers
|
1569
1569
|
end
|
1570
1570
|
|
1571
|
-
# Initialize Registration Flow for
|
1572
|
-
# 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>`. :::warning 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).
|
1571
|
+
# Initialize Registration Flow for APIs, Services, Apps, ...
|
1572
|
+
# This endpoint initiates a registration flow for API clients such as mobile devices, smart TVs, and so on. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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>`. :::warning 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).
|
1573
1573
|
# @param [Hash] opts the optional parameters
|
1574
1574
|
# @return [RegistrationFlow]
|
1575
|
-
def
|
1576
|
-
data, _status_code, _headers =
|
1575
|
+
def initialize_self_service_registration_without_browser(opts = {})
|
1576
|
+
data, _status_code, _headers = initialize_self_service_registration_without_browser_with_http_info(opts)
|
1577
1577
|
data
|
1578
1578
|
end
|
1579
1579
|
|
1580
|
-
# Initialize Registration Flow for
|
1581
|
-
# 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>`. :::warning 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).
|
1580
|
+
# Initialize Registration Flow for APIs, Services, Apps, ...
|
1581
|
+
# This endpoint initiates a registration flow for API clients such as mobile devices, smart TVs, and so on. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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>`. :::warning 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).
|
1582
1582
|
# @param [Hash] opts the optional parameters
|
1583
1583
|
# @return [Array<(RegistrationFlow, Integer, Hash)>] RegistrationFlow data, response status code and response headers
|
1584
|
-
def
|
1584
|
+
def initialize_self_service_registration_without_browser_with_http_info(opts = {})
|
1585
1585
|
if @api_client.config.debugging
|
1586
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.
|
1586
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.initialize_self_service_registration_without_browser ...'
|
1587
1587
|
end
|
1588
1588
|
# resource path
|
1589
1589
|
local_var_path = '/api/kratos/public/self-service/registration/api'
|
@@ -1609,7 +1609,7 @@ module OryHydraClient
|
|
1609
1609
|
auth_names = opts[:debug_auth_names] || []
|
1610
1610
|
|
1611
1611
|
new_options = opts.merge(
|
1612
|
-
:operation => :"DefaultApi.
|
1612
|
+
:operation => :"DefaultApi.initialize_self_service_registration_without_browser",
|
1613
1613
|
:header_params => header_params,
|
1614
1614
|
:query_params => query_params,
|
1615
1615
|
:form_params => form_params,
|
@@ -1620,7 +1620,7 @@ module OryHydraClient
|
|
1620
1620
|
|
1621
1621
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1622
1622
|
if @api_client.config.debugging
|
1623
|
-
@api_client.config.logger.debug "API called: DefaultApi#
|
1623
|
+
@api_client.config.logger.debug "API called: DefaultApi#initialize_self_service_registration_without_browser\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1624
1624
|
end
|
1625
1625
|
return data, status_code, headers
|
1626
1626
|
end
|
@@ -2166,7 +2166,7 @@ module OryHydraClient
|
|
2166
2166
|
end
|
2167
2167
|
|
2168
2168
|
# Submit a Login Flow
|
2169
|
-
# 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 `application/x-www-form-urlencoded` to be sent in the body and
|
2169
|
+
# :::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).
|
2170
2170
|
# @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`).
|
2171
2171
|
# @param [Hash] opts the optional parameters
|
2172
2172
|
# @option opts [SubmitSelfServiceLoginFlow] :submit_self_service_login_flow
|
@@ -2177,7 +2177,7 @@ module OryHydraClient
|
|
2177
2177
|
end
|
2178
2178
|
|
2179
2179
|
# Submit a Login Flow
|
2180
|
-
# 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 `application/x-www-form-urlencoded` to be sent in the body and
|
2180
|
+
# :::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).
|
2181
2181
|
# @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`).
|
2182
2182
|
# @param [Hash] opts the optional parameters
|
2183
2183
|
# @option opts [SubmitSelfServiceLoginFlow] :submit_self_service_login_flow
|
@@ -2369,7 +2369,7 @@ module OryHydraClient
|
|
2369
2369
|
end
|
2370
2370
|
|
2371
2371
|
# Submit a Registration Flow
|
2372
|
-
# 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 `application/x-www-form-urlencoded` to be sent in the body and
|
2372
|
+
# :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
2373
2373
|
# @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`).
|
2374
2374
|
# @param [Hash] opts the optional parameters
|
2375
2375
|
# @option opts [SubmitSelfServiceRegistrationFlow] :submit_self_service_registration_flow
|
@@ -2380,7 +2380,7 @@ module OryHydraClient
|
|
2380
2380
|
end
|
2381
2381
|
|
2382
2382
|
# Submit a Registration Flow
|
2383
|
-
# 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 `application/x-www-form-urlencoded` to be sent in the body and
|
2383
|
+
# :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: 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).
|
2384
2384
|
# @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`).
|
2385
2385
|
# @param [Hash] opts the optional parameters
|
2386
2386
|
# @option opts [SubmitSelfServiceRegistrationFlow] :submit_self_service_registration_flow
|
@@ -2533,7 +2533,7 @@ module OryHydraClient
|
|
2533
2533
|
fail ArgumentError, "Missing the required parameter 'flow' when calling DefaultApi.submit_self_service_verification_flow"
|
2534
2534
|
end
|
2535
2535
|
# resource path
|
2536
|
-
local_var_path = '/api/kratos/public/self-service/verification/
|
2536
|
+
local_var_path = '/api/kratos/public/self-service/verification/flows'
|
2537
2537
|
|
2538
2538
|
# query parameters
|
2539
2539
|
query_params = opts[:query_params] || {}
|