ory-client 0.0.1.alpha6 → 0.0.1.alpha7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -8
- data/docs/DefaultApi.md +25 -26
- data/docs/UiNodeInputAttributes.md +1 -1
- data/lib/ory-client.rb +2 -1
- data/lib/ory-client/api/default_api.rb +21 -21
- 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 -1
- 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 -1
- 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 +2 -4
- 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: f83a07e0b41457ad18d70ee54a9fd4ab68f6b851439e3a638c7d1b620bd8f603
|
4
|
+
data.tar.gz: ecfa37b9cd2ba0f57d710b69e1eeed63b98382cfee35195fb20721021003fdec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a23827a29a7d69de6a7b932d6404a4d0a4827d02c29024b6a573b8364a2e26cc4241e78ea4f9ce033e60819ece1540c97c0c88ba13ab9ce1ef54bb6f4d8ff0d
|
7
|
+
data.tar.gz: f4c0967b354aa8a052c40ad23c53ad877f7c52c4cc3311489ccaf3935987e4189b046e839d9cb81489ff620ce61d4b7bc2780df8c4f4ee4ab670a23c98767ded
|
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.7
|
12
|
+
- Package version: v0.0.1-alpha.7
|
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.7.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.7.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.7'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -105,8 +105,8 @@ Class | Method | HTTP request | Description
|
|
105
105
|
*OryHydraClient::DefaultApi* | [**get_self_service_verification_flow_admin**](docs/DefaultApi.md#get_self_service_verification_flow_admin) | **GET** /api/kratos/admin/self-service/verification/flows | Get Verification Flow
|
106
106
|
*OryHydraClient::DefaultApi* | [**get_version_admin**](docs/DefaultApi.md#get_version_admin) | **GET** /api/kratos/admin/version | Return Running Software Version.
|
107
107
|
*OryHydraClient::DefaultApi* | [**initialize_self_service_browser_logout_flow**](docs/DefaultApi.md#initialize_self_service_browser_logout_flow) | **GET** /api/kratos/public/self-service/browser/flows/logout | Initialize Browser-Based Logout User Flow
|
108
|
-
*OryHydraClient::DefaultApi* | [**initialize_self_service_login_for_browsers**](docs/DefaultApi.md#initialize_self_service_login_for_browsers) | **GET** /api/kratos/public/self-service/login/browser | Initialize Login Flow for
|
109
|
-
*OryHydraClient::DefaultApi* | [**
|
108
|
+
*OryHydraClient::DefaultApi* | [**initialize_self_service_login_for_browsers**](docs/DefaultApi.md#initialize_self_service_login_for_browsers) | **GET** /api/kratos/public/self-service/login/browser | Initialize Login Flow for browsers
|
109
|
+
*OryHydraClient::DefaultApi* | [**initialize_self_service_login_for_native_apps**](docs/DefaultApi.md#initialize_self_service_login_for_native_apps) | **GET** /api/kratos/public/self-service/login/api | Initialize Login Flow for Native Apps and API clients
|
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
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
|
@@ -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 | 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
|
|
@@ -200,6 +200,7 @@ Class | Method | HTTP request | Description
|
|
200
200
|
- [OryHydraClient::UiNodeAttributes](docs/UiNodeAttributes.md)
|
201
201
|
- [OryHydraClient::UiNodeImageAttributes](docs/UiNodeImageAttributes.md)
|
202
202
|
- [OryHydraClient::UiNodeInputAttributes](docs/UiNodeInputAttributes.md)
|
203
|
+
- [OryHydraClient::UiNodeInputAttributesValue](docs/UiNodeInputAttributesValue.md)
|
203
204
|
- [OryHydraClient::UiNodeTextAttributes](docs/UiNodeTextAttributes.md)
|
204
205
|
- [OryHydraClient::UiText](docs/UiText.md)
|
205
206
|
- [OryHydraClient::UpdateIdentity](docs/UpdateIdentity.md)
|
data/docs/DefaultApi.md
CHANGED
@@ -24,8 +24,8 @@ All URIs are relative to *https://playground.projects.oryapis.com*
|
|
24
24
|
| [**get_self_service_verification_flow_admin**](DefaultApi.md#get_self_service_verification_flow_admin) | **GET** /api/kratos/admin/self-service/verification/flows | Get Verification Flow |
|
25
25
|
| [**get_version_admin**](DefaultApi.md#get_version_admin) | **GET** /api/kratos/admin/version | Return Running Software Version. |
|
26
26
|
| [**initialize_self_service_browser_logout_flow**](DefaultApi.md#initialize_self_service_browser_logout_flow) | **GET** /api/kratos/public/self-service/browser/flows/logout | Initialize Browser-Based Logout User Flow |
|
27
|
-
| [**initialize_self_service_login_for_browsers**](DefaultApi.md#initialize_self_service_login_for_browsers) | **GET** /api/kratos/public/self-service/login/browser | Initialize Login Flow for
|
28
|
-
| [**
|
27
|
+
| [**initialize_self_service_login_for_browsers**](DefaultApi.md#initialize_self_service_login_for_browsers) | **GET** /api/kratos/public/self-service/login/browser | Initialize Login Flow for browsers |
|
28
|
+
| [**initialize_self_service_login_for_native_apps**](DefaultApi.md#initialize_self_service_login_for_native_apps) | **GET** /api/kratos/public/self-service/login/api | Initialize Login Flow for Native Apps and API clients |
|
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
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 |
|
@@ -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 | 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
|
|
@@ -1400,11 +1400,11 @@ No authorization required
|
|
1400
1400
|
|
1401
1401
|
## initialize_self_service_login_for_browsers
|
1402
1402
|
|
1403
|
-
>
|
1403
|
+
> initialize_self_service_login_for_browsers(opts)
|
1404
1404
|
|
1405
|
-
Initialize Login Flow for
|
1405
|
+
Initialize Login Flow for browsers
|
1406
1406
|
|
1407
|
-
This endpoint initializes a browser-based user login flow.
|
1407
|
+
This endpoint initializes a browser-based user login flow. Once initialized, the browser 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. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). 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
|
|
@@ -1418,9 +1418,8 @@ opts = {
|
|
1418
1418
|
}
|
1419
1419
|
|
1420
1420
|
begin
|
1421
|
-
# Initialize Login Flow for
|
1422
|
-
|
1423
|
-
p result
|
1421
|
+
# Initialize Login Flow for browsers
|
1422
|
+
api_instance.initialize_self_service_login_for_browsers(opts)
|
1424
1423
|
rescue OryHydraClient::ApiError => e
|
1425
1424
|
puts "Error when calling DefaultApi->initialize_self_service_login_for_browsers: #{e}"
|
1426
1425
|
end
|
@@ -1428,17 +1427,17 @@ end
|
|
1428
1427
|
|
1429
1428
|
#### Using the initialize_self_service_login_for_browsers_with_http_info variant
|
1430
1429
|
|
1431
|
-
This returns an Array which contains the response data, status code and headers.
|
1430
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
1432
1431
|
|
1433
|
-
> <Array(
|
1432
|
+
> <Array(nil, Integer, Hash)> initialize_self_service_login_for_browsers_with_http_info(opts)
|
1434
1433
|
|
1435
1434
|
```ruby
|
1436
1435
|
begin
|
1437
|
-
# Initialize Login Flow for
|
1436
|
+
# Initialize Login Flow for browsers
|
1438
1437
|
data, status_code, headers = api_instance.initialize_self_service_login_for_browsers_with_http_info(opts)
|
1439
1438
|
p status_code # => 2xx
|
1440
1439
|
p headers # => { ... }
|
1441
|
-
p data # =>
|
1440
|
+
p data # => nil
|
1442
1441
|
rescue OryHydraClient::ApiError => e
|
1443
1442
|
puts "Error when calling DefaultApi->initialize_self_service_login_for_browsers_with_http_info: #{e}"
|
1444
1443
|
end
|
@@ -1452,7 +1451,7 @@ end
|
|
1452
1451
|
|
1453
1452
|
### Return type
|
1454
1453
|
|
1455
|
-
|
1454
|
+
nil (empty response body)
|
1456
1455
|
|
1457
1456
|
### Authorization
|
1458
1457
|
|
@@ -1464,13 +1463,13 @@ No authorization required
|
|
1464
1463
|
- **Accept**: application/json
|
1465
1464
|
|
1466
1465
|
|
1467
|
-
##
|
1466
|
+
## initialize_self_service_login_for_native_apps
|
1468
1467
|
|
1469
|
-
> <LoginFlow>
|
1468
|
+
> <LoginFlow> initialize_self_service_login_for_native_apps(opts)
|
1470
1469
|
|
1471
|
-
Initialize Login Flow for
|
1470
|
+
Initialize Login Flow for Native Apps and API clients
|
1472
1471
|
|
1473
|
-
This endpoint initiates a login flow for API clients
|
1472
|
+
This endpoint initiates a login 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 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
1473
|
|
1475
1474
|
### Examples
|
1476
1475
|
|
@@ -1484,29 +1483,29 @@ opts = {
|
|
1484
1483
|
}
|
1485
1484
|
|
1486
1485
|
begin
|
1487
|
-
# Initialize Login Flow for
|
1488
|
-
result = api_instance.
|
1486
|
+
# Initialize Login Flow for Native Apps and API clients
|
1487
|
+
result = api_instance.initialize_self_service_login_for_native_apps(opts)
|
1489
1488
|
p result
|
1490
1489
|
rescue OryHydraClient::ApiError => e
|
1491
|
-
puts "Error when calling DefaultApi->
|
1490
|
+
puts "Error when calling DefaultApi->initialize_self_service_login_for_native_apps: #{e}"
|
1492
1491
|
end
|
1493
1492
|
```
|
1494
1493
|
|
1495
|
-
#### Using the
|
1494
|
+
#### Using the initialize_self_service_login_for_native_apps_with_http_info variant
|
1496
1495
|
|
1497
1496
|
This returns an Array which contains the response data, status code and headers.
|
1498
1497
|
|
1499
|
-
> <Array(<LoginFlow>, Integer, Hash)>
|
1498
|
+
> <Array(<LoginFlow>, Integer, Hash)> initialize_self_service_login_for_native_apps_with_http_info(opts)
|
1500
1499
|
|
1501
1500
|
```ruby
|
1502
1501
|
begin
|
1503
|
-
# Initialize Login Flow for
|
1504
|
-
data, status_code, headers = api_instance.
|
1502
|
+
# Initialize Login Flow for Native Apps and API clients
|
1503
|
+
data, status_code, headers = api_instance.initialize_self_service_login_for_native_apps_with_http_info(opts)
|
1505
1504
|
p status_code # => 2xx
|
1506
1505
|
p headers # => { ... }
|
1507
1506
|
p data # => <LoginFlow>
|
1508
1507
|
rescue OryHydraClient::ApiError => e
|
1509
|
-
puts "Error when calling DefaultApi->
|
1508
|
+
puts "Error when calling DefaultApi->initialize_self_service_login_for_native_apps_with_http_info: #{e}"
|
1510
1509
|
end
|
1511
1510
|
```
|
1512
1511
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
| **pattern** | **String** | The input's pattern. | [optional] |
|
11
11
|
| **required** | **Boolean** | Mark this input field as required. | [optional] |
|
12
12
|
| **type** | **String** | | |
|
13
|
-
| **value** | [**
|
13
|
+
| **value** | [**UiNodeInputAttributesValue**](UiNodeInputAttributesValue.md) | | [optional] |
|
14
14
|
|
15
15
|
## Example
|
16
16
|
|
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.7
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -85,6 +85,7 @@ require 'ory-client/models/ui_node_anchor_attributes'
|
|
85
85
|
require 'ory-client/models/ui_node_attributes'
|
86
86
|
require 'ory-client/models/ui_node_image_attributes'
|
87
87
|
require 'ory-client/models/ui_node_input_attributes'
|
88
|
+
require 'ory-client/models/ui_node_input_attributes_value'
|
88
89
|
require 'ory-client/models/ui_node_text_attributes'
|
89
90
|
require 'ory-client/models/ui_text'
|
90
91
|
require 'ory-client/models/update_identity'
|
@@ -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.7
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
@@ -1277,21 +1277,21 @@ module OryHydraClient
|
|
1277
1277
|
return data, status_code, headers
|
1278
1278
|
end
|
1279
1279
|
|
1280
|
-
# Initialize Login Flow for
|
1281
|
-
# This endpoint initializes a browser-based user login flow.
|
1280
|
+
# Initialize Login Flow for browsers
|
1281
|
+
# This endpoint initializes a browser-based user login flow. Once initialized, the browser 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. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). 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
|
-
# @return [
|
1284
|
+
# @return [nil]
|
1285
1285
|
def initialize_self_service_login_for_browsers(opts = {})
|
1286
|
-
|
1287
|
-
|
1286
|
+
initialize_self_service_login_for_browsers_with_http_info(opts)
|
1287
|
+
nil
|
1288
1288
|
end
|
1289
1289
|
|
1290
|
-
# Initialize Login Flow for
|
1291
|
-
# This endpoint initializes a browser-based user login flow.
|
1290
|
+
# Initialize Login Flow for browsers
|
1291
|
+
# This endpoint initializes a browser-based user login flow. Once initialized, the browser 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. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). 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
|
-
# @return [Array<(
|
1294
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1295
1295
|
def initialize_self_service_login_for_browsers_with_http_info(opts = {})
|
1296
1296
|
if @api_client.config.debugging
|
1297
1297
|
@api_client.config.logger.debug 'Calling API: DefaultApi.initialize_self_service_login_for_browsers ...'
|
@@ -1315,7 +1315,7 @@ module OryHydraClient
|
|
1315
1315
|
post_body = opts[:debug_body]
|
1316
1316
|
|
1317
1317
|
# return_type
|
1318
|
-
return_type = opts[:debug_return_type]
|
1318
|
+
return_type = opts[:debug_return_type]
|
1319
1319
|
|
1320
1320
|
# auth_names
|
1321
1321
|
auth_names = opts[:debug_auth_names] || []
|
@@ -1337,24 +1337,24 @@ module OryHydraClient
|
|
1337
1337
|
return data, status_code, headers
|
1338
1338
|
end
|
1339
1339
|
|
1340
|
-
# Initialize Login Flow for
|
1341
|
-
# This endpoint initiates a login flow for API clients
|
1340
|
+
# Initialize Login Flow for Native Apps and API clients
|
1341
|
+
# This endpoint initiates a login 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 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]
|
1345
|
-
def
|
1346
|
-
data, _status_code, _headers =
|
1345
|
+
def initialize_self_service_login_for_native_apps(opts = {})
|
1346
|
+
data, _status_code, _headers = initialize_self_service_login_for_native_apps_with_http_info(opts)
|
1347
1347
|
data
|
1348
1348
|
end
|
1349
1349
|
|
1350
|
-
# Initialize Login Flow for
|
1351
|
-
# This endpoint initiates a login flow for API clients
|
1350
|
+
# Initialize Login Flow for Native Apps and API clients
|
1351
|
+
# This endpoint initiates a login 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 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
|
1355
|
-
def
|
1355
|
+
def initialize_self_service_login_for_native_apps_with_http_info(opts = {})
|
1356
1356
|
if @api_client.config.debugging
|
1357
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.
|
1357
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.initialize_self_service_login_for_native_apps ...'
|
1358
1358
|
end
|
1359
1359
|
# resource path
|
1360
1360
|
local_var_path = '/api/kratos/public/self-service/login/api'
|
@@ -1381,7 +1381,7 @@ module OryHydraClient
|
|
1381
1381
|
auth_names = opts[:debug_auth_names] || []
|
1382
1382
|
|
1383
1383
|
new_options = opts.merge(
|
1384
|
-
:operation => :"DefaultApi.
|
1384
|
+
:operation => :"DefaultApi.initialize_self_service_login_for_native_apps",
|
1385
1385
|
:header_params => header_params,
|
1386
1386
|
:query_params => query_params,
|
1387
1387
|
:form_params => form_params,
|
@@ -1392,7 +1392,7 @@ module OryHydraClient
|
|
1392
1392
|
|
1393
1393
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1394
1394
|
if @api_client.config.debugging
|
1395
|
-
@api_client.config.logger.debug "API called: DefaultApi#
|
1395
|
+
@api_client.config.logger.debug "API called: DefaultApi#initialize_self_service_login_for_native_apps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1396
1396
|
end
|
1397
1397
|
return data, status_code, headers
|
1398
1398
|
end
|
@@ -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'
|
2537
2537
|
|
2538
2538
|
# query parameters
|
2539
2539
|
query_params = opts[:query_params] || {}
|
@@ -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.7
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|
data/lib/ory-client/api_error.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.7
|
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.7
|
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.7
|
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.7
|
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.7
|
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.7
|
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.7
|
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.7
|
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.7
|
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.7
|
7
7
|
Contact: support@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.1.1
|