ory-kratos-client 0.7.1.alpha1 → 0.7.1.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +129 -129
- data/docs/AdminCreateIdentityBody.md +2 -2
- data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +2 -2
- data/docs/AdminUpdateIdentityBody.md +2 -2
- data/docs/AuthenticateOKBody.md +2 -2
- data/docs/ContainerChangeResponseItem.md +2 -2
- data/docs/ContainerCreateCreatedBody.md +2 -2
- data/docs/ContainerTopOKBody.md +2 -2
- data/docs/ContainerUpdateOKBody.md +2 -2
- data/docs/ContainerWaitOKBody.md +2 -2
- data/docs/ContainerWaitOKBodyError.md +2 -2
- data/docs/ErrorResponse.md +2 -2
- data/docs/GenericError.md +2 -2
- data/docs/GraphDriverData.md +2 -2
- data/docs/HealthNotReadyStatus.md +2 -2
- data/docs/HealthStatus.md +2 -2
- data/docs/IdResponse.md +2 -2
- data/docs/Identity.md +2 -2
- data/docs/IdentityCredentials.md +2 -2
- data/docs/IdentityState.md +2 -2
- data/docs/ImageDeleteResponseItem.md +2 -2
- data/docs/ImageSummary.md +2 -2
- data/docs/InlineResponse200.md +2 -2
- data/docs/InlineResponse2001.md +2 -2
- data/docs/InlineResponse503.md +2 -2
- data/docs/JsonError.md +2 -2
- data/docs/Meta.md +2 -2
- data/docs/MetadataApi.md +13 -13
- data/docs/Plugin.md +2 -2
- data/docs/PluginConfig.md +2 -2
- data/docs/PluginConfigArgs.md +2 -2
- data/docs/PluginConfigInterface.md +2 -2
- data/docs/PluginConfigLinux.md +2 -2
- data/docs/PluginConfigNetwork.md +2 -2
- data/docs/PluginConfigRootfs.md +2 -2
- data/docs/PluginConfigUser.md +2 -2
- data/docs/PluginDevice.md +2 -2
- data/docs/PluginEnv.md +2 -2
- data/docs/PluginInterfaceType.md +2 -2
- data/docs/PluginMount.md +2 -2
- data/docs/PluginSettings.md +2 -2
- data/docs/Port.md +2 -2
- data/docs/RecoveryAddress.md +2 -2
- data/docs/SelfServiceError.md +2 -2
- data/docs/SelfServiceLoginFlow.md +2 -2
- data/docs/SelfServiceLogoutUrl.md +2 -2
- data/docs/SelfServiceRecoveryFlow.md +2 -2
- data/docs/SelfServiceRecoveryFlowState.md +2 -2
- data/docs/SelfServiceRecoveryLink.md +2 -2
- data/docs/SelfServiceRegistrationFlow.md +2 -2
- data/docs/SelfServiceSettingsFlow.md +2 -2
- data/docs/SelfServiceSettingsFlowState.md +2 -2
- data/docs/SelfServiceVerificationFlow.md +2 -2
- data/docs/SelfServiceVerificationFlowState.md +2 -2
- data/docs/ServiceUpdateResponse.md +2 -2
- data/docs/Session.md +2 -2
- data/docs/SettingsProfileFormConfig.md +2 -2
- data/docs/SubmitSelfServiceLoginFlowBody.md +6 -6
- data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +2 -2
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +2 -2
- data/docs/SubmitSelfServiceLogoutFlowWithoutBrowserBody.md +2 -2
- data/docs/SubmitSelfServiceRecoveryFlowBody.md +6 -6
- data/docs/SubmitSelfServiceRecoveryFlowWithLinkMethodBody.md +2 -2
- data/docs/SubmitSelfServiceRegistrationFlowBody.md +6 -6
- data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +2 -2
- data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.md +2 -2
- data/docs/SubmitSelfServiceSettingsFlowBody.md +6 -6
- data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +2 -2
- data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethodBody.md +2 -2
- data/docs/SubmitSelfServiceSettingsFlowWithProfileMethodBody.md +2 -2
- data/docs/SubmitSelfServiceVerificationFlowBody.md +6 -6
- data/docs/SubmitSelfServiceVerificationFlowWithLinkMethodBody.md +2 -2
- data/docs/SuccessfulSelfServiceLoginWithoutBrowser.md +2 -2
- data/docs/SuccessfulSelfServiceRegistrationWithoutBrowser.md +2 -2
- data/docs/SuccessfulSelfServiceSettingsWithoutBrowser.md +2 -2
- data/docs/UiContainer.md +2 -2
- data/docs/UiNode.md +2 -2
- data/docs/UiNodeAnchorAttributes.md +2 -2
- data/docs/UiNodeAttributes.md +4 -4
- data/docs/UiNodeImageAttributes.md +2 -2
- data/docs/UiNodeInputAttributes.md +2 -2
- data/docs/UiNodeTextAttributes.md +2 -2
- data/docs/UiText.md +2 -2
- data/docs/V0alpha1Api.md +111 -111
- data/docs/VerifiableIdentityAddress.md +2 -2
- data/docs/Version.md +2 -2
- data/docs/Volume.md +2 -2
- data/docs/VolumeUsageData.md +2 -2
- data/lib/ory-kratos-client/api/metadata_api.rb +3 -3
- data/lib/ory-kratos-client/api/v0alpha1_api.rb +3 -3
- data/lib/ory-kratos-client/api_client.rb +4 -4
- data/lib/ory-kratos-client/api_error.rb +3 -3
- data/lib/ory-kratos-client/configuration.rb +3 -3
- data/lib/ory-kratos-client/models/admin_create_identity_body.rb +6 -6
- data/lib/ory-kratos-client/models/admin_create_self_service_recovery_link_body.rb +6 -6
- data/lib/ory-kratos-client/models/admin_update_identity_body.rb +6 -6
- data/lib/ory-kratos-client/models/authenticate_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_change_response_item.rb +6 -6
- data/lib/ory-kratos-client/models/container_create_created_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_top_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_update_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_wait_ok_body.rb +6 -6
- data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +6 -6
- data/lib/ory-kratos-client/models/error_response.rb +6 -6
- data/lib/ory-kratos-client/models/generic_error.rb +6 -6
- data/lib/ory-kratos-client/models/graph_driver_data.rb +6 -6
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +6 -6
- data/lib/ory-kratos-client/models/health_status.rb +6 -6
- data/lib/ory-kratos-client/models/id_response.rb +6 -6
- data/lib/ory-kratos-client/models/identity.rb +6 -6
- data/lib/ory-kratos-client/models/identity_credentials.rb +6 -6
- data/lib/ory-kratos-client/models/identity_state.rb +3 -3
- data/lib/ory-kratos-client/models/image_delete_response_item.rb +6 -6
- data/lib/ory-kratos-client/models/image_summary.rb +6 -6
- data/lib/ory-kratos-client/models/inline_response200.rb +6 -6
- data/lib/ory-kratos-client/models/inline_response2001.rb +6 -6
- data/lib/ory-kratos-client/models/inline_response503.rb +6 -6
- data/lib/ory-kratos-client/models/json_error.rb +6 -6
- data/lib/ory-kratos-client/models/meta.rb +6 -6
- data/lib/ory-kratos-client/models/plugin.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_args.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_interface.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_linux.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_network.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_config_user.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_device.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_env.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_interface_type.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_mount.rb +6 -6
- data/lib/ory-kratos-client/models/plugin_settings.rb +6 -6
- data/lib/ory-kratos-client/models/port.rb +6 -6
- data/lib/ory-kratos-client/models/recovery_address.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_error.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_login_flow.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_logout_url.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_recovery_flow.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_recovery_flow_state.rb +3 -3
- data/lib/ory-kratos-client/models/self_service_recovery_link.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_registration_flow.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_settings_flow.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_settings_flow_state.rb +3 -3
- data/lib/ory-kratos-client/models/self_service_verification_flow.rb +6 -6
- data/lib/ory-kratos-client/models/self_service_verification_flow_state.rb +3 -3
- data/lib/ory-kratos-client/models/service_update_response.rb +6 -6
- data/lib/ory-kratos-client/models/session.rb +6 -6
- data/lib/ory-kratos-client/models/settings_profile_form_config.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_body.rb +4 -4
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_logout_flow_without_browser_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_body.rb +4 -4
- data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_body.rb +4 -4
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_body.rb +4 -4
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_body.rb +4 -4
- data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method_body.rb +6 -6
- data/lib/ory-kratos-client/models/successful_self_service_login_without_browser.rb +6 -6
- data/lib/ory-kratos-client/models/successful_self_service_registration_without_browser.rb +6 -6
- data/lib/ory-kratos-client/models/successful_self_service_settings_without_browser.rb +6 -6
- data/lib/ory-kratos-client/models/ui_container.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_attributes.rb +4 -4
- data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +6 -6
- data/lib/ory-kratos-client/models/ui_text.rb +6 -6
- data/lib/ory-kratos-client/models/verifiable_identity_address.rb +6 -6
- data/lib/ory-kratos-client/models/version.rb +6 -6
- data/lib/ory-kratos-client/models/volume.rb +6 -6
- data/lib/ory-kratos-client/models/volume_usage_data.rb +6 -6
- data/lib/ory-kratos-client/version.rb +4 -4
- data/lib/ory-kratos-client.rb +4 -4
- data/ory-kratos-client.gemspec +3 -3
- data/spec/api_client_spec.rb +31 -31
- data/spec/configuration_spec.rb +5 -5
- data/spec/spec_helper.rb +2 -2
- metadata +4 -4
data/docs/UiText.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# OryKratosClient::UiText
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
```ruby
|
15
15
|
require 'ory-kratos-client'
|
16
16
|
|
17
|
-
instance =
|
17
|
+
instance = OryKratosClient::UiText.new(
|
18
18
|
context: null,
|
19
19
|
id: null,
|
20
20
|
text: null,
|
data/docs/V0alpha1Api.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# OryKratosClient::V0alpha1Api
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost*
|
4
4
|
|
@@ -52,21 +52,21 @@ This endpoint creates an identity. It is NOT possible to set an identity's crede
|
|
52
52
|
require 'time'
|
53
53
|
require 'ory-kratos-client'
|
54
54
|
# setup authorization
|
55
|
-
|
55
|
+
OryKratosClient.configure do |config|
|
56
56
|
# Configure Bearer authorization: oryAccessToken
|
57
57
|
config.access_token = 'YOUR_BEARER_TOKEN'
|
58
58
|
end
|
59
59
|
|
60
|
-
api_instance =
|
60
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
61
61
|
opts = {
|
62
|
-
admin_create_identity_body:
|
62
|
+
admin_create_identity_body: OryKratosClient::AdminCreateIdentityBody.new({schema_id: 'schema_id_example', traits: 3.56}) # AdminCreateIdentityBody |
|
63
63
|
}
|
64
64
|
|
65
65
|
begin
|
66
66
|
# Create an Identity
|
67
67
|
result = api_instance.admin_create_identity(opts)
|
68
68
|
p result
|
69
|
-
rescue
|
69
|
+
rescue OryKratosClient::ApiError => e
|
70
70
|
puts "Error when calling V0alpha1Api->admin_create_identity: #{e}"
|
71
71
|
end
|
72
72
|
```
|
@@ -84,7 +84,7 @@ begin
|
|
84
84
|
p status_code # => 2xx
|
85
85
|
p headers # => { ... }
|
86
86
|
p data # => <Identity>
|
87
|
-
rescue
|
87
|
+
rescue OryKratosClient::ApiError => e
|
88
88
|
puts "Error when calling V0alpha1Api->admin_create_identity_with_http_info: #{e}"
|
89
89
|
end
|
90
90
|
```
|
@@ -123,16 +123,16 @@ This endpoint creates a recovery link which should be given to the user in order
|
|
123
123
|
require 'time'
|
124
124
|
require 'ory-kratos-client'
|
125
125
|
|
126
|
-
api_instance =
|
126
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
127
127
|
opts = {
|
128
|
-
admin_create_self_service_recovery_link_body:
|
128
|
+
admin_create_self_service_recovery_link_body: OryKratosClient::AdminCreateSelfServiceRecoveryLinkBody.new({identity_id: 'identity_id_example'}) # AdminCreateSelfServiceRecoveryLinkBody |
|
129
129
|
}
|
130
130
|
|
131
131
|
begin
|
132
132
|
# Create a Recovery Link
|
133
133
|
result = api_instance.admin_create_self_service_recovery_link(opts)
|
134
134
|
p result
|
135
|
-
rescue
|
135
|
+
rescue OryKratosClient::ApiError => e
|
136
136
|
puts "Error when calling V0alpha1Api->admin_create_self_service_recovery_link: #{e}"
|
137
137
|
end
|
138
138
|
```
|
@@ -150,7 +150,7 @@ begin
|
|
150
150
|
p status_code # => 2xx
|
151
151
|
p headers # => { ... }
|
152
152
|
p data # => <SelfServiceRecoveryLink>
|
153
|
-
rescue
|
153
|
+
rescue OryKratosClient::ApiError => e
|
154
154
|
puts "Error when calling V0alpha1Api->admin_create_self_service_recovery_link_with_http_info: #{e}"
|
155
155
|
end
|
156
156
|
```
|
@@ -189,18 +189,18 @@ Calling this endpoint irrecoverably and permanently deletes the identity given i
|
|
189
189
|
require 'time'
|
190
190
|
require 'ory-kratos-client'
|
191
191
|
# setup authorization
|
192
|
-
|
192
|
+
OryKratosClient.configure do |config|
|
193
193
|
# Configure Bearer authorization: oryAccessToken
|
194
194
|
config.access_token = 'YOUR_BEARER_TOKEN'
|
195
195
|
end
|
196
196
|
|
197
|
-
api_instance =
|
197
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
198
198
|
id = 'id_example' # String | ID is the identity's ID.
|
199
199
|
|
200
200
|
begin
|
201
201
|
# Delete an Identity
|
202
202
|
api_instance.admin_delete_identity(id)
|
203
|
-
rescue
|
203
|
+
rescue OryKratosClient::ApiError => e
|
204
204
|
puts "Error when calling V0alpha1Api->admin_delete_identity: #{e}"
|
205
205
|
end
|
206
206
|
```
|
@@ -218,7 +218,7 @@ begin
|
|
218
218
|
p status_code # => 2xx
|
219
219
|
p headers # => { ... }
|
220
220
|
p data # => nil
|
221
|
-
rescue
|
221
|
+
rescue OryKratosClient::ApiError => e
|
222
222
|
puts "Error when calling V0alpha1Api->admin_delete_identity_with_http_info: #{e}"
|
223
223
|
end
|
224
224
|
```
|
@@ -257,19 +257,19 @@ Learn how identities work in [Ory Kratos' User And Identity Model Documentation]
|
|
257
257
|
require 'time'
|
258
258
|
require 'ory-kratos-client'
|
259
259
|
# setup authorization
|
260
|
-
|
260
|
+
OryKratosClient.configure do |config|
|
261
261
|
# Configure Bearer authorization: oryAccessToken
|
262
262
|
config.access_token = 'YOUR_BEARER_TOKEN'
|
263
263
|
end
|
264
264
|
|
265
|
-
api_instance =
|
265
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
266
266
|
id = 'id_example' # String | ID must be set to the ID of identity you want to get
|
267
267
|
|
268
268
|
begin
|
269
269
|
# Get an Identity
|
270
270
|
result = api_instance.admin_get_identity(id)
|
271
271
|
p result
|
272
|
-
rescue
|
272
|
+
rescue OryKratosClient::ApiError => e
|
273
273
|
puts "Error when calling V0alpha1Api->admin_get_identity: #{e}"
|
274
274
|
end
|
275
275
|
```
|
@@ -287,7 +287,7 @@ begin
|
|
287
287
|
p status_code # => 2xx
|
288
288
|
p headers # => { ... }
|
289
289
|
p data # => <Identity>
|
290
|
-
rescue
|
290
|
+
rescue OryKratosClient::ApiError => e
|
291
291
|
puts "Error when calling V0alpha1Api->admin_get_identity_with_http_info: #{e}"
|
292
292
|
end
|
293
293
|
```
|
@@ -326,12 +326,12 @@ Lists all identities. Does not support search at the moment. Learn how identiti
|
|
326
326
|
require 'time'
|
327
327
|
require 'ory-kratos-client'
|
328
328
|
# setup authorization
|
329
|
-
|
329
|
+
OryKratosClient.configure do |config|
|
330
330
|
# Configure Bearer authorization: oryAccessToken
|
331
331
|
config.access_token = 'YOUR_BEARER_TOKEN'
|
332
332
|
end
|
333
333
|
|
334
|
-
api_instance =
|
334
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
335
335
|
opts = {
|
336
336
|
per_page: 789, # Integer | Items per Page This is the number of items per page.
|
337
337
|
page: 789 # Integer | Pagination Page
|
@@ -341,7 +341,7 @@ begin
|
|
341
341
|
# List Identities
|
342
342
|
result = api_instance.admin_list_identities(opts)
|
343
343
|
p result
|
344
|
-
rescue
|
344
|
+
rescue OryKratosClient::ApiError => e
|
345
345
|
puts "Error when calling V0alpha1Api->admin_list_identities: #{e}"
|
346
346
|
end
|
347
347
|
```
|
@@ -359,7 +359,7 @@ begin
|
|
359
359
|
p status_code # => 2xx
|
360
360
|
p headers # => { ... }
|
361
361
|
p data # => <Array<Identity>>
|
362
|
-
rescue
|
362
|
+
rescue OryKratosClient::ApiError => e
|
363
363
|
puts "Error when calling V0alpha1Api->admin_list_identities_with_http_info: #{e}"
|
364
364
|
end
|
365
365
|
```
|
@@ -399,22 +399,22 @@ This endpoint updates an identity. It is NOT possible to set an identity's crede
|
|
399
399
|
require 'time'
|
400
400
|
require 'ory-kratos-client'
|
401
401
|
# setup authorization
|
402
|
-
|
402
|
+
OryKratosClient.configure do |config|
|
403
403
|
# Configure Bearer authorization: oryAccessToken
|
404
404
|
config.access_token = 'YOUR_BEARER_TOKEN'
|
405
405
|
end
|
406
406
|
|
407
|
-
api_instance =
|
407
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
408
408
|
id = 'id_example' # String | ID must be set to the ID of identity you want to update
|
409
409
|
opts = {
|
410
|
-
admin_update_identity_body:
|
410
|
+
admin_update_identity_body: OryKratosClient::AdminUpdateIdentityBody.new({state: OryKratosClient::IdentityState::ACTIVE, traits: 3.56}) # AdminUpdateIdentityBody |
|
411
411
|
}
|
412
412
|
|
413
413
|
begin
|
414
414
|
# Update an Identity
|
415
415
|
result = api_instance.admin_update_identity(id, opts)
|
416
416
|
p result
|
417
|
-
rescue
|
417
|
+
rescue OryKratosClient::ApiError => e
|
418
418
|
puts "Error when calling V0alpha1Api->admin_update_identity: #{e}"
|
419
419
|
end
|
420
420
|
```
|
@@ -432,7 +432,7 @@ begin
|
|
432
432
|
p status_code # => 2xx
|
433
433
|
p headers # => { ... }
|
434
434
|
p data # => <Identity>
|
435
|
-
rescue
|
435
|
+
rescue OryKratosClient::ApiError => e
|
436
436
|
puts "Error when calling V0alpha1Api->admin_update_identity_with_http_info: #{e}"
|
437
437
|
end
|
438
438
|
```
|
@@ -472,7 +472,7 @@ This endpoint initializes a browser-based user logout flow and a URL which can b
|
|
472
472
|
require 'time'
|
473
473
|
require 'ory-kratos-client'
|
474
474
|
|
475
|
-
api_instance =
|
475
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
476
476
|
opts = {
|
477
477
|
cookie: 'cookie_example' # String | HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request.
|
478
478
|
}
|
@@ -481,7 +481,7 @@ begin
|
|
481
481
|
# Create a Logout URL for Browsers
|
482
482
|
result = api_instance.create_self_service_logout_flow_url_for_browsers(opts)
|
483
483
|
p result
|
484
|
-
rescue
|
484
|
+
rescue OryKratosClient::ApiError => e
|
485
485
|
puts "Error when calling V0alpha1Api->create_self_service_logout_flow_url_for_browsers: #{e}"
|
486
486
|
end
|
487
487
|
```
|
@@ -499,7 +499,7 @@ begin
|
|
499
499
|
p status_code # => 2xx
|
500
500
|
p headers # => { ... }
|
501
501
|
p data # => <SelfServiceLogoutUrl>
|
502
|
-
rescue
|
502
|
+
rescue OryKratosClient::ApiError => e
|
503
503
|
puts "Error when calling V0alpha1Api->create_self_service_logout_flow_url_for_browsers_with_http_info: #{e}"
|
504
504
|
end
|
505
505
|
```
|
@@ -538,14 +538,14 @@ Get a JSON Schema
|
|
538
538
|
require 'time'
|
539
539
|
require 'ory-kratos-client'
|
540
540
|
|
541
|
-
api_instance =
|
541
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
542
542
|
id = 'id_example' # String | ID must be set to the ID of schema you want to get
|
543
543
|
|
544
544
|
begin
|
545
545
|
|
546
546
|
result = api_instance.get_json_schema(id)
|
547
547
|
p result
|
548
|
-
rescue
|
548
|
+
rescue OryKratosClient::ApiError => e
|
549
549
|
puts "Error when calling V0alpha1Api->get_json_schema: #{e}"
|
550
550
|
end
|
551
551
|
```
|
@@ -563,7 +563,7 @@ begin
|
|
563
563
|
p status_code # => 2xx
|
564
564
|
p headers # => { ... }
|
565
565
|
p data # => Object
|
566
|
-
rescue
|
566
|
+
rescue OryKratosClient::ApiError => e
|
567
567
|
puts "Error when calling V0alpha1Api->get_json_schema_with_http_info: #{e}"
|
568
568
|
end
|
569
569
|
```
|
@@ -602,14 +602,14 @@ This endpoint returns the error associated with a user-facing self service error
|
|
602
602
|
require 'time'
|
603
603
|
require 'ory-kratos-client'
|
604
604
|
|
605
|
-
api_instance =
|
605
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
606
606
|
id = 'id_example' # String | Error is the error's ID
|
607
607
|
|
608
608
|
begin
|
609
609
|
# Get Self-Service Errors
|
610
610
|
result = api_instance.get_self_service_error(id)
|
611
611
|
p result
|
612
|
-
rescue
|
612
|
+
rescue OryKratosClient::ApiError => e
|
613
613
|
puts "Error when calling V0alpha1Api->get_self_service_error: #{e}"
|
614
614
|
end
|
615
615
|
```
|
@@ -627,7 +627,7 @@ begin
|
|
627
627
|
p status_code # => 2xx
|
628
628
|
p headers # => { ... }
|
629
629
|
p data # => <SelfServiceError>
|
630
|
-
rescue
|
630
|
+
rescue OryKratosClient::ApiError => e
|
631
631
|
puts "Error when calling V0alpha1Api->get_self_service_error_with_http_info: #{e}"
|
632
632
|
end
|
633
633
|
```
|
@@ -666,7 +666,7 @@ This endpoint returns a login flow's context with, for example, error details an
|
|
666
666
|
require 'time'
|
667
667
|
require 'ory-kratos-client'
|
668
668
|
|
669
|
-
api_instance =
|
669
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
670
670
|
id = 'id_example' # 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`).
|
671
671
|
opts = {
|
672
672
|
cookie: 'cookie_example' # String | HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
|
@@ -676,7 +676,7 @@ begin
|
|
676
676
|
# Get Login Flow
|
677
677
|
result = api_instance.get_self_service_login_flow(id, opts)
|
678
678
|
p result
|
679
|
-
rescue
|
679
|
+
rescue OryKratosClient::ApiError => e
|
680
680
|
puts "Error when calling V0alpha1Api->get_self_service_login_flow: #{e}"
|
681
681
|
end
|
682
682
|
```
|
@@ -694,7 +694,7 @@ begin
|
|
694
694
|
p status_code # => 2xx
|
695
695
|
p headers # => { ... }
|
696
696
|
p data # => <SelfServiceLoginFlow>
|
697
|
-
rescue
|
697
|
+
rescue OryKratosClient::ApiError => e
|
698
698
|
puts "Error when calling V0alpha1Api->get_self_service_login_flow_with_http_info: #{e}"
|
699
699
|
end
|
700
700
|
```
|
@@ -734,7 +734,7 @@ This endpoint returns a recovery flow's context with, for example, error details
|
|
734
734
|
require 'time'
|
735
735
|
require 'ory-kratos-client'
|
736
736
|
|
737
|
-
api_instance =
|
737
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
738
738
|
id = 'id_example' # String | The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`).
|
739
739
|
opts = {
|
740
740
|
cookie: 'cookie_example' # String | HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
|
@@ -744,7 +744,7 @@ begin
|
|
744
744
|
# Get Recovery Flow
|
745
745
|
result = api_instance.get_self_service_recovery_flow(id, opts)
|
746
746
|
p result
|
747
|
-
rescue
|
747
|
+
rescue OryKratosClient::ApiError => e
|
748
748
|
puts "Error when calling V0alpha1Api->get_self_service_recovery_flow: #{e}"
|
749
749
|
end
|
750
750
|
```
|
@@ -762,7 +762,7 @@ begin
|
|
762
762
|
p status_code # => 2xx
|
763
763
|
p headers # => { ... }
|
764
764
|
p data # => <SelfServiceRecoveryFlow>
|
765
|
-
rescue
|
765
|
+
rescue OryKratosClient::ApiError => e
|
766
766
|
puts "Error when calling V0alpha1Api->get_self_service_recovery_flow_with_http_info: #{e}"
|
767
767
|
end
|
768
768
|
```
|
@@ -802,7 +802,7 @@ This endpoint returns a registration flow's context with, for example, error det
|
|
802
802
|
require 'time'
|
803
803
|
require 'ory-kratos-client'
|
804
804
|
|
805
|
-
api_instance =
|
805
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
806
806
|
id = 'id_example' # 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`).
|
807
807
|
opts = {
|
808
808
|
cookie: 'cookie_example' # String | HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
|
@@ -812,7 +812,7 @@ begin
|
|
812
812
|
# Get Registration Flow
|
813
813
|
result = api_instance.get_self_service_registration_flow(id, opts)
|
814
814
|
p result
|
815
|
-
rescue
|
815
|
+
rescue OryKratosClient::ApiError => e
|
816
816
|
puts "Error when calling V0alpha1Api->get_self_service_registration_flow: #{e}"
|
817
817
|
end
|
818
818
|
```
|
@@ -830,7 +830,7 @@ begin
|
|
830
830
|
p status_code # => 2xx
|
831
831
|
p headers # => { ... }
|
832
832
|
p data # => <SelfServiceRegistrationFlow>
|
833
|
-
rescue
|
833
|
+
rescue OryKratosClient::ApiError => e
|
834
834
|
puts "Error when calling V0alpha1Api->get_self_service_registration_flow_with_http_info: #{e}"
|
835
835
|
end
|
836
836
|
```
|
@@ -870,7 +870,7 @@ When accessing this endpoint through Ory Kratos' Public API you must ensure that
|
|
870
870
|
require 'time'
|
871
871
|
require 'ory-kratos-client'
|
872
872
|
|
873
|
-
api_instance =
|
873
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
874
874
|
id = 'id_example' # String | ID is the Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`).
|
875
875
|
opts = {
|
876
876
|
x_session_token: 'x_session_token_example', # String | The Session Token When using the SDK in an app without a browser, please include the session token here.
|
@@ -881,7 +881,7 @@ begin
|
|
881
881
|
# Get Settings Flow
|
882
882
|
result = api_instance.get_self_service_settings_flow(id, opts)
|
883
883
|
p result
|
884
|
-
rescue
|
884
|
+
rescue OryKratosClient::ApiError => e
|
885
885
|
puts "Error when calling V0alpha1Api->get_self_service_settings_flow: #{e}"
|
886
886
|
end
|
887
887
|
```
|
@@ -899,7 +899,7 @@ begin
|
|
899
899
|
p status_code # => 2xx
|
900
900
|
p headers # => { ... }
|
901
901
|
p data # => <SelfServiceSettingsFlow>
|
902
|
-
rescue
|
902
|
+
rescue OryKratosClient::ApiError => e
|
903
903
|
puts "Error when calling V0alpha1Api->get_self_service_settings_flow_with_http_info: #{e}"
|
904
904
|
end
|
905
905
|
```
|
@@ -940,7 +940,7 @@ This endpoint returns a verification flow's context with, for example, error det
|
|
940
940
|
require 'time'
|
941
941
|
require 'ory-kratos-client'
|
942
942
|
|
943
|
-
api_instance =
|
943
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
944
944
|
id = 'id_example' # String | The Flow ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verification?flow=abcde`).
|
945
945
|
opts = {
|
946
946
|
cookie: 'cookie_example' # String | HTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
|
@@ -950,7 +950,7 @@ begin
|
|
950
950
|
# Get Verification Flow
|
951
951
|
result = api_instance.get_self_service_verification_flow(id, opts)
|
952
952
|
p result
|
953
|
-
rescue
|
953
|
+
rescue OryKratosClient::ApiError => e
|
954
954
|
puts "Error when calling V0alpha1Api->get_self_service_verification_flow: #{e}"
|
955
955
|
end
|
956
956
|
```
|
@@ -968,7 +968,7 @@ begin
|
|
968
968
|
p status_code # => 2xx
|
969
969
|
p headers # => { ... }
|
970
970
|
p data # => <SelfServiceVerificationFlow>
|
971
|
-
rescue
|
971
|
+
rescue OryKratosClient::ApiError => e
|
972
972
|
puts "Error when calling V0alpha1Api->get_self_service_verification_flow_with_http_info: #{e}"
|
973
973
|
end
|
974
974
|
```
|
@@ -1008,7 +1008,7 @@ This endpoint initializes a browser-based user login flow. This endpoint will se
|
|
1008
1008
|
require 'time'
|
1009
1009
|
require 'ory-kratos-client'
|
1010
1010
|
|
1011
|
-
api_instance =
|
1011
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1012
1012
|
opts = {
|
1013
1013
|
refresh: true # Boolean | 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.
|
1014
1014
|
}
|
@@ -1017,7 +1017,7 @@ begin
|
|
1017
1017
|
# Initialize Login Flow for Browsers
|
1018
1018
|
result = api_instance.initialize_self_service_login_flow_for_browsers(opts)
|
1019
1019
|
p result
|
1020
|
-
rescue
|
1020
|
+
rescue OryKratosClient::ApiError => e
|
1021
1021
|
puts "Error when calling V0alpha1Api->initialize_self_service_login_flow_for_browsers: #{e}"
|
1022
1022
|
end
|
1023
1023
|
```
|
@@ -1035,7 +1035,7 @@ begin
|
|
1035
1035
|
p status_code # => 2xx
|
1036
1036
|
p headers # => { ... }
|
1037
1037
|
p data # => <SelfServiceLoginFlow>
|
1038
|
-
rescue
|
1038
|
+
rescue OryKratosClient::ApiError => e
|
1039
1039
|
puts "Error when calling V0alpha1Api->initialize_self_service_login_flow_for_browsers_with_http_info: #{e}"
|
1040
1040
|
end
|
1041
1041
|
```
|
@@ -1074,7 +1074,7 @@ This endpoint initiates a login flow for API clients that do not use a browser,
|
|
1074
1074
|
require 'time'
|
1075
1075
|
require 'ory-kratos-client'
|
1076
1076
|
|
1077
|
-
api_instance =
|
1077
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1078
1078
|
opts = {
|
1079
1079
|
refresh: true # Boolean | 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.
|
1080
1080
|
}
|
@@ -1083,7 +1083,7 @@ begin
|
|
1083
1083
|
# Initialize Login Flow for APIs, Services, Apps, ...
|
1084
1084
|
result = api_instance.initialize_self_service_login_flow_without_browser(opts)
|
1085
1085
|
p result
|
1086
|
-
rescue
|
1086
|
+
rescue OryKratosClient::ApiError => e
|
1087
1087
|
puts "Error when calling V0alpha1Api->initialize_self_service_login_flow_without_browser: #{e}"
|
1088
1088
|
end
|
1089
1089
|
```
|
@@ -1101,7 +1101,7 @@ begin
|
|
1101
1101
|
p status_code # => 2xx
|
1102
1102
|
p headers # => { ... }
|
1103
1103
|
p data # => <SelfServiceLoginFlow>
|
1104
|
-
rescue
|
1104
|
+
rescue OryKratosClient::ApiError => e
|
1105
1105
|
puts "Error when calling V0alpha1Api->initialize_self_service_login_flow_without_browser_with_http_info: #{e}"
|
1106
1106
|
end
|
1107
1107
|
```
|
@@ -1140,13 +1140,13 @@ This endpoint initializes a browser-based account recovery flow. Once initialize
|
|
1140
1140
|
require 'time'
|
1141
1141
|
require 'ory-kratos-client'
|
1142
1142
|
|
1143
|
-
api_instance =
|
1143
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1144
1144
|
|
1145
1145
|
begin
|
1146
1146
|
# Initialize Recovery Flow for Browsers
|
1147
1147
|
result = api_instance.initialize_self_service_recovery_flow_for_browsers
|
1148
1148
|
p result
|
1149
|
-
rescue
|
1149
|
+
rescue OryKratosClient::ApiError => e
|
1150
1150
|
puts "Error when calling V0alpha1Api->initialize_self_service_recovery_flow_for_browsers: #{e}"
|
1151
1151
|
end
|
1152
1152
|
```
|
@@ -1164,7 +1164,7 @@ begin
|
|
1164
1164
|
p status_code # => 2xx
|
1165
1165
|
p headers # => { ... }
|
1166
1166
|
p data # => <SelfServiceRecoveryFlow>
|
1167
|
-
rescue
|
1167
|
+
rescue OryKratosClient::ApiError => e
|
1168
1168
|
puts "Error when calling V0alpha1Api->initialize_self_service_recovery_flow_for_browsers_with_http_info: #{e}"
|
1169
1169
|
end
|
1170
1170
|
```
|
@@ -1201,13 +1201,13 @@ This endpoint initiates a recovery flow for API clients such as mobile devices,
|
|
1201
1201
|
require 'time'
|
1202
1202
|
require 'ory-kratos-client'
|
1203
1203
|
|
1204
|
-
api_instance =
|
1204
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1205
1205
|
|
1206
1206
|
begin
|
1207
1207
|
# Initialize Recovery Flow for APIs, Services, Apps, ...
|
1208
1208
|
result = api_instance.initialize_self_service_recovery_flow_without_browser
|
1209
1209
|
p result
|
1210
|
-
rescue
|
1210
|
+
rescue OryKratosClient::ApiError => e
|
1211
1211
|
puts "Error when calling V0alpha1Api->initialize_self_service_recovery_flow_without_browser: #{e}"
|
1212
1212
|
end
|
1213
1213
|
```
|
@@ -1225,7 +1225,7 @@ begin
|
|
1225
1225
|
p status_code # => 2xx
|
1226
1226
|
p headers # => { ... }
|
1227
1227
|
p data # => <SelfServiceRecoveryFlow>
|
1228
|
-
rescue
|
1228
|
+
rescue OryKratosClient::ApiError => e
|
1229
1229
|
puts "Error when calling V0alpha1Api->initialize_self_service_recovery_flow_without_browser_with_http_info: #{e}"
|
1230
1230
|
end
|
1231
1231
|
```
|
@@ -1262,13 +1262,13 @@ This endpoint initializes a browser-based user registration flow. This endpoint
|
|
1262
1262
|
require 'time'
|
1263
1263
|
require 'ory-kratos-client'
|
1264
1264
|
|
1265
|
-
api_instance =
|
1265
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1266
1266
|
|
1267
1267
|
begin
|
1268
1268
|
# Initialize Registration Flow for Browsers
|
1269
1269
|
result = api_instance.initialize_self_service_registration_flow_for_browsers
|
1270
1270
|
p result
|
1271
|
-
rescue
|
1271
|
+
rescue OryKratosClient::ApiError => e
|
1272
1272
|
puts "Error when calling V0alpha1Api->initialize_self_service_registration_flow_for_browsers: #{e}"
|
1273
1273
|
end
|
1274
1274
|
```
|
@@ -1286,7 +1286,7 @@ begin
|
|
1286
1286
|
p status_code # => 2xx
|
1287
1287
|
p headers # => { ... }
|
1288
1288
|
p data # => <SelfServiceRegistrationFlow>
|
1289
|
-
rescue
|
1289
|
+
rescue OryKratosClient::ApiError => e
|
1290
1290
|
puts "Error when calling V0alpha1Api->initialize_self_service_registration_flow_for_browsers_with_http_info: #{e}"
|
1291
1291
|
end
|
1292
1292
|
```
|
@@ -1323,13 +1323,13 @@ This endpoint initiates a registration flow for API clients such as mobile devic
|
|
1323
1323
|
require 'time'
|
1324
1324
|
require 'ory-kratos-client'
|
1325
1325
|
|
1326
|
-
api_instance =
|
1326
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1327
1327
|
|
1328
1328
|
begin
|
1329
1329
|
# Initialize Registration Flow for APIs, Services, Apps, ...
|
1330
1330
|
result = api_instance.initialize_self_service_registration_flow_without_browser
|
1331
1331
|
p result
|
1332
|
-
rescue
|
1332
|
+
rescue OryKratosClient::ApiError => e
|
1333
1333
|
puts "Error when calling V0alpha1Api->initialize_self_service_registration_flow_without_browser: #{e}"
|
1334
1334
|
end
|
1335
1335
|
```
|
@@ -1347,7 +1347,7 @@ begin
|
|
1347
1347
|
p status_code # => 2xx
|
1348
1348
|
p headers # => { ... }
|
1349
1349
|
p data # => <SelfServiceRegistrationFlow>
|
1350
|
-
rescue
|
1350
|
+
rescue OryKratosClient::ApiError => e
|
1351
1351
|
puts "Error when calling V0alpha1Api->initialize_self_service_registration_flow_without_browser_with_http_info: #{e}"
|
1352
1352
|
end
|
1353
1353
|
```
|
@@ -1384,7 +1384,7 @@ This endpoint initializes a browser-based user settings flow. Once initialized,
|
|
1384
1384
|
require 'time'
|
1385
1385
|
require 'ory-kratos-client'
|
1386
1386
|
|
1387
|
-
api_instance =
|
1387
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1388
1388
|
opts = {
|
1389
1389
|
cookie: 'cookie_example' # String | The Session Cookie of the Identity performing the settings flow.
|
1390
1390
|
}
|
@@ -1393,7 +1393,7 @@ begin
|
|
1393
1393
|
# Initialize Settings Flow for Browsers
|
1394
1394
|
result = api_instance.initialize_self_service_settings_flow_for_browsers(opts)
|
1395
1395
|
p result
|
1396
|
-
rescue
|
1396
|
+
rescue OryKratosClient::ApiError => e
|
1397
1397
|
puts "Error when calling V0alpha1Api->initialize_self_service_settings_flow_for_browsers: #{e}"
|
1398
1398
|
end
|
1399
1399
|
```
|
@@ -1411,7 +1411,7 @@ begin
|
|
1411
1411
|
p status_code # => 2xx
|
1412
1412
|
p headers # => { ... }
|
1413
1413
|
p data # => <SelfServiceSettingsFlow>
|
1414
|
-
rescue
|
1414
|
+
rescue OryKratosClient::ApiError => e
|
1415
1415
|
puts "Error when calling V0alpha1Api->initialize_self_service_settings_flow_for_browsers_with_http_info: #{e}"
|
1416
1416
|
end
|
1417
1417
|
```
|
@@ -1450,7 +1450,7 @@ This endpoint initiates a settings flow for API clients such as mobile devices,
|
|
1450
1450
|
require 'time'
|
1451
1451
|
require 'ory-kratos-client'
|
1452
1452
|
|
1453
|
-
api_instance =
|
1453
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1454
1454
|
opts = {
|
1455
1455
|
x_session_token: 'x_session_token_example' # String | The Session Token of the Identity performing the settings flow.
|
1456
1456
|
}
|
@@ -1459,7 +1459,7 @@ begin
|
|
1459
1459
|
# Initialize Settings Flow for APIs, Services, Apps, ...
|
1460
1460
|
result = api_instance.initialize_self_service_settings_flow_without_browser(opts)
|
1461
1461
|
p result
|
1462
|
-
rescue
|
1462
|
+
rescue OryKratosClient::ApiError => e
|
1463
1463
|
puts "Error when calling V0alpha1Api->initialize_self_service_settings_flow_without_browser: #{e}"
|
1464
1464
|
end
|
1465
1465
|
```
|
@@ -1477,7 +1477,7 @@ begin
|
|
1477
1477
|
p status_code # => 2xx
|
1478
1478
|
p headers # => { ... }
|
1479
1479
|
p data # => <SelfServiceSettingsFlow>
|
1480
|
-
rescue
|
1480
|
+
rescue OryKratosClient::ApiError => e
|
1481
1481
|
puts "Error when calling V0alpha1Api->initialize_self_service_settings_flow_without_browser_with_http_info: #{e}"
|
1482
1482
|
end
|
1483
1483
|
```
|
@@ -1516,13 +1516,13 @@ This endpoint initializes a browser-based account verification flow. Once initia
|
|
1516
1516
|
require 'time'
|
1517
1517
|
require 'ory-kratos-client'
|
1518
1518
|
|
1519
|
-
api_instance =
|
1519
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1520
1520
|
|
1521
1521
|
begin
|
1522
1522
|
# Initialize Verification Flow for Browser Clients
|
1523
1523
|
result = api_instance.initialize_self_service_verification_flow_for_browsers
|
1524
1524
|
p result
|
1525
|
-
rescue
|
1525
|
+
rescue OryKratosClient::ApiError => e
|
1526
1526
|
puts "Error when calling V0alpha1Api->initialize_self_service_verification_flow_for_browsers: #{e}"
|
1527
1527
|
end
|
1528
1528
|
```
|
@@ -1540,7 +1540,7 @@ begin
|
|
1540
1540
|
p status_code # => 2xx
|
1541
1541
|
p headers # => { ... }
|
1542
1542
|
p data # => <SelfServiceVerificationFlow>
|
1543
|
-
rescue
|
1543
|
+
rescue OryKratosClient::ApiError => e
|
1544
1544
|
puts "Error when calling V0alpha1Api->initialize_self_service_verification_flow_for_browsers_with_http_info: #{e}"
|
1545
1545
|
end
|
1546
1546
|
```
|
@@ -1577,13 +1577,13 @@ This endpoint initiates a verification flow for API clients such as mobile devic
|
|
1577
1577
|
require 'time'
|
1578
1578
|
require 'ory-kratos-client'
|
1579
1579
|
|
1580
|
-
api_instance =
|
1580
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1581
1581
|
|
1582
1582
|
begin
|
1583
1583
|
# Initialize Verification Flow for APIs, Services, Apps, ...
|
1584
1584
|
result = api_instance.initialize_self_service_verification_flow_without_browser
|
1585
1585
|
p result
|
1586
|
-
rescue
|
1586
|
+
rescue OryKratosClient::ApiError => e
|
1587
1587
|
puts "Error when calling V0alpha1Api->initialize_self_service_verification_flow_without_browser: #{e}"
|
1588
1588
|
end
|
1589
1589
|
```
|
@@ -1601,7 +1601,7 @@ begin
|
|
1601
1601
|
p status_code # => 2xx
|
1602
1602
|
p headers # => { ... }
|
1603
1603
|
p data # => <SelfServiceVerificationFlow>
|
1604
|
-
rescue
|
1604
|
+
rescue OryKratosClient::ApiError => e
|
1605
1605
|
puts "Error when calling V0alpha1Api->initialize_self_service_verification_flow_without_browser_with_http_info: #{e}"
|
1606
1606
|
end
|
1607
1607
|
```
|
@@ -1638,17 +1638,17 @@ Submit a Login Flow
|
|
1638
1638
|
require 'time'
|
1639
1639
|
require 'ory-kratos-client'
|
1640
1640
|
|
1641
|
-
api_instance =
|
1641
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1642
1642
|
flow = 'flow_example' # 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`).
|
1643
1643
|
opts = {
|
1644
|
-
submit_self_service_login_flow_body:
|
1644
|
+
submit_self_service_login_flow_body: OryKratosClient::SubmitSelfServiceLoginFlowWithPasswordMethodBody.new({method: 'password', password: 'password_example', password_identifier: 'password_identifier_example'}) # SubmitSelfServiceLoginFlowBody |
|
1645
1645
|
}
|
1646
1646
|
|
1647
1647
|
begin
|
1648
1648
|
# Submit a Login Flow
|
1649
1649
|
result = api_instance.submit_self_service_login_flow(flow, opts)
|
1650
1650
|
p result
|
1651
|
-
rescue
|
1651
|
+
rescue OryKratosClient::ApiError => e
|
1652
1652
|
puts "Error when calling V0alpha1Api->submit_self_service_login_flow: #{e}"
|
1653
1653
|
end
|
1654
1654
|
```
|
@@ -1666,7 +1666,7 @@ begin
|
|
1666
1666
|
p status_code # => 2xx
|
1667
1667
|
p headers # => { ... }
|
1668
1668
|
p data # => <SuccessfulSelfServiceLoginWithoutBrowser>
|
1669
|
-
rescue
|
1669
|
+
rescue OryKratosClient::ApiError => e
|
1670
1670
|
puts "Error when calling V0alpha1Api->submit_self_service_login_flow_with_http_info: #{e}"
|
1671
1671
|
end
|
1672
1672
|
```
|
@@ -1706,7 +1706,7 @@ This endpoint logs out an identity in a self-service manner. If the `Accept` HT
|
|
1706
1706
|
require 'time'
|
1707
1707
|
require 'ory-kratos-client'
|
1708
1708
|
|
1709
|
-
api_instance =
|
1709
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1710
1710
|
opts = {
|
1711
1711
|
token: 'token_example' # String | A Valid Logout Token If you do not have a logout token because you only have a session cookie, call `/self-service/logout/urls` to generate a URL for this endpoint.
|
1712
1712
|
}
|
@@ -1714,7 +1714,7 @@ opts = {
|
|
1714
1714
|
begin
|
1715
1715
|
# Complete Self-Service Logout
|
1716
1716
|
api_instance.submit_self_service_logout_flow(opts)
|
1717
|
-
rescue
|
1717
|
+
rescue OryKratosClient::ApiError => e
|
1718
1718
|
puts "Error when calling V0alpha1Api->submit_self_service_logout_flow: #{e}"
|
1719
1719
|
end
|
1720
1720
|
```
|
@@ -1732,7 +1732,7 @@ begin
|
|
1732
1732
|
p status_code # => 2xx
|
1733
1733
|
p headers # => { ... }
|
1734
1734
|
p data # => nil
|
1735
|
-
rescue
|
1735
|
+
rescue OryKratosClient::ApiError => e
|
1736
1736
|
puts "Error when calling V0alpha1Api->submit_self_service_logout_flow_with_http_info: #{e}"
|
1737
1737
|
end
|
1738
1738
|
```
|
@@ -1771,13 +1771,13 @@ Use this endpoint to log out an identity using an Ory Session Token. If the Ory
|
|
1771
1771
|
require 'time'
|
1772
1772
|
require 'ory-kratos-client'
|
1773
1773
|
|
1774
|
-
api_instance =
|
1775
|
-
submit_self_service_logout_flow_without_browser_body =
|
1774
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1775
|
+
submit_self_service_logout_flow_without_browser_body = OryKratosClient::SubmitSelfServiceLogoutFlowWithoutBrowserBody.new({session_token: 'session_token_example'}) # SubmitSelfServiceLogoutFlowWithoutBrowserBody |
|
1776
1776
|
|
1777
1777
|
begin
|
1778
1778
|
# Perform Logout for APIs, Services, Apps, ...
|
1779
1779
|
api_instance.submit_self_service_logout_flow_without_browser(submit_self_service_logout_flow_without_browser_body)
|
1780
|
-
rescue
|
1780
|
+
rescue OryKratosClient::ApiError => e
|
1781
1781
|
puts "Error when calling V0alpha1Api->submit_self_service_logout_flow_without_browser: #{e}"
|
1782
1782
|
end
|
1783
1783
|
```
|
@@ -1795,7 +1795,7 @@ begin
|
|
1795
1795
|
p status_code # => 2xx
|
1796
1796
|
p headers # => { ... }
|
1797
1797
|
p data # => nil
|
1798
|
-
rescue
|
1798
|
+
rescue OryKratosClient::ApiError => e
|
1799
1799
|
puts "Error when calling V0alpha1Api->submit_self_service_logout_flow_without_browser_with_http_info: #{e}"
|
1800
1800
|
end
|
1801
1801
|
```
|
@@ -1834,18 +1834,18 @@ Use this endpoint to complete a recovery flow. This endpoint behaves differently
|
|
1834
1834
|
require 'time'
|
1835
1835
|
require 'ory-kratos-client'
|
1836
1836
|
|
1837
|
-
api_instance =
|
1837
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1838
1838
|
flow = 'flow_example' # String | The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`).
|
1839
1839
|
opts = {
|
1840
1840
|
token: 'token_example', # String | Recovery Token The recovery token which completes the recovery request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not used by any direct API call.
|
1841
|
-
submit_self_service_recovery_flow_body:
|
1841
|
+
submit_self_service_recovery_flow_body: OryKratosClient::SubmitSelfServiceRecoveryFlowWithLinkMethodBody.new({email: 'email_example', method: 'link'}) # SubmitSelfServiceRecoveryFlowBody |
|
1842
1842
|
}
|
1843
1843
|
|
1844
1844
|
begin
|
1845
1845
|
# Complete Recovery Flow
|
1846
1846
|
result = api_instance.submit_self_service_recovery_flow(flow, opts)
|
1847
1847
|
p result
|
1848
|
-
rescue
|
1848
|
+
rescue OryKratosClient::ApiError => e
|
1849
1849
|
puts "Error when calling V0alpha1Api->submit_self_service_recovery_flow: #{e}"
|
1850
1850
|
end
|
1851
1851
|
```
|
@@ -1863,7 +1863,7 @@ begin
|
|
1863
1863
|
p status_code # => 2xx
|
1864
1864
|
p headers # => { ... }
|
1865
1865
|
p data # => <SelfServiceRecoveryFlow>
|
1866
|
-
rescue
|
1866
|
+
rescue OryKratosClient::ApiError => e
|
1867
1867
|
puts "Error when calling V0alpha1Api->submit_self_service_recovery_flow_with_http_info: #{e}"
|
1868
1868
|
end
|
1869
1869
|
```
|
@@ -1904,17 +1904,17 @@ Use this endpoint to complete a registration flow by sending an identity's trait
|
|
1904
1904
|
require 'time'
|
1905
1905
|
require 'ory-kratos-client'
|
1906
1906
|
|
1907
|
-
api_instance =
|
1907
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1908
1908
|
flow = 'flow_example' # 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`).
|
1909
1909
|
opts = {
|
1910
|
-
submit_self_service_registration_flow_body:
|
1910
|
+
submit_self_service_registration_flow_body: OryKratosClient::SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.new({method: 'password', password: 'password_example', traits: 3.56}) # SubmitSelfServiceRegistrationFlowBody |
|
1911
1911
|
}
|
1912
1912
|
|
1913
1913
|
begin
|
1914
1914
|
# Submit a Registration Flow
|
1915
1915
|
result = api_instance.submit_self_service_registration_flow(flow, opts)
|
1916
1916
|
p result
|
1917
|
-
rescue
|
1917
|
+
rescue OryKratosClient::ApiError => e
|
1918
1918
|
puts "Error when calling V0alpha1Api->submit_self_service_registration_flow: #{e}"
|
1919
1919
|
end
|
1920
1920
|
```
|
@@ -1932,7 +1932,7 @@ begin
|
|
1932
1932
|
p status_code # => 2xx
|
1933
1933
|
p headers # => { ... }
|
1934
1934
|
p data # => <SuccessfulSelfServiceRegistrationWithoutBrowser>
|
1935
|
-
rescue
|
1935
|
+
rescue OryKratosClient::ApiError => e
|
1936
1936
|
puts "Error when calling V0alpha1Api->submit_self_service_registration_flow_with_http_info: #{e}"
|
1937
1937
|
end
|
1938
1938
|
```
|
@@ -1972,18 +1972,18 @@ Use this endpoint to complete a settings flow by sending an identity's updated p
|
|
1972
1972
|
require 'time'
|
1973
1973
|
require 'ory-kratos-client'
|
1974
1974
|
|
1975
|
-
api_instance =
|
1975
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1976
1976
|
flow = 'flow_example' # String | The Settings Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/settings?flow=abcde`).
|
1977
1977
|
opts = {
|
1978
1978
|
x_session_token: 'x_session_token_example', # String | The Session Token of the Identity performing the settings flow.
|
1979
|
-
submit_self_service_settings_flow_body:
|
1979
|
+
submit_self_service_settings_flow_body: OryKratosClient::SubmitSelfServiceSettingsFlowWithPasswordMethodBody.new({method: 'password', password: 'password_example'}) # SubmitSelfServiceSettingsFlowBody |
|
1980
1980
|
}
|
1981
1981
|
|
1982
1982
|
begin
|
1983
1983
|
# Complete Settings Flow
|
1984
1984
|
result = api_instance.submit_self_service_settings_flow(flow, opts)
|
1985
1985
|
p result
|
1986
|
-
rescue
|
1986
|
+
rescue OryKratosClient::ApiError => e
|
1987
1987
|
puts "Error when calling V0alpha1Api->submit_self_service_settings_flow: #{e}"
|
1988
1988
|
end
|
1989
1989
|
```
|
@@ -2001,7 +2001,7 @@ begin
|
|
2001
2001
|
p status_code # => 2xx
|
2002
2002
|
p headers # => { ... }
|
2003
2003
|
p data # => <SuccessfulSelfServiceSettingsWithoutBrowser>
|
2004
|
-
rescue
|
2004
|
+
rescue OryKratosClient::ApiError => e
|
2005
2005
|
puts "Error when calling V0alpha1Api->submit_self_service_settings_flow_with_http_info: #{e}"
|
2006
2006
|
end
|
2007
2007
|
```
|
@@ -2042,18 +2042,18 @@ Use this endpoint to complete a verification flow. This endpoint behaves differe
|
|
2042
2042
|
require 'time'
|
2043
2043
|
require 'ory-kratos-client'
|
2044
2044
|
|
2045
|
-
api_instance =
|
2045
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
2046
2046
|
flow = 'flow_example' # String | The Verification Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/verification?flow=abcde`).
|
2047
2047
|
opts = {
|
2048
2048
|
token: 'token_example', # String | Verification Token The verification token which completes the verification request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not used by any direct API call.
|
2049
|
-
submit_self_service_verification_flow_body:
|
2049
|
+
submit_self_service_verification_flow_body: OryKratosClient::SubmitSelfServiceVerificationFlowWithLinkMethodBody.new({email: 'email_example', method: 'link'}) # SubmitSelfServiceVerificationFlowBody |
|
2050
2050
|
}
|
2051
2051
|
|
2052
2052
|
begin
|
2053
2053
|
# Complete Verification Flow
|
2054
2054
|
result = api_instance.submit_self_service_verification_flow(flow, opts)
|
2055
2055
|
p result
|
2056
|
-
rescue
|
2056
|
+
rescue OryKratosClient::ApiError => e
|
2057
2057
|
puts "Error when calling V0alpha1Api->submit_self_service_verification_flow: #{e}"
|
2058
2058
|
end
|
2059
2059
|
```
|
@@ -2071,7 +2071,7 @@ begin
|
|
2071
2071
|
p status_code # => 2xx
|
2072
2072
|
p headers # => { ... }
|
2073
2073
|
p data # => <SelfServiceVerificationFlow>
|
2074
|
-
rescue
|
2074
|
+
rescue OryKratosClient::ApiError => e
|
2075
2075
|
puts "Error when calling V0alpha1Api->submit_self_service_verification_flow_with_http_info: #{e}"
|
2076
2076
|
end
|
2077
2077
|
```
|
@@ -2112,7 +2112,7 @@ Uses the HTTP Headers in the GET request to determine (e.g. by using checking th
|
|
2112
2112
|
require 'time'
|
2113
2113
|
require 'ory-kratos-client'
|
2114
2114
|
|
2115
|
-
api_instance =
|
2115
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
2116
2116
|
opts = {
|
2117
2117
|
x_session_token: 'MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj', # String | Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`.
|
2118
2118
|
cookie: 'ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==' # String | Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored.
|
@@ -2122,7 +2122,7 @@ begin
|
|
2122
2122
|
# Check Who the Current HTTP Session Belongs To
|
2123
2123
|
result = api_instance.to_session(opts)
|
2124
2124
|
p result
|
2125
|
-
rescue
|
2125
|
+
rescue OryKratosClient::ApiError => e
|
2126
2126
|
puts "Error when calling V0alpha1Api->to_session: #{e}"
|
2127
2127
|
end
|
2128
2128
|
```
|
@@ -2140,7 +2140,7 @@ begin
|
|
2140
2140
|
p status_code # => 2xx
|
2141
2141
|
p headers # => { ... }
|
2142
2142
|
p data # => <Session>
|
2143
|
-
rescue
|
2143
|
+
rescue OryKratosClient::ApiError => e
|
2144
2144
|
puts "Error when calling V0alpha1Api->to_session_with_http_info: #{e}"
|
2145
2145
|
end
|
2146
2146
|
```
|