ory-kratos-client 0.7.0.alpha1 → 0.7.3.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 +133 -129
- data/docs/AdminCreateIdentityBody.md +2 -2
- data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +2 -2
- data/docs/AdminUpdateIdentityBody.md +3 -3
- 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 +3 -3
- 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 +3 -3
- data/docs/IdentityCredentials.md +2 -2
- data/docs/IdentityState.md +15 -0
- 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 +131 -121
- 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 +5 -5
- 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 +12 -9
- 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 +8 -10
- 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 +7 -9
- data/lib/ory-kratos-client/models/identity_credentials.rb +6 -6
- data/lib/ory-kratos-client/models/identity_state.rb +37 -0
- 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 +8 -8
- 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 +8 -8
- 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 +5 -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/models/identity_state_spec.rb +28 -0
- data/spec/spec_helper.rb +2 -2
- metadata +39 -35
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# OryKratosClient::UiNodeImageAttributes
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'ory-kratos-client'
|
13
13
|
|
14
|
-
instance =
|
14
|
+
instance = OryKratosClient::UiNodeImageAttributes.new(
|
15
15
|
src: null
|
16
16
|
)
|
17
17
|
```
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# OryKratosClient::UiNodeInputAttributes
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
```ruby
|
18
18
|
require 'ory-kratos-client'
|
19
19
|
|
20
|
-
instance =
|
20
|
+
instance = OryKratosClient::UiNodeInputAttributes.new(
|
21
21
|
disabled: null,
|
22
22
|
label: null,
|
23
23
|
name: null,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# OryKratosClient::UiNodeTextAttributes
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
```ruby
|
12
12
|
require 'ory-kratos-client'
|
13
13
|
|
14
|
-
instance =
|
14
|
+
instance = OryKratosClient::UiNodeTextAttributes.new(
|
15
15
|
text: null
|
16
16
|
)
|
17
17
|
```
|
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,23 @@ 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
|
-
|
56
|
-
# Configure
|
57
|
-
config.
|
55
|
+
OryKratosClient.configure do |config|
|
56
|
+
# Configure API key authorization: oryAccessToken
|
57
|
+
config.api_key['oryAccessToken'] = 'YOUR API KEY'
|
58
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
59
|
+
# config.api_key_prefix['oryAccessToken'] = 'Bearer'
|
58
60
|
end
|
59
61
|
|
60
|
-
api_instance =
|
62
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
61
63
|
opts = {
|
62
|
-
admin_create_identity_body:
|
64
|
+
admin_create_identity_body: OryKratosClient::AdminCreateIdentityBody.new({schema_id: 'schema_id_example', traits: 3.56}) # AdminCreateIdentityBody |
|
63
65
|
}
|
64
66
|
|
65
67
|
begin
|
66
68
|
# Create an Identity
|
67
69
|
result = api_instance.admin_create_identity(opts)
|
68
70
|
p result
|
69
|
-
rescue
|
71
|
+
rescue OryKratosClient::ApiError => e
|
70
72
|
puts "Error when calling V0alpha1Api->admin_create_identity: #{e}"
|
71
73
|
end
|
72
74
|
```
|
@@ -84,7 +86,7 @@ begin
|
|
84
86
|
p status_code # => 2xx
|
85
87
|
p headers # => { ... }
|
86
88
|
p data # => <Identity>
|
87
|
-
rescue
|
89
|
+
rescue OryKratosClient::ApiError => e
|
88
90
|
puts "Error when calling V0alpha1Api->admin_create_identity_with_http_info: #{e}"
|
89
91
|
end
|
90
92
|
```
|
@@ -123,16 +125,16 @@ This endpoint creates a recovery link which should be given to the user in order
|
|
123
125
|
require 'time'
|
124
126
|
require 'ory-kratos-client'
|
125
127
|
|
126
|
-
api_instance =
|
128
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
127
129
|
opts = {
|
128
|
-
admin_create_self_service_recovery_link_body:
|
130
|
+
admin_create_self_service_recovery_link_body: OryKratosClient::AdminCreateSelfServiceRecoveryLinkBody.new({identity_id: 'identity_id_example'}) # AdminCreateSelfServiceRecoveryLinkBody |
|
129
131
|
}
|
130
132
|
|
131
133
|
begin
|
132
134
|
# Create a Recovery Link
|
133
135
|
result = api_instance.admin_create_self_service_recovery_link(opts)
|
134
136
|
p result
|
135
|
-
rescue
|
137
|
+
rescue OryKratosClient::ApiError => e
|
136
138
|
puts "Error when calling V0alpha1Api->admin_create_self_service_recovery_link: #{e}"
|
137
139
|
end
|
138
140
|
```
|
@@ -150,7 +152,7 @@ begin
|
|
150
152
|
p status_code # => 2xx
|
151
153
|
p headers # => { ... }
|
152
154
|
p data # => <SelfServiceRecoveryLink>
|
153
|
-
rescue
|
155
|
+
rescue OryKratosClient::ApiError => e
|
154
156
|
puts "Error when calling V0alpha1Api->admin_create_self_service_recovery_link_with_http_info: #{e}"
|
155
157
|
end
|
156
158
|
```
|
@@ -189,18 +191,20 @@ Calling this endpoint irrecoverably and permanently deletes the identity given i
|
|
189
191
|
require 'time'
|
190
192
|
require 'ory-kratos-client'
|
191
193
|
# setup authorization
|
192
|
-
|
193
|
-
# Configure
|
194
|
-
config.
|
194
|
+
OryKratosClient.configure do |config|
|
195
|
+
# Configure API key authorization: oryAccessToken
|
196
|
+
config.api_key['oryAccessToken'] = 'YOUR API KEY'
|
197
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
198
|
+
# config.api_key_prefix['oryAccessToken'] = 'Bearer'
|
195
199
|
end
|
196
200
|
|
197
|
-
api_instance =
|
201
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
198
202
|
id = 'id_example' # String | ID is the identity's ID.
|
199
203
|
|
200
204
|
begin
|
201
205
|
# Delete an Identity
|
202
206
|
api_instance.admin_delete_identity(id)
|
203
|
-
rescue
|
207
|
+
rescue OryKratosClient::ApiError => e
|
204
208
|
puts "Error when calling V0alpha1Api->admin_delete_identity: #{e}"
|
205
209
|
end
|
206
210
|
```
|
@@ -218,7 +222,7 @@ begin
|
|
218
222
|
p status_code # => 2xx
|
219
223
|
p headers # => { ... }
|
220
224
|
p data # => nil
|
221
|
-
rescue
|
225
|
+
rescue OryKratosClient::ApiError => e
|
222
226
|
puts "Error when calling V0alpha1Api->admin_delete_identity_with_http_info: #{e}"
|
223
227
|
end
|
224
228
|
```
|
@@ -257,19 +261,21 @@ Learn how identities work in [Ory Kratos' User And Identity Model Documentation]
|
|
257
261
|
require 'time'
|
258
262
|
require 'ory-kratos-client'
|
259
263
|
# setup authorization
|
260
|
-
|
261
|
-
# Configure
|
262
|
-
config.
|
264
|
+
OryKratosClient.configure do |config|
|
265
|
+
# Configure API key authorization: oryAccessToken
|
266
|
+
config.api_key['oryAccessToken'] = 'YOUR API KEY'
|
267
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
268
|
+
# config.api_key_prefix['oryAccessToken'] = 'Bearer'
|
263
269
|
end
|
264
270
|
|
265
|
-
api_instance =
|
271
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
266
272
|
id = 'id_example' # String | ID must be set to the ID of identity you want to get
|
267
273
|
|
268
274
|
begin
|
269
275
|
# Get an Identity
|
270
276
|
result = api_instance.admin_get_identity(id)
|
271
277
|
p result
|
272
|
-
rescue
|
278
|
+
rescue OryKratosClient::ApiError => e
|
273
279
|
puts "Error when calling V0alpha1Api->admin_get_identity: #{e}"
|
274
280
|
end
|
275
281
|
```
|
@@ -287,7 +293,7 @@ begin
|
|
287
293
|
p status_code # => 2xx
|
288
294
|
p headers # => { ... }
|
289
295
|
p data # => <Identity>
|
290
|
-
rescue
|
296
|
+
rescue OryKratosClient::ApiError => e
|
291
297
|
puts "Error when calling V0alpha1Api->admin_get_identity_with_http_info: #{e}"
|
292
298
|
end
|
293
299
|
```
|
@@ -326,12 +332,14 @@ Lists all identities. Does not support search at the moment. Learn how identiti
|
|
326
332
|
require 'time'
|
327
333
|
require 'ory-kratos-client'
|
328
334
|
# setup authorization
|
329
|
-
|
330
|
-
# Configure
|
331
|
-
config.
|
335
|
+
OryKratosClient.configure do |config|
|
336
|
+
# Configure API key authorization: oryAccessToken
|
337
|
+
config.api_key['oryAccessToken'] = 'YOUR API KEY'
|
338
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
339
|
+
# config.api_key_prefix['oryAccessToken'] = 'Bearer'
|
332
340
|
end
|
333
341
|
|
334
|
-
api_instance =
|
342
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
335
343
|
opts = {
|
336
344
|
per_page: 789, # Integer | Items per Page This is the number of items per page.
|
337
345
|
page: 789 # Integer | Pagination Page
|
@@ -341,7 +349,7 @@ begin
|
|
341
349
|
# List Identities
|
342
350
|
result = api_instance.admin_list_identities(opts)
|
343
351
|
p result
|
344
|
-
rescue
|
352
|
+
rescue OryKratosClient::ApiError => e
|
345
353
|
puts "Error when calling V0alpha1Api->admin_list_identities: #{e}"
|
346
354
|
end
|
347
355
|
```
|
@@ -359,7 +367,7 @@ begin
|
|
359
367
|
p status_code # => 2xx
|
360
368
|
p headers # => { ... }
|
361
369
|
p data # => <Array<Identity>>
|
362
|
-
rescue
|
370
|
+
rescue OryKratosClient::ApiError => e
|
363
371
|
puts "Error when calling V0alpha1Api->admin_list_identities_with_http_info: #{e}"
|
364
372
|
end
|
365
373
|
```
|
@@ -399,22 +407,24 @@ This endpoint updates an identity. It is NOT possible to set an identity's crede
|
|
399
407
|
require 'time'
|
400
408
|
require 'ory-kratos-client'
|
401
409
|
# setup authorization
|
402
|
-
|
403
|
-
# Configure
|
404
|
-
config.
|
410
|
+
OryKratosClient.configure do |config|
|
411
|
+
# Configure API key authorization: oryAccessToken
|
412
|
+
config.api_key['oryAccessToken'] = 'YOUR API KEY'
|
413
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
414
|
+
# config.api_key_prefix['oryAccessToken'] = 'Bearer'
|
405
415
|
end
|
406
416
|
|
407
|
-
api_instance =
|
417
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
408
418
|
id = 'id_example' # String | ID must be set to the ID of identity you want to update
|
409
419
|
opts = {
|
410
|
-
admin_update_identity_body:
|
420
|
+
admin_update_identity_body: OryKratosClient::AdminUpdateIdentityBody.new({state: OryKratosClient::IdentityState::ACTIVE, traits: 3.56}) # AdminUpdateIdentityBody |
|
411
421
|
}
|
412
422
|
|
413
423
|
begin
|
414
424
|
# Update an Identity
|
415
425
|
result = api_instance.admin_update_identity(id, opts)
|
416
426
|
p result
|
417
|
-
rescue
|
427
|
+
rescue OryKratosClient::ApiError => e
|
418
428
|
puts "Error when calling V0alpha1Api->admin_update_identity: #{e}"
|
419
429
|
end
|
420
430
|
```
|
@@ -432,7 +442,7 @@ begin
|
|
432
442
|
p status_code # => 2xx
|
433
443
|
p headers # => { ... }
|
434
444
|
p data # => <Identity>
|
435
|
-
rescue
|
445
|
+
rescue OryKratosClient::ApiError => e
|
436
446
|
puts "Error when calling V0alpha1Api->admin_update_identity_with_http_info: #{e}"
|
437
447
|
end
|
438
448
|
```
|
@@ -472,7 +482,7 @@ This endpoint initializes a browser-based user logout flow and a URL which can b
|
|
472
482
|
require 'time'
|
473
483
|
require 'ory-kratos-client'
|
474
484
|
|
475
|
-
api_instance =
|
485
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
476
486
|
opts = {
|
477
487
|
cookie: 'cookie_example' # String | HTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request.
|
478
488
|
}
|
@@ -481,7 +491,7 @@ begin
|
|
481
491
|
# Create a Logout URL for Browsers
|
482
492
|
result = api_instance.create_self_service_logout_flow_url_for_browsers(opts)
|
483
493
|
p result
|
484
|
-
rescue
|
494
|
+
rescue OryKratosClient::ApiError => e
|
485
495
|
puts "Error when calling V0alpha1Api->create_self_service_logout_flow_url_for_browsers: #{e}"
|
486
496
|
end
|
487
497
|
```
|
@@ -499,7 +509,7 @@ begin
|
|
499
509
|
p status_code # => 2xx
|
500
510
|
p headers # => { ... }
|
501
511
|
p data # => <SelfServiceLogoutUrl>
|
502
|
-
rescue
|
512
|
+
rescue OryKratosClient::ApiError => e
|
503
513
|
puts "Error when calling V0alpha1Api->create_self_service_logout_flow_url_for_browsers_with_http_info: #{e}"
|
504
514
|
end
|
505
515
|
```
|
@@ -538,14 +548,14 @@ Get a JSON Schema
|
|
538
548
|
require 'time'
|
539
549
|
require 'ory-kratos-client'
|
540
550
|
|
541
|
-
api_instance =
|
551
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
542
552
|
id = 'id_example' # String | ID must be set to the ID of schema you want to get
|
543
553
|
|
544
554
|
begin
|
545
555
|
|
546
556
|
result = api_instance.get_json_schema(id)
|
547
557
|
p result
|
548
|
-
rescue
|
558
|
+
rescue OryKratosClient::ApiError => e
|
549
559
|
puts "Error when calling V0alpha1Api->get_json_schema: #{e}"
|
550
560
|
end
|
551
561
|
```
|
@@ -563,7 +573,7 @@ begin
|
|
563
573
|
p status_code # => 2xx
|
564
574
|
p headers # => { ... }
|
565
575
|
p data # => Object
|
566
|
-
rescue
|
576
|
+
rescue OryKratosClient::ApiError => e
|
567
577
|
puts "Error when calling V0alpha1Api->get_json_schema_with_http_info: #{e}"
|
568
578
|
end
|
569
579
|
```
|
@@ -602,14 +612,14 @@ This endpoint returns the error associated with a user-facing self service error
|
|
602
612
|
require 'time'
|
603
613
|
require 'ory-kratos-client'
|
604
614
|
|
605
|
-
api_instance =
|
615
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
606
616
|
id = 'id_example' # String | Error is the error's ID
|
607
617
|
|
608
618
|
begin
|
609
619
|
# Get Self-Service Errors
|
610
620
|
result = api_instance.get_self_service_error(id)
|
611
621
|
p result
|
612
|
-
rescue
|
622
|
+
rescue OryKratosClient::ApiError => e
|
613
623
|
puts "Error when calling V0alpha1Api->get_self_service_error: #{e}"
|
614
624
|
end
|
615
625
|
```
|
@@ -627,7 +637,7 @@ begin
|
|
627
637
|
p status_code # => 2xx
|
628
638
|
p headers # => { ... }
|
629
639
|
p data # => <SelfServiceError>
|
630
|
-
rescue
|
640
|
+
rescue OryKratosClient::ApiError => e
|
631
641
|
puts "Error when calling V0alpha1Api->get_self_service_error_with_http_info: #{e}"
|
632
642
|
end
|
633
643
|
```
|
@@ -666,7 +676,7 @@ This endpoint returns a login flow's context with, for example, error details an
|
|
666
676
|
require 'time'
|
667
677
|
require 'ory-kratos-client'
|
668
678
|
|
669
|
-
api_instance =
|
679
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
670
680
|
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
681
|
opts = {
|
672
682
|
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 +686,7 @@ begin
|
|
676
686
|
# Get Login Flow
|
677
687
|
result = api_instance.get_self_service_login_flow(id, opts)
|
678
688
|
p result
|
679
|
-
rescue
|
689
|
+
rescue OryKratosClient::ApiError => e
|
680
690
|
puts "Error when calling V0alpha1Api->get_self_service_login_flow: #{e}"
|
681
691
|
end
|
682
692
|
```
|
@@ -694,7 +704,7 @@ begin
|
|
694
704
|
p status_code # => 2xx
|
695
705
|
p headers # => { ... }
|
696
706
|
p data # => <SelfServiceLoginFlow>
|
697
|
-
rescue
|
707
|
+
rescue OryKratosClient::ApiError => e
|
698
708
|
puts "Error when calling V0alpha1Api->get_self_service_login_flow_with_http_info: #{e}"
|
699
709
|
end
|
700
710
|
```
|
@@ -734,7 +744,7 @@ This endpoint returns a recovery flow's context with, for example, error details
|
|
734
744
|
require 'time'
|
735
745
|
require 'ory-kratos-client'
|
736
746
|
|
737
|
-
api_instance =
|
747
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
738
748
|
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
749
|
opts = {
|
740
750
|
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 +754,7 @@ begin
|
|
744
754
|
# Get Recovery Flow
|
745
755
|
result = api_instance.get_self_service_recovery_flow(id, opts)
|
746
756
|
p result
|
747
|
-
rescue
|
757
|
+
rescue OryKratosClient::ApiError => e
|
748
758
|
puts "Error when calling V0alpha1Api->get_self_service_recovery_flow: #{e}"
|
749
759
|
end
|
750
760
|
```
|
@@ -762,7 +772,7 @@ begin
|
|
762
772
|
p status_code # => 2xx
|
763
773
|
p headers # => { ... }
|
764
774
|
p data # => <SelfServiceRecoveryFlow>
|
765
|
-
rescue
|
775
|
+
rescue OryKratosClient::ApiError => e
|
766
776
|
puts "Error when calling V0alpha1Api->get_self_service_recovery_flow_with_http_info: #{e}"
|
767
777
|
end
|
768
778
|
```
|
@@ -802,7 +812,7 @@ This endpoint returns a registration flow's context with, for example, error det
|
|
802
812
|
require 'time'
|
803
813
|
require 'ory-kratos-client'
|
804
814
|
|
805
|
-
api_instance =
|
815
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
806
816
|
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
817
|
opts = {
|
808
818
|
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 +822,7 @@ begin
|
|
812
822
|
# Get Registration Flow
|
813
823
|
result = api_instance.get_self_service_registration_flow(id, opts)
|
814
824
|
p result
|
815
|
-
rescue
|
825
|
+
rescue OryKratosClient::ApiError => e
|
816
826
|
puts "Error when calling V0alpha1Api->get_self_service_registration_flow: #{e}"
|
817
827
|
end
|
818
828
|
```
|
@@ -830,7 +840,7 @@ begin
|
|
830
840
|
p status_code # => 2xx
|
831
841
|
p headers # => { ... }
|
832
842
|
p data # => <SelfServiceRegistrationFlow>
|
833
|
-
rescue
|
843
|
+
rescue OryKratosClient::ApiError => e
|
834
844
|
puts "Error when calling V0alpha1Api->get_self_service_registration_flow_with_http_info: #{e}"
|
835
845
|
end
|
836
846
|
```
|
@@ -870,7 +880,7 @@ When accessing this endpoint through Ory Kratos' Public API you must ensure that
|
|
870
880
|
require 'time'
|
871
881
|
require 'ory-kratos-client'
|
872
882
|
|
873
|
-
api_instance =
|
883
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
874
884
|
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
885
|
opts = {
|
876
886
|
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 +891,7 @@ begin
|
|
881
891
|
# Get Settings Flow
|
882
892
|
result = api_instance.get_self_service_settings_flow(id, opts)
|
883
893
|
p result
|
884
|
-
rescue
|
894
|
+
rescue OryKratosClient::ApiError => e
|
885
895
|
puts "Error when calling V0alpha1Api->get_self_service_settings_flow: #{e}"
|
886
896
|
end
|
887
897
|
```
|
@@ -899,7 +909,7 @@ begin
|
|
899
909
|
p status_code # => 2xx
|
900
910
|
p headers # => { ... }
|
901
911
|
p data # => <SelfServiceSettingsFlow>
|
902
|
-
rescue
|
912
|
+
rescue OryKratosClient::ApiError => e
|
903
913
|
puts "Error when calling V0alpha1Api->get_self_service_settings_flow_with_http_info: #{e}"
|
904
914
|
end
|
905
915
|
```
|
@@ -940,7 +950,7 @@ This endpoint returns a verification flow's context with, for example, error det
|
|
940
950
|
require 'time'
|
941
951
|
require 'ory-kratos-client'
|
942
952
|
|
943
|
-
api_instance =
|
953
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
944
954
|
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
955
|
opts = {
|
946
956
|
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 +960,7 @@ begin
|
|
950
960
|
# Get Verification Flow
|
951
961
|
result = api_instance.get_self_service_verification_flow(id, opts)
|
952
962
|
p result
|
953
|
-
rescue
|
963
|
+
rescue OryKratosClient::ApiError => e
|
954
964
|
puts "Error when calling V0alpha1Api->get_self_service_verification_flow: #{e}"
|
955
965
|
end
|
956
966
|
```
|
@@ -968,7 +978,7 @@ begin
|
|
968
978
|
p status_code # => 2xx
|
969
979
|
p headers # => { ... }
|
970
980
|
p data # => <SelfServiceVerificationFlow>
|
971
|
-
rescue
|
981
|
+
rescue OryKratosClient::ApiError => e
|
972
982
|
puts "Error when calling V0alpha1Api->get_self_service_verification_flow_with_http_info: #{e}"
|
973
983
|
end
|
974
984
|
```
|
@@ -1008,7 +1018,7 @@ This endpoint initializes a browser-based user login flow. This endpoint will se
|
|
1008
1018
|
require 'time'
|
1009
1019
|
require 'ory-kratos-client'
|
1010
1020
|
|
1011
|
-
api_instance =
|
1021
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1012
1022
|
opts = {
|
1013
1023
|
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
1024
|
}
|
@@ -1017,7 +1027,7 @@ begin
|
|
1017
1027
|
# Initialize Login Flow for Browsers
|
1018
1028
|
result = api_instance.initialize_self_service_login_flow_for_browsers(opts)
|
1019
1029
|
p result
|
1020
|
-
rescue
|
1030
|
+
rescue OryKratosClient::ApiError => e
|
1021
1031
|
puts "Error when calling V0alpha1Api->initialize_self_service_login_flow_for_browsers: #{e}"
|
1022
1032
|
end
|
1023
1033
|
```
|
@@ -1035,7 +1045,7 @@ begin
|
|
1035
1045
|
p status_code # => 2xx
|
1036
1046
|
p headers # => { ... }
|
1037
1047
|
p data # => <SelfServiceLoginFlow>
|
1038
|
-
rescue
|
1048
|
+
rescue OryKratosClient::ApiError => e
|
1039
1049
|
puts "Error when calling V0alpha1Api->initialize_self_service_login_flow_for_browsers_with_http_info: #{e}"
|
1040
1050
|
end
|
1041
1051
|
```
|
@@ -1074,7 +1084,7 @@ This endpoint initiates a login flow for API clients that do not use a browser,
|
|
1074
1084
|
require 'time'
|
1075
1085
|
require 'ory-kratos-client'
|
1076
1086
|
|
1077
|
-
api_instance =
|
1087
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1078
1088
|
opts = {
|
1079
1089
|
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
1090
|
}
|
@@ -1083,7 +1093,7 @@ begin
|
|
1083
1093
|
# Initialize Login Flow for APIs, Services, Apps, ...
|
1084
1094
|
result = api_instance.initialize_self_service_login_flow_without_browser(opts)
|
1085
1095
|
p result
|
1086
|
-
rescue
|
1096
|
+
rescue OryKratosClient::ApiError => e
|
1087
1097
|
puts "Error when calling V0alpha1Api->initialize_self_service_login_flow_without_browser: #{e}"
|
1088
1098
|
end
|
1089
1099
|
```
|
@@ -1101,7 +1111,7 @@ begin
|
|
1101
1111
|
p status_code # => 2xx
|
1102
1112
|
p headers # => { ... }
|
1103
1113
|
p data # => <SelfServiceLoginFlow>
|
1104
|
-
rescue
|
1114
|
+
rescue OryKratosClient::ApiError => e
|
1105
1115
|
puts "Error when calling V0alpha1Api->initialize_self_service_login_flow_without_browser_with_http_info: #{e}"
|
1106
1116
|
end
|
1107
1117
|
```
|
@@ -1140,13 +1150,13 @@ This endpoint initializes a browser-based account recovery flow. Once initialize
|
|
1140
1150
|
require 'time'
|
1141
1151
|
require 'ory-kratos-client'
|
1142
1152
|
|
1143
|
-
api_instance =
|
1153
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1144
1154
|
|
1145
1155
|
begin
|
1146
1156
|
# Initialize Recovery Flow for Browsers
|
1147
1157
|
result = api_instance.initialize_self_service_recovery_flow_for_browsers
|
1148
1158
|
p result
|
1149
|
-
rescue
|
1159
|
+
rescue OryKratosClient::ApiError => e
|
1150
1160
|
puts "Error when calling V0alpha1Api->initialize_self_service_recovery_flow_for_browsers: #{e}"
|
1151
1161
|
end
|
1152
1162
|
```
|
@@ -1164,7 +1174,7 @@ begin
|
|
1164
1174
|
p status_code # => 2xx
|
1165
1175
|
p headers # => { ... }
|
1166
1176
|
p data # => <SelfServiceRecoveryFlow>
|
1167
|
-
rescue
|
1177
|
+
rescue OryKratosClient::ApiError => e
|
1168
1178
|
puts "Error when calling V0alpha1Api->initialize_self_service_recovery_flow_for_browsers_with_http_info: #{e}"
|
1169
1179
|
end
|
1170
1180
|
```
|
@@ -1201,13 +1211,13 @@ This endpoint initiates a recovery flow for API clients such as mobile devices,
|
|
1201
1211
|
require 'time'
|
1202
1212
|
require 'ory-kratos-client'
|
1203
1213
|
|
1204
|
-
api_instance =
|
1214
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1205
1215
|
|
1206
1216
|
begin
|
1207
1217
|
# Initialize Recovery Flow for APIs, Services, Apps, ...
|
1208
1218
|
result = api_instance.initialize_self_service_recovery_flow_without_browser
|
1209
1219
|
p result
|
1210
|
-
rescue
|
1220
|
+
rescue OryKratosClient::ApiError => e
|
1211
1221
|
puts "Error when calling V0alpha1Api->initialize_self_service_recovery_flow_without_browser: #{e}"
|
1212
1222
|
end
|
1213
1223
|
```
|
@@ -1225,7 +1235,7 @@ begin
|
|
1225
1235
|
p status_code # => 2xx
|
1226
1236
|
p headers # => { ... }
|
1227
1237
|
p data # => <SelfServiceRecoveryFlow>
|
1228
|
-
rescue
|
1238
|
+
rescue OryKratosClient::ApiError => e
|
1229
1239
|
puts "Error when calling V0alpha1Api->initialize_self_service_recovery_flow_without_browser_with_http_info: #{e}"
|
1230
1240
|
end
|
1231
1241
|
```
|
@@ -1262,13 +1272,13 @@ This endpoint initializes a browser-based user registration flow. This endpoint
|
|
1262
1272
|
require 'time'
|
1263
1273
|
require 'ory-kratos-client'
|
1264
1274
|
|
1265
|
-
api_instance =
|
1275
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1266
1276
|
|
1267
1277
|
begin
|
1268
1278
|
# Initialize Registration Flow for Browsers
|
1269
1279
|
result = api_instance.initialize_self_service_registration_flow_for_browsers
|
1270
1280
|
p result
|
1271
|
-
rescue
|
1281
|
+
rescue OryKratosClient::ApiError => e
|
1272
1282
|
puts "Error when calling V0alpha1Api->initialize_self_service_registration_flow_for_browsers: #{e}"
|
1273
1283
|
end
|
1274
1284
|
```
|
@@ -1286,7 +1296,7 @@ begin
|
|
1286
1296
|
p status_code # => 2xx
|
1287
1297
|
p headers # => { ... }
|
1288
1298
|
p data # => <SelfServiceRegistrationFlow>
|
1289
|
-
rescue
|
1299
|
+
rescue OryKratosClient::ApiError => e
|
1290
1300
|
puts "Error when calling V0alpha1Api->initialize_self_service_registration_flow_for_browsers_with_http_info: #{e}"
|
1291
1301
|
end
|
1292
1302
|
```
|
@@ -1323,13 +1333,13 @@ This endpoint initiates a registration flow for API clients such as mobile devic
|
|
1323
1333
|
require 'time'
|
1324
1334
|
require 'ory-kratos-client'
|
1325
1335
|
|
1326
|
-
api_instance =
|
1336
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1327
1337
|
|
1328
1338
|
begin
|
1329
1339
|
# Initialize Registration Flow for APIs, Services, Apps, ...
|
1330
1340
|
result = api_instance.initialize_self_service_registration_flow_without_browser
|
1331
1341
|
p result
|
1332
|
-
rescue
|
1342
|
+
rescue OryKratosClient::ApiError => e
|
1333
1343
|
puts "Error when calling V0alpha1Api->initialize_self_service_registration_flow_without_browser: #{e}"
|
1334
1344
|
end
|
1335
1345
|
```
|
@@ -1347,7 +1357,7 @@ begin
|
|
1347
1357
|
p status_code # => 2xx
|
1348
1358
|
p headers # => { ... }
|
1349
1359
|
p data # => <SelfServiceRegistrationFlow>
|
1350
|
-
rescue
|
1360
|
+
rescue OryKratosClient::ApiError => e
|
1351
1361
|
puts "Error when calling V0alpha1Api->initialize_self_service_registration_flow_without_browser_with_http_info: #{e}"
|
1352
1362
|
end
|
1353
1363
|
```
|
@@ -1384,7 +1394,7 @@ This endpoint initializes a browser-based user settings flow. Once initialized,
|
|
1384
1394
|
require 'time'
|
1385
1395
|
require 'ory-kratos-client'
|
1386
1396
|
|
1387
|
-
api_instance =
|
1397
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1388
1398
|
opts = {
|
1389
1399
|
cookie: 'cookie_example' # String | The Session Cookie of the Identity performing the settings flow.
|
1390
1400
|
}
|
@@ -1393,7 +1403,7 @@ begin
|
|
1393
1403
|
# Initialize Settings Flow for Browsers
|
1394
1404
|
result = api_instance.initialize_self_service_settings_flow_for_browsers(opts)
|
1395
1405
|
p result
|
1396
|
-
rescue
|
1406
|
+
rescue OryKratosClient::ApiError => e
|
1397
1407
|
puts "Error when calling V0alpha1Api->initialize_self_service_settings_flow_for_browsers: #{e}"
|
1398
1408
|
end
|
1399
1409
|
```
|
@@ -1411,7 +1421,7 @@ begin
|
|
1411
1421
|
p status_code # => 2xx
|
1412
1422
|
p headers # => { ... }
|
1413
1423
|
p data # => <SelfServiceSettingsFlow>
|
1414
|
-
rescue
|
1424
|
+
rescue OryKratosClient::ApiError => e
|
1415
1425
|
puts "Error when calling V0alpha1Api->initialize_self_service_settings_flow_for_browsers_with_http_info: #{e}"
|
1416
1426
|
end
|
1417
1427
|
```
|
@@ -1450,7 +1460,7 @@ This endpoint initiates a settings flow for API clients such as mobile devices,
|
|
1450
1460
|
require 'time'
|
1451
1461
|
require 'ory-kratos-client'
|
1452
1462
|
|
1453
|
-
api_instance =
|
1463
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1454
1464
|
opts = {
|
1455
1465
|
x_session_token: 'x_session_token_example' # String | The Session Token of the Identity performing the settings flow.
|
1456
1466
|
}
|
@@ -1459,7 +1469,7 @@ begin
|
|
1459
1469
|
# Initialize Settings Flow for APIs, Services, Apps, ...
|
1460
1470
|
result = api_instance.initialize_self_service_settings_flow_without_browser(opts)
|
1461
1471
|
p result
|
1462
|
-
rescue
|
1472
|
+
rescue OryKratosClient::ApiError => e
|
1463
1473
|
puts "Error when calling V0alpha1Api->initialize_self_service_settings_flow_without_browser: #{e}"
|
1464
1474
|
end
|
1465
1475
|
```
|
@@ -1477,7 +1487,7 @@ begin
|
|
1477
1487
|
p status_code # => 2xx
|
1478
1488
|
p headers # => { ... }
|
1479
1489
|
p data # => <SelfServiceSettingsFlow>
|
1480
|
-
rescue
|
1490
|
+
rescue OryKratosClient::ApiError => e
|
1481
1491
|
puts "Error when calling V0alpha1Api->initialize_self_service_settings_flow_without_browser_with_http_info: #{e}"
|
1482
1492
|
end
|
1483
1493
|
```
|
@@ -1516,13 +1526,13 @@ This endpoint initializes a browser-based account verification flow. Once initia
|
|
1516
1526
|
require 'time'
|
1517
1527
|
require 'ory-kratos-client'
|
1518
1528
|
|
1519
|
-
api_instance =
|
1529
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1520
1530
|
|
1521
1531
|
begin
|
1522
1532
|
# Initialize Verification Flow for Browser Clients
|
1523
1533
|
result = api_instance.initialize_self_service_verification_flow_for_browsers
|
1524
1534
|
p result
|
1525
|
-
rescue
|
1535
|
+
rescue OryKratosClient::ApiError => e
|
1526
1536
|
puts "Error when calling V0alpha1Api->initialize_self_service_verification_flow_for_browsers: #{e}"
|
1527
1537
|
end
|
1528
1538
|
```
|
@@ -1540,7 +1550,7 @@ begin
|
|
1540
1550
|
p status_code # => 2xx
|
1541
1551
|
p headers # => { ... }
|
1542
1552
|
p data # => <SelfServiceVerificationFlow>
|
1543
|
-
rescue
|
1553
|
+
rescue OryKratosClient::ApiError => e
|
1544
1554
|
puts "Error when calling V0alpha1Api->initialize_self_service_verification_flow_for_browsers_with_http_info: #{e}"
|
1545
1555
|
end
|
1546
1556
|
```
|
@@ -1577,13 +1587,13 @@ This endpoint initiates a verification flow for API clients such as mobile devic
|
|
1577
1587
|
require 'time'
|
1578
1588
|
require 'ory-kratos-client'
|
1579
1589
|
|
1580
|
-
api_instance =
|
1590
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1581
1591
|
|
1582
1592
|
begin
|
1583
1593
|
# Initialize Verification Flow for APIs, Services, Apps, ...
|
1584
1594
|
result = api_instance.initialize_self_service_verification_flow_without_browser
|
1585
1595
|
p result
|
1586
|
-
rescue
|
1596
|
+
rescue OryKratosClient::ApiError => e
|
1587
1597
|
puts "Error when calling V0alpha1Api->initialize_self_service_verification_flow_without_browser: #{e}"
|
1588
1598
|
end
|
1589
1599
|
```
|
@@ -1601,7 +1611,7 @@ begin
|
|
1601
1611
|
p status_code # => 2xx
|
1602
1612
|
p headers # => { ... }
|
1603
1613
|
p data # => <SelfServiceVerificationFlow>
|
1604
|
-
rescue
|
1614
|
+
rescue OryKratosClient::ApiError => e
|
1605
1615
|
puts "Error when calling V0alpha1Api->initialize_self_service_verification_flow_without_browser_with_http_info: #{e}"
|
1606
1616
|
end
|
1607
1617
|
```
|
@@ -1638,17 +1648,17 @@ Submit a Login Flow
|
|
1638
1648
|
require 'time'
|
1639
1649
|
require 'ory-kratos-client'
|
1640
1650
|
|
1641
|
-
api_instance =
|
1651
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1642
1652
|
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
1653
|
opts = {
|
1644
|
-
submit_self_service_login_flow_body:
|
1654
|
+
submit_self_service_login_flow_body: OryKratosClient::SubmitSelfServiceLoginFlowWithPasswordMethodBody.new({method: 'password', password: 'password_example', password_identifier: 'password_identifier_example'}) # SubmitSelfServiceLoginFlowBody |
|
1645
1655
|
}
|
1646
1656
|
|
1647
1657
|
begin
|
1648
1658
|
# Submit a Login Flow
|
1649
1659
|
result = api_instance.submit_self_service_login_flow(flow, opts)
|
1650
1660
|
p result
|
1651
|
-
rescue
|
1661
|
+
rescue OryKratosClient::ApiError => e
|
1652
1662
|
puts "Error when calling V0alpha1Api->submit_self_service_login_flow: #{e}"
|
1653
1663
|
end
|
1654
1664
|
```
|
@@ -1666,7 +1676,7 @@ begin
|
|
1666
1676
|
p status_code # => 2xx
|
1667
1677
|
p headers # => { ... }
|
1668
1678
|
p data # => <SuccessfulSelfServiceLoginWithoutBrowser>
|
1669
|
-
rescue
|
1679
|
+
rescue OryKratosClient::ApiError => e
|
1670
1680
|
puts "Error when calling V0alpha1Api->submit_self_service_login_flow_with_http_info: #{e}"
|
1671
1681
|
end
|
1672
1682
|
```
|
@@ -1706,7 +1716,7 @@ This endpoint logs out an identity in a self-service manner. If the `Accept` HT
|
|
1706
1716
|
require 'time'
|
1707
1717
|
require 'ory-kratos-client'
|
1708
1718
|
|
1709
|
-
api_instance =
|
1719
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1710
1720
|
opts = {
|
1711
1721
|
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
1722
|
}
|
@@ -1714,7 +1724,7 @@ opts = {
|
|
1714
1724
|
begin
|
1715
1725
|
# Complete Self-Service Logout
|
1716
1726
|
api_instance.submit_self_service_logout_flow(opts)
|
1717
|
-
rescue
|
1727
|
+
rescue OryKratosClient::ApiError => e
|
1718
1728
|
puts "Error when calling V0alpha1Api->submit_self_service_logout_flow: #{e}"
|
1719
1729
|
end
|
1720
1730
|
```
|
@@ -1732,7 +1742,7 @@ begin
|
|
1732
1742
|
p status_code # => 2xx
|
1733
1743
|
p headers # => { ... }
|
1734
1744
|
p data # => nil
|
1735
|
-
rescue
|
1745
|
+
rescue OryKratosClient::ApiError => e
|
1736
1746
|
puts "Error when calling V0alpha1Api->submit_self_service_logout_flow_with_http_info: #{e}"
|
1737
1747
|
end
|
1738
1748
|
```
|
@@ -1771,13 +1781,13 @@ Use this endpoint to log out an identity using an Ory Session Token. If the Ory
|
|
1771
1781
|
require 'time'
|
1772
1782
|
require 'ory-kratos-client'
|
1773
1783
|
|
1774
|
-
api_instance =
|
1775
|
-
submit_self_service_logout_flow_without_browser_body =
|
1784
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1785
|
+
submit_self_service_logout_flow_without_browser_body = OryKratosClient::SubmitSelfServiceLogoutFlowWithoutBrowserBody.new({session_token: 'session_token_example'}) # SubmitSelfServiceLogoutFlowWithoutBrowserBody |
|
1776
1786
|
|
1777
1787
|
begin
|
1778
1788
|
# Perform Logout for APIs, Services, Apps, ...
|
1779
1789
|
api_instance.submit_self_service_logout_flow_without_browser(submit_self_service_logout_flow_without_browser_body)
|
1780
|
-
rescue
|
1790
|
+
rescue OryKratosClient::ApiError => e
|
1781
1791
|
puts "Error when calling V0alpha1Api->submit_self_service_logout_flow_without_browser: #{e}"
|
1782
1792
|
end
|
1783
1793
|
```
|
@@ -1795,7 +1805,7 @@ begin
|
|
1795
1805
|
p status_code # => 2xx
|
1796
1806
|
p headers # => { ... }
|
1797
1807
|
p data # => nil
|
1798
|
-
rescue
|
1808
|
+
rescue OryKratosClient::ApiError => e
|
1799
1809
|
puts "Error when calling V0alpha1Api->submit_self_service_logout_flow_without_browser_with_http_info: #{e}"
|
1800
1810
|
end
|
1801
1811
|
```
|
@@ -1834,18 +1844,18 @@ Use this endpoint to complete a recovery flow. This endpoint behaves differently
|
|
1834
1844
|
require 'time'
|
1835
1845
|
require 'ory-kratos-client'
|
1836
1846
|
|
1837
|
-
api_instance =
|
1847
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1838
1848
|
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
1849
|
opts = {
|
1840
1850
|
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:
|
1851
|
+
submit_self_service_recovery_flow_body: OryKratosClient::SubmitSelfServiceRecoveryFlowWithLinkMethodBody.new({email: 'email_example', method: 'link'}) # SubmitSelfServiceRecoveryFlowBody |
|
1842
1852
|
}
|
1843
1853
|
|
1844
1854
|
begin
|
1845
1855
|
# Complete Recovery Flow
|
1846
1856
|
result = api_instance.submit_self_service_recovery_flow(flow, opts)
|
1847
1857
|
p result
|
1848
|
-
rescue
|
1858
|
+
rescue OryKratosClient::ApiError => e
|
1849
1859
|
puts "Error when calling V0alpha1Api->submit_self_service_recovery_flow: #{e}"
|
1850
1860
|
end
|
1851
1861
|
```
|
@@ -1863,7 +1873,7 @@ begin
|
|
1863
1873
|
p status_code # => 2xx
|
1864
1874
|
p headers # => { ... }
|
1865
1875
|
p data # => <SelfServiceRecoveryFlow>
|
1866
|
-
rescue
|
1876
|
+
rescue OryKratosClient::ApiError => e
|
1867
1877
|
puts "Error when calling V0alpha1Api->submit_self_service_recovery_flow_with_http_info: #{e}"
|
1868
1878
|
end
|
1869
1879
|
```
|
@@ -1904,17 +1914,17 @@ Use this endpoint to complete a registration flow by sending an identity's trait
|
|
1904
1914
|
require 'time'
|
1905
1915
|
require 'ory-kratos-client'
|
1906
1916
|
|
1907
|
-
api_instance =
|
1917
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1908
1918
|
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
1919
|
opts = {
|
1910
|
-
submit_self_service_registration_flow_body:
|
1920
|
+
submit_self_service_registration_flow_body: OryKratosClient::SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.new({method: 'password', password: 'password_example', traits: 3.56}) # SubmitSelfServiceRegistrationFlowBody |
|
1911
1921
|
}
|
1912
1922
|
|
1913
1923
|
begin
|
1914
1924
|
# Submit a Registration Flow
|
1915
1925
|
result = api_instance.submit_self_service_registration_flow(flow, opts)
|
1916
1926
|
p result
|
1917
|
-
rescue
|
1927
|
+
rescue OryKratosClient::ApiError => e
|
1918
1928
|
puts "Error when calling V0alpha1Api->submit_self_service_registration_flow: #{e}"
|
1919
1929
|
end
|
1920
1930
|
```
|
@@ -1932,7 +1942,7 @@ begin
|
|
1932
1942
|
p status_code # => 2xx
|
1933
1943
|
p headers # => { ... }
|
1934
1944
|
p data # => <SuccessfulSelfServiceRegistrationWithoutBrowser>
|
1935
|
-
rescue
|
1945
|
+
rescue OryKratosClient::ApiError => e
|
1936
1946
|
puts "Error when calling V0alpha1Api->submit_self_service_registration_flow_with_http_info: #{e}"
|
1937
1947
|
end
|
1938
1948
|
```
|
@@ -1972,18 +1982,18 @@ Use this endpoint to complete a settings flow by sending an identity's updated p
|
|
1972
1982
|
require 'time'
|
1973
1983
|
require 'ory-kratos-client'
|
1974
1984
|
|
1975
|
-
api_instance =
|
1985
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
1976
1986
|
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
1987
|
opts = {
|
1978
1988
|
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:
|
1989
|
+
submit_self_service_settings_flow_body: OryKratosClient::SubmitSelfServiceSettingsFlowWithPasswordMethodBody.new({method: 'password', password: 'password_example'}) # SubmitSelfServiceSettingsFlowBody |
|
1980
1990
|
}
|
1981
1991
|
|
1982
1992
|
begin
|
1983
1993
|
# Complete Settings Flow
|
1984
1994
|
result = api_instance.submit_self_service_settings_flow(flow, opts)
|
1985
1995
|
p result
|
1986
|
-
rescue
|
1996
|
+
rescue OryKratosClient::ApiError => e
|
1987
1997
|
puts "Error when calling V0alpha1Api->submit_self_service_settings_flow: #{e}"
|
1988
1998
|
end
|
1989
1999
|
```
|
@@ -2001,7 +2011,7 @@ begin
|
|
2001
2011
|
p status_code # => 2xx
|
2002
2012
|
p headers # => { ... }
|
2003
2013
|
p data # => <SuccessfulSelfServiceSettingsWithoutBrowser>
|
2004
|
-
rescue
|
2014
|
+
rescue OryKratosClient::ApiError => e
|
2005
2015
|
puts "Error when calling V0alpha1Api->submit_self_service_settings_flow_with_http_info: #{e}"
|
2006
2016
|
end
|
2007
2017
|
```
|
@@ -2042,18 +2052,18 @@ Use this endpoint to complete a verification flow. This endpoint behaves differe
|
|
2042
2052
|
require 'time'
|
2043
2053
|
require 'ory-kratos-client'
|
2044
2054
|
|
2045
|
-
api_instance =
|
2055
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
2046
2056
|
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
2057
|
opts = {
|
2048
2058
|
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:
|
2059
|
+
submit_self_service_verification_flow_body: OryKratosClient::SubmitSelfServiceVerificationFlowWithLinkMethodBody.new({email: 'email_example', method: 'link'}) # SubmitSelfServiceVerificationFlowBody |
|
2050
2060
|
}
|
2051
2061
|
|
2052
2062
|
begin
|
2053
2063
|
# Complete Verification Flow
|
2054
2064
|
result = api_instance.submit_self_service_verification_flow(flow, opts)
|
2055
2065
|
p result
|
2056
|
-
rescue
|
2066
|
+
rescue OryKratosClient::ApiError => e
|
2057
2067
|
puts "Error when calling V0alpha1Api->submit_self_service_verification_flow: #{e}"
|
2058
2068
|
end
|
2059
2069
|
```
|
@@ -2071,7 +2081,7 @@ begin
|
|
2071
2081
|
p status_code # => 2xx
|
2072
2082
|
p headers # => { ... }
|
2073
2083
|
p data # => <SelfServiceVerificationFlow>
|
2074
|
-
rescue
|
2084
|
+
rescue OryKratosClient::ApiError => e
|
2075
2085
|
puts "Error when calling V0alpha1Api->submit_self_service_verification_flow_with_http_info: #{e}"
|
2076
2086
|
end
|
2077
2087
|
```
|
@@ -2112,7 +2122,7 @@ Uses the HTTP Headers in the GET request to determine (e.g. by using checking th
|
|
2112
2122
|
require 'time'
|
2113
2123
|
require 'ory-kratos-client'
|
2114
2124
|
|
2115
|
-
api_instance =
|
2125
|
+
api_instance = OryKratosClient::V0alpha1Api.new
|
2116
2126
|
opts = {
|
2117
2127
|
x_session_token: 'MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj', # String | Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`.
|
2118
2128
|
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 +2132,7 @@ begin
|
|
2122
2132
|
# Check Who the Current HTTP Session Belongs To
|
2123
2133
|
result = api_instance.to_session(opts)
|
2124
2134
|
p result
|
2125
|
-
rescue
|
2135
|
+
rescue OryKratosClient::ApiError => e
|
2126
2136
|
puts "Error when calling V0alpha1Api->to_session: #{e}"
|
2127
2137
|
end
|
2128
2138
|
```
|
@@ -2140,7 +2150,7 @@ begin
|
|
2140
2150
|
p status_code # => 2xx
|
2141
2151
|
p headers # => { ... }
|
2142
2152
|
p data # => <Session>
|
2143
|
-
rescue
|
2153
|
+
rescue OryKratosClient::ApiError => e
|
2144
2154
|
puts "Error when calling V0alpha1Api->to_session_with_http_info: #{e}"
|
2145
2155
|
end
|
2146
2156
|
```
|