ory-kratos-client 0.5.5.alpha2 → 0.6.0.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +85 -36
- data/docs/AdminApi.md +206 -20
- data/docs/AuthenticateOKBody.md +20 -0
- data/docs/ContainerChangeResponseItem.md +20 -0
- data/docs/ContainerCreateCreatedBody.md +20 -0
- data/docs/ContainerTopOKBody.md +20 -0
- data/docs/ContainerUpdateOKBody.md +18 -0
- data/docs/ContainerWaitOKBody.md +20 -0
- data/docs/ContainerWaitOKBodyError.md +18 -0
- data/docs/ErrorContainer.md +1 -1
- data/docs/ErrorResponse.md +18 -0
- data/docs/GenericErrorPayload.md +1 -1
- data/docs/GraphDriverData.md +20 -0
- data/docs/IdResponse.md +18 -0
- data/docs/IdentityCredentials.md +22 -0
- data/docs/ImageDeleteResponseItem.md +20 -0
- data/docs/ImageSummary.md +36 -0
- data/docs/InlineResponse200.md +18 -0
- data/docs/InlineResponse2001.md +18 -0
- data/docs/InlineResponse503.md +18 -0
- data/docs/LoginFlow.md +5 -7
- data/docs/Meta.md +18 -0
- data/docs/Plugin.md +28 -0
- data/docs/PluginConfig.md +48 -0
- data/docs/PluginConfigArgs.md +24 -0
- data/docs/PluginConfigInterface.md +20 -0
- data/docs/PluginConfigLinux.md +22 -0
- data/docs/PluginConfigNetwork.md +18 -0
- data/docs/PluginConfigRootfs.md +20 -0
- data/docs/PluginConfigUser.md +20 -0
- data/docs/PluginDevice.md +24 -0
- data/docs/PluginEnv.md +24 -0
- data/docs/PluginInterfaceType.md +22 -0
- data/docs/PluginMount.md +30 -0
- data/docs/PluginSettings.md +24 -0
- data/docs/Port.md +24 -0
- data/docs/PublicApi.md +481 -552
- data/docs/RecoveryFlow.md +4 -6
- data/docs/RegistrationFlow.md +4 -6
- data/docs/ServiceUpdateResponse.md +18 -0
- data/docs/SettingsFlow.md +4 -6
- data/docs/{RecoveryFlowMethodConfig.md → SettingsProfileFormConfig.md} +6 -6
- data/docs/SubmitSelfServiceBrowserSettingsOIDCFlowPayload.md +22 -0
- data/docs/SubmitSelfServiceLoginFlow.md +47 -0
- data/docs/SubmitSelfServiceLoginFlowWithPasswordMethod.md +24 -0
- data/docs/{CompleteSelfServiceRecoveryFlowWithLinkMethod.md → SubmitSelfServiceRecoveryFlowWithLinkMethod.md} +2 -2
- data/docs/SubmitSelfServiceRegistrationFlow.md +47 -0
- data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethod.md +24 -0
- data/docs/SubmitSelfServiceSettingsFlow.md +49 -0
- data/docs/{CompleteSelfServiceSettingsFlowWithPasswordMethod.md → SubmitSelfServiceSettingsFlowWithPasswordMethod.md} +4 -2
- data/docs/SubmitSelfServiceSettingsFlowWithProfileMethod.md +22 -0
- data/docs/{CompleteSelfServiceVerificationFlowWithLinkMethod.md → SubmitSelfServiceVerificationFlowWithLinkMethod.md} +2 -2
- data/docs/{SettingsFlowMethodConfig.md → UiContainer.md} +6 -6
- data/docs/UiNode.md +26 -0
- data/docs/UiNodeAnchorAttributes.md +20 -0
- data/docs/UiNodeAttributes.md +53 -0
- data/docs/UiNodeImageAttributes.md +18 -0
- data/docs/UiNodeInputAttributes.md +30 -0
- data/docs/UiNodeInputAttributesValue.md +51 -0
- data/docs/UiNodeTextAttributes.md +18 -0
- data/docs/UiText.md +24 -0
- data/docs/VerificationFlow.md +6 -8
- data/docs/Volume.md +34 -0
- data/docs/VolumeUsageData.md +20 -0
- data/lib/ory-kratos-client.rb +59 -23
- data/lib/ory-kratos-client/api/admin_api.rb +207 -36
- data/lib/ory-kratos-client/api/public_api.rb +494 -538
- data/lib/ory-kratos-client/api_client.rb +6 -6
- data/lib/ory-kratos-client/api_error.rb +5 -5
- data/lib/ory-kratos-client/configuration.rb +36 -13
- data/lib/ory-kratos-client/models/authenticate_ok_body.rb +240 -0
- data/lib/ory-kratos-client/models/container_change_response_item.rb +240 -0
- data/lib/ory-kratos-client/models/container_create_created_body.rb +242 -0
- data/lib/ory-kratos-client/models/container_top_ok_body.rb +244 -0
- data/lib/ory-kratos-client/models/container_update_ok_body.rb +227 -0
- data/lib/ory-kratos-client/models/container_wait_ok_body.rb +239 -0
- data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +220 -0
- data/lib/ory-kratos-client/models/create_identity.rb +5 -5
- data/lib/ory-kratos-client/models/create_recovery_link.rb +5 -5
- data/lib/ory-kratos-client/models/error_container.rb +9 -7
- data/lib/ory-kratos-client/models/{registration_flow_method.rb → error_response.rb} +19 -33
- data/lib/ory-kratos-client/models/generic_error.rb +5 -5
- data/lib/ory-kratos-client/models/generic_error_payload.rb +9 -7
- data/lib/ory-kratos-client/models/graph_driver_data.rb +241 -0
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +5 -5
- data/lib/ory-kratos-client/models/health_status.rb +5 -5
- data/lib/ory-kratos-client/models/id_response.rb +225 -0
- data/lib/ory-kratos-client/models/identity.rb +5 -5
- data/lib/ory-kratos-client/models/identity_credentials.rb +241 -0
- data/lib/ory-kratos-client/models/{complete_self_service_login_flow_with_password_method.rb → image_delete_response_item.rb} +24 -33
- data/lib/ory-kratos-client/models/image_summary.rb +366 -0
- data/lib/ory-kratos-client/models/{recovery_flow_method.rb → inline_response200.rb} +19 -33
- data/lib/ory-kratos-client/models/{settings_flow_method.rb → inline_response2001.rb} +19 -33
- data/lib/ory-kratos-client/models/inline_response503.rb +226 -0
- data/lib/ory-kratos-client/models/login_flow.rb +29 -38
- data/lib/ory-kratos-client/models/login_via_api_response.rb +5 -5
- data/lib/ory-kratos-client/models/meta.rb +219 -0
- data/lib/ory-kratos-client/models/plugin.rb +288 -0
- data/lib/ory-kratos-client/models/plugin_config.rb +434 -0
- data/lib/ory-kratos-client/models/plugin_config_args.rb +274 -0
- data/lib/ory-kratos-client/models/plugin_config_interface.rb +242 -0
- data/lib/ory-kratos-client/models/plugin_config_linux.rb +259 -0
- data/lib/ory-kratos-client/models/{message.rb → plugin_config_network.rb} +17 -38
- data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +232 -0
- data/lib/ory-kratos-client/models/plugin_config_user.rb +230 -0
- data/lib/ory-kratos-client/models/plugin_device.rb +272 -0
- data/lib/ory-kratos-client/models/plugin_env.rb +272 -0
- data/lib/ory-kratos-client/models/{settings_flow_method_config.rb → plugin_interface_type.rb} +40 -52
- data/lib/ory-kratos-client/models/plugin_mount.rb +319 -0
- data/lib/ory-kratos-client/models/plugin_settings.rb +277 -0
- data/lib/ory-kratos-client/models/port.rb +260 -0
- data/lib/ory-kratos-client/models/recovery_address.rb +5 -5
- data/lib/ory-kratos-client/models/recovery_flow.rb +24 -38
- data/lib/ory-kratos-client/models/recovery_link.rb +5 -5
- data/lib/ory-kratos-client/models/registration_flow.rb +24 -38
- data/lib/ory-kratos-client/models/registration_via_api_response.rb +5 -5
- data/lib/ory-kratos-client/models/revoke_session.rb +5 -5
- data/lib/ory-kratos-client/models/service_update_response.rb +222 -0
- data/lib/ory-kratos-client/models/session.rb +5 -5
- data/lib/ory-kratos-client/models/settings_flow.rb +24 -38
- data/lib/ory-kratos-client/models/{login_flow_method_config.rb → settings_profile_form_config.rb} +22 -35
- data/lib/ory-kratos-client/models/settings_via_api_response.rb +5 -5
- data/lib/ory-kratos-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +239 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow.rb +104 -0
- data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method.rb +249 -0
- data/lib/ory-kratos-client/models/{complete_self_service_recovery_flow_with_link_method.rb → submit_self_service_recovery_flow_with_link_method.rb} +8 -8
- data/lib/ory-kratos-client/models/submit_self_service_registration_flow.rb +104 -0
- data/lib/ory-kratos-client/models/{recovery_flow_method_config.rb → submit_self_service_registration_flow_with_password_method.rb} +38 -50
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow.rb +105 -0
- data/lib/ory-kratos-client/models/{complete_self_service_settings_flow_with_password_method.rb → submit_self_service_settings_flow_with_password_method.rb} +19 -9
- data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method.rb +245 -0
- data/lib/ory-kratos-client/models/{complete_self_service_verification_flow_with_link_method.rb → submit_self_service_verification_flow_with_link_method.rb} +9 -8
- data/lib/ory-kratos-client/models/{registration_flow_method_config.rb → ui_container.rb} +23 -35
- data/lib/ory-kratos-client/models/ui_node.rb +282 -0
- data/lib/ory-kratos-client/models/{verification_flow_method.rb → ui_node_anchor_attributes.rb} +28 -28
- data/lib/ory-kratos-client/models/ui_node_attributes.rb +107 -0
- data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +224 -0
- data/lib/ory-kratos-client/models/{form_field.rb → ui_node_input_attributes.rb} +26 -25
- data/lib/ory-kratos-client/models/ui_node_input_attributes_value.rb +106 -0
- data/lib/ory-kratos-client/models/{login_flow_method.rb → ui_node_text_attributes.rb} +18 -33
- data/lib/ory-kratos-client/models/{verification_flow_method_config.rb → ui_text.rb} +44 -49
- data/lib/ory-kratos-client/models/update_identity.rb +5 -5
- data/lib/ory-kratos-client/models/verifiable_address.rb +5 -5
- data/lib/ory-kratos-client/models/verification_flow.rb +32 -36
- data/lib/ory-kratos-client/models/version.rb +5 -5
- data/lib/ory-kratos-client/models/volume.rb +335 -0
- data/lib/ory-kratos-client/models/volume_usage_data.rb +240 -0
- data/lib/ory-kratos-client/version.rb +6 -6
- data/ory-kratos-client.gemspec +7 -7
- data/spec/api/admin_api_spec.rb +134 -41
- data/spec/api/public_api_spec.rb +268 -37
- data/spec/api_client_spec.rb +5 -5
- data/spec/configuration_spec.rb +8 -8
- data/spec/models/authenticate_ok_body_spec.rb +40 -0
- data/spec/models/container_change_response_item_spec.rb +40 -0
- data/spec/models/container_create_created_body_spec.rb +40 -0
- data/spec/models/container_top_ok_body_spec.rb +40 -0
- data/spec/models/container_update_ok_body_spec.rb +34 -0
- data/spec/models/container_wait_ok_body_error_spec.rb +34 -0
- data/spec/models/container_wait_ok_body_spec.rb +40 -0
- data/spec/models/create_identity_spec.rb +8 -15
- data/spec/models/create_recovery_link_spec.rb +8 -15
- data/spec/models/error_container_spec.rb +8 -15
- data/spec/models/error_response_spec.rb +34 -0
- data/spec/models/generic_error_payload_spec.rb +8 -15
- data/spec/models/generic_error_spec.rb +8 -33
- data/spec/models/graph_driver_data_spec.rb +40 -0
- data/spec/models/health_not_ready_status_spec.rb +8 -15
- data/spec/models/health_status_spec.rb +8 -15
- data/spec/models/id_response_spec.rb +34 -0
- data/spec/models/identity_credentials_spec.rb +46 -0
- data/spec/models/identity_spec.rb +27 -16
- data/spec/models/image_delete_response_item_spec.rb +40 -0
- data/spec/models/image_summary_spec.rb +88 -0
- data/spec/models/inline_response2001_spec.rb +34 -0
- data/spec/models/inline_response200_spec.rb +34 -0
- data/spec/models/inline_response503_spec.rb +34 -0
- data/spec/models/login_flow_spec.rb +11 -24
- data/spec/models/login_via_api_response_spec.rb +8 -15
- data/spec/models/meta_spec.rb +34 -0
- data/spec/models/plugin_config_args_spec.rb +52 -0
- data/spec/models/plugin_config_interface_spec.rb +40 -0
- data/spec/models/plugin_config_linux_spec.rb +46 -0
- data/spec/models/plugin_config_network_spec.rb +34 -0
- data/spec/models/plugin_config_rootfs_spec.rb +40 -0
- data/spec/models/plugin_config_spec.rb +124 -0
- data/spec/models/plugin_config_user_spec.rb +40 -0
- data/spec/models/plugin_device_spec.rb +52 -0
- data/spec/models/plugin_env_spec.rb +52 -0
- data/spec/models/plugin_interface_type_spec.rb +46 -0
- data/spec/models/{settings_request_spec.rb → plugin_mount_spec.rb} +18 -31
- data/spec/models/plugin_settings_spec.rb +52 -0
- data/spec/models/{registration_request_spec.rb → plugin_spec.rb} +16 -23
- data/spec/models/port_spec.rb +52 -0
- data/spec/models/recovery_address_spec.rb +8 -15
- data/spec/models/recovery_flow_spec.rb +12 -25
- data/spec/models/recovery_link_spec.rb +8 -15
- data/spec/models/registration_flow_spec.rb +11 -24
- data/spec/models/registration_via_api_response_spec.rb +8 -15
- data/spec/models/revoke_session_spec.rb +8 -15
- data/spec/models/service_update_response_spec.rb +34 -0
- data/spec/models/session_spec.rb +17 -18
- data/spec/models/settings_flow_spec.rb +12 -25
- data/spec/models/settings_profile_form_config_spec.rb +52 -0
- data/spec/models/settings_via_api_response_spec.rb +8 -15
- data/spec/models/submit_self_service_browser_settings_oidc_flow_payload_spec.rb +46 -0
- data/spec/models/submit_self_service_login_flow_spec.rb +31 -0
- data/spec/models/submit_self_service_login_flow_with_password_method_spec.rb +52 -0
- data/spec/models/submit_self_service_recovery_flow_with_link_method_spec.rb +40 -0
- data/spec/models/submit_self_service_registration_flow_spec.rb +31 -0
- data/spec/models/submit_self_service_registration_flow_with_password_method_spec.rb +46 -0
- data/spec/models/submit_self_service_settings_flow_spec.rb +31 -0
- data/spec/models/submit_self_service_settings_flow_with_password_method_spec.rb +46 -0
- data/spec/models/submit_self_service_settings_flow_with_profile_method_spec.rb +46 -0
- data/spec/models/submit_self_service_verification_flow_with_link_method_spec.rb +40 -0
- data/spec/models/{registration_flow_method_config_spec.rb → ui_container_spec.rb} +12 -25
- data/spec/models/ui_node_anchor_attributes_spec.rb +40 -0
- data/spec/models/ui_node_attributes_spec.rb +31 -0
- data/spec/models/ui_node_image_attributes_spec.rb +34 -0
- data/spec/models/{verification_request_spec.rb → ui_node_input_attributes_spec.rb} +18 -25
- data/spec/models/ui_node_input_attributes_value_spec.rb +31 -0
- data/spec/models/{login_flow_method_config_spec.rb → ui_node_spec.rb} +15 -22
- data/spec/models/ui_node_text_attributes_spec.rb +34 -0
- data/spec/models/{message_spec.rb → ui_text_spec.rb} +11 -18
- data/spec/models/update_identity_spec.rb +8 -15
- data/spec/models/verifiable_address_spec.rb +10 -17
- data/spec/models/verification_flow_spec.rb +12 -25
- data/spec/models/version_spec.rb +8 -15
- data/spec/models/{recovery_request_spec.rb → volume_spec.rb} +24 -25
- data/spec/models/volume_usage_data_spec.rb +40 -0
- data/spec/spec_helper.rb +5 -5
- metadata +225 -160
- data/docs/CommonApi.md +0 -345
- data/docs/CompleteSelfServiceBrowserProfileManagementFlowPayload.md +0 -17
- data/docs/CompleteSelfServiceBrowserSettingsStrategyProfileFlowPayload.md +0 -19
- data/docs/CompleteSelfServiceLoginFlowWithPasswordMethod.md +0 -22
- data/docs/Error.md +0 -17
- data/docs/Form.md +0 -23
- data/docs/FormField.md +0 -30
- data/docs/HealthApi.md +0 -131
- data/docs/LoginFlowMethod.md +0 -20
- data/docs/LoginFlowMethodConfig.md +0 -26
- data/docs/LoginRequest.md +0 -31
- data/docs/LoginRequestMethod.md +0 -19
- data/docs/LoginRequestMethodConfig.md +0 -25
- data/docs/Message.md +0 -24
- data/docs/OidcStrategyCredentialsConfig.md +0 -19
- data/docs/OidcStrategyRequestMethod.md +0 -25
- data/docs/ProfileManagementRequest.md +0 -29
- data/docs/ProviderCredentialsConfig.md +0 -19
- data/docs/RecoveryFlowMethod.md +0 -20
- data/docs/RecoveryRequest.md +0 -31
- data/docs/RecoveryRequestMethod.md +0 -19
- data/docs/RegistrationFlowMethod.md +0 -20
- data/docs/RegistrationFlowMethodConfig.md +0 -26
- data/docs/RegistrationRequest.md +0 -29
- data/docs/RegistrationRequestMethod.md +0 -19
- data/docs/RegistrationRequestMethodConfig.md +0 -25
- data/docs/RequestMethodConfig.md +0 -23
- data/docs/SettingsFlowMethod.md +0 -20
- data/docs/SettingsRequest.md +0 -33
- data/docs/SettingsRequestMethod.md +0 -19
- data/docs/VerificationFlowMethod.md +0 -20
- data/docs/VerificationFlowMethodConfig.md +0 -24
- data/docs/VerificationRequest.md +0 -31
- data/docs/VersionApi.md +0 -69
- data/lib/ory-kratos-client/api/common_api.rb +0 -456
- data/lib/ory-kratos-client/api/health_api.rb +0 -136
- data/lib/ory-kratos-client/api/version_api.rb +0 -79
- data/lib/ory-kratos-client/models/complete_self_service_browser_profile_management_flow_payload.rb +0 -212
- data/lib/ory-kratos-client/models/complete_self_service_browser_settings_strategy_profile_flow_payload.rb +0 -222
- data/lib/ory-kratos-client/models/error.rb +0 -207
- data/lib/ory-kratos-client/models/form.rb +0 -256
- data/lib/ory-kratos-client/models/login_request.rb +0 -304
- data/lib/ory-kratos-client/models/login_request_method.rb +0 -226
- data/lib/ory-kratos-client/models/login_request_method_config.rb +0 -267
- data/lib/ory-kratos-client/models/oidc_strategy_credentials_config.rb +0 -215
- data/lib/ory-kratos-client/models/oidc_strategy_request_method.rb +0 -252
- data/lib/ory-kratos-client/models/profile_management_request.rb +0 -300
- data/lib/ory-kratos-client/models/provider_credentials_config.rb +0 -215
- data/lib/ory-kratos-client/models/recovery_request.rb +0 -309
- data/lib/ory-kratos-client/models/recovery_request_method.rb +0 -216
- data/lib/ory-kratos-client/models/registration_request.rb +0 -294
- data/lib/ory-kratos-client/models/registration_request_method.rb +0 -216
- data/lib/ory-kratos-client/models/registration_request_method_config.rb +0 -267
- data/lib/ory-kratos-client/models/request_method_config.rb +0 -255
- data/lib/ory-kratos-client/models/settings_request.rb +0 -323
- data/lib/ory-kratos-client/models/settings_request_method.rb +0 -216
- data/lib/ory-kratos-client/models/verification_request.rb +0 -276
- data/spec/api/common_api_spec.rb +0 -83
- data/spec/api/health_api_spec.rb +0 -57
- data/spec/api/version_api_spec.rb +0 -46
- data/spec/models/complete_self_service_browser_profile_management_flow_payload_spec.rb +0 -41
- data/spec/models/complete_self_service_browser_settings_strategy_profile_flow_payload_spec.rb +0 -47
- data/spec/models/complete_self_service_login_flow_with_password_method_spec.rb +0 -53
- data/spec/models/complete_self_service_recovery_flow_with_link_method_spec.rb +0 -47
- data/spec/models/complete_self_service_settings_flow_with_password_method_spec.rb +0 -47
- data/spec/models/complete_self_service_verification_flow_with_link_method_spec.rb +0 -47
- data/spec/models/error_spec.rb +0 -41
- data/spec/models/form_field_spec.rb +0 -65
- data/spec/models/form_spec.rb +0 -59
- data/spec/models/login_flow_method_spec.rb +0 -47
- data/spec/models/login_request_method_config_spec.rb +0 -35
- data/spec/models/login_request_method_spec.rb +0 -47
- data/spec/models/login_request_spec.rb +0 -71
- data/spec/models/oidc_strategy_credentials_config_spec.rb +0 -47
- data/spec/models/oidc_strategy_request_method_spec.rb +0 -65
- data/spec/models/profile_management_request_spec.rb +0 -77
- data/spec/models/provider_credentials_config_spec.rb +0 -47
- data/spec/models/recovery_flow_method_config_spec.rb +0 -59
- data/spec/models/recovery_flow_method_spec.rb +0 -47
- data/spec/models/recovery_request_method_spec.rb +0 -47
- data/spec/models/registration_flow_method_spec.rb +0 -47
- data/spec/models/registration_request_method_config_spec.rb +0 -35
- data/spec/models/registration_request_method_spec.rb +0 -47
- data/spec/models/request_method_config_spec.rb +0 -59
- data/spec/models/settings_flow_method_config_spec.rb +0 -59
- data/spec/models/settings_flow_method_spec.rb +0 -47
- data/spec/models/settings_request_method_spec.rb +0 -47
- data/spec/models/verification_flow_method_config_spec.rb +0 -59
- data/spec/models/verification_flow_method_spec.rb +0 -47
@@ -1,19 +0,0 @@
|
|
1
|
-
# OryHydraClient::RecoveryRequestMethod
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**config** | [**RequestMethodConfig**](RequestMethodConfig.md) | | [optional]
|
8
|
-
**method** | **String** | Method contains the request credentials type. | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'OryHydraClient'
|
14
|
-
|
15
|
-
instance = OryHydraClient::RecoveryRequestMethod.new(config: null,
|
16
|
-
method: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# OryHydraClient::RegistrationFlowMethod
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **config** | [**RegistrationFlowMethodConfig**](RegistrationFlowMethodConfig.md) | | |
|
8
|
-
| **method** | **String** | and so on. | |
|
9
|
-
|
10
|
-
## Example
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'ory-kratos-client'
|
14
|
-
|
15
|
-
instance = OryHydraClient::RegistrationFlowMethod.new(
|
16
|
-
config: null,
|
17
|
-
method: null
|
18
|
-
)
|
19
|
-
```
|
20
|
-
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# OryHydraClient::RegistrationFlowMethodConfig
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **action** | **String** | Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`. | |
|
8
|
-
| **fields** | [**Array<FormField>**](FormField.md) | Fields contains multiple fields | |
|
9
|
-
| **messages** | [**Array<Message>**](Message.md) | | [optional] |
|
10
|
-
| **method** | **String** | Method is the form method (e.g. POST) | |
|
11
|
-
| **providers** | [**Array<FormField>**](FormField.md) | Providers is set for the \"oidc\" registration method. | [optional] |
|
12
|
-
|
13
|
-
## Example
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
require 'ory-kratos-client'
|
17
|
-
|
18
|
-
instance = OryHydraClient::RegistrationFlowMethodConfig.new(
|
19
|
-
action: null,
|
20
|
-
fields: null,
|
21
|
-
messages: null,
|
22
|
-
method: null,
|
23
|
-
providers: null
|
24
|
-
)
|
25
|
-
```
|
26
|
-
|
data/docs/RegistrationRequest.md
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# OryHydraClient::RegistrationRequest
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**active** | **String** | and so on. | [optional]
|
8
|
-
**expires_at** | **DateTime** | ExpiresAt is the time (UTC) when the request expires. If the user still wishes to log in, a new request has to be initiated. |
|
9
|
-
**id** | **String** | |
|
10
|
-
**issued_at** | **DateTime** | IssuedAt is the time (UTC) when the request occurred. |
|
11
|
-
**messages** | [**Array<Message>**](Message.md) | | [optional]
|
12
|
-
**methods** | [**Hash<String, RegistrationRequestMethod>**](RegistrationRequestMethod.md) | Methods contains context for all enabled registration methods. If a registration request has been processed, but for example the password is incorrect, this will contain error messages. |
|
13
|
-
**request_url** | **String** | RequestURL is the initial URL that was requested from ORY Kratos. It can be used to forward information contained in the URL's path or query for example. |
|
14
|
-
|
15
|
-
## Code Sample
|
16
|
-
|
17
|
-
```ruby
|
18
|
-
require 'OryHydraClient'
|
19
|
-
|
20
|
-
instance = OryHydraClient::RegistrationRequest.new(active: null,
|
21
|
-
expires_at: null,
|
22
|
-
id: null,
|
23
|
-
issued_at: null,
|
24
|
-
messages: null,
|
25
|
-
methods: null,
|
26
|
-
request_url: null)
|
27
|
-
```
|
28
|
-
|
29
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# OryHydraClient::RegistrationRequestMethod
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**config** | [**RegistrationRequestMethodConfig**](RegistrationRequestMethodConfig.md) | | [optional]
|
8
|
-
**method** | **String** | and so on. | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'OryHydraClient'
|
14
|
-
|
15
|
-
instance = OryHydraClient::RegistrationRequestMethod.new(config: null,
|
16
|
-
method: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# OryHydraClient::RegistrationRequestMethodConfig
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**action** | **String** | Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`. |
|
8
|
-
**fields** | [**Array<FormField>**](FormField.md) | Fields contains multiple fields |
|
9
|
-
**messages** | [**Array<Message>**](Message.md) | | [optional]
|
10
|
-
**method** | **String** | Method is the form method (e.g. POST) |
|
11
|
-
**providers** | [**Array<FormField>**](FormField.md) | Providers is set for the \"oidc\" request method. | [optional]
|
12
|
-
|
13
|
-
## Code Sample
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
require 'OryHydraClient'
|
17
|
-
|
18
|
-
instance = OryHydraClient::RegistrationRequestMethodConfig.new(action: null,
|
19
|
-
fields: null,
|
20
|
-
messages: null,
|
21
|
-
method: null,
|
22
|
-
providers: null)
|
23
|
-
```
|
24
|
-
|
25
|
-
|
data/docs/RequestMethodConfig.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# OryHydraClient::RequestMethodConfig
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**action** | **String** | Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`. |
|
8
|
-
**fields** | [**Array<FormField>**](FormField.md) | Fields contains multiple fields |
|
9
|
-
**messages** | [**Array<Message>**](Message.md) | | [optional]
|
10
|
-
**method** | **String** | Method is the form method (e.g. POST) |
|
11
|
-
|
12
|
-
## Code Sample
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'OryHydraClient'
|
16
|
-
|
17
|
-
instance = OryHydraClient::RequestMethodConfig.new(action: null,
|
18
|
-
fields: null,
|
19
|
-
messages: null,
|
20
|
-
method: null)
|
21
|
-
```
|
22
|
-
|
23
|
-
|
data/docs/SettingsFlowMethod.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# OryHydraClient::SettingsFlowMethod
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **config** | [**SettingsFlowMethodConfig**](SettingsFlowMethodConfig.md) | | |
|
8
|
-
| **method** | **String** | Method is the name of this flow method. | |
|
9
|
-
|
10
|
-
## Example
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'ory-kratos-client'
|
14
|
-
|
15
|
-
instance = OryHydraClient::SettingsFlowMethod.new(
|
16
|
-
config: null,
|
17
|
-
method: null
|
18
|
-
)
|
19
|
-
```
|
20
|
-
|
data/docs/SettingsRequest.md
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# OryHydraClient::SettingsRequest
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**active** | **String** | Active, if set, contains the registration method that is being used. It is initially not set. | [optional]
|
8
|
-
**expires_at** | **DateTime** | ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated. |
|
9
|
-
**id** | **String** | |
|
10
|
-
**identity** | [**Identity**](Identity.md) | |
|
11
|
-
**issued_at** | **DateTime** | IssuedAt is the time (UTC) when the request occurred. |
|
12
|
-
**messages** | [**Array<Message>**](Message.md) | | [optional]
|
13
|
-
**methods** | [**Hash<String, SettingsRequestMethod>**](SettingsRequestMethod.md) | Methods contains context for all enabled registration methods. If a registration request has been processed, but for example the password is incorrect, this will contain error messages. |
|
14
|
-
**request_url** | **String** | RequestURL is the initial URL that was requested from ORY Kratos. It can be used to forward information contained in the URL's path or query for example. |
|
15
|
-
**state** | **String** | |
|
16
|
-
|
17
|
-
## Code Sample
|
18
|
-
|
19
|
-
```ruby
|
20
|
-
require 'OryHydraClient'
|
21
|
-
|
22
|
-
instance = OryHydraClient::SettingsRequest.new(active: null,
|
23
|
-
expires_at: null,
|
24
|
-
id: null,
|
25
|
-
identity: null,
|
26
|
-
issued_at: null,
|
27
|
-
messages: null,
|
28
|
-
methods: null,
|
29
|
-
request_url: null,
|
30
|
-
state: null)
|
31
|
-
```
|
32
|
-
|
33
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# OryHydraClient::SettingsRequestMethod
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**config** | [**RequestMethodConfig**](RequestMethodConfig.md) | | [optional]
|
8
|
-
**method** | **String** | Method contains the request credentials type. | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'OryHydraClient'
|
14
|
-
|
15
|
-
instance = OryHydraClient::SettingsRequestMethod.new(config: null,
|
16
|
-
method: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# OryHydraClient::VerificationFlowMethod
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **config** | [**VerificationFlowMethodConfig**](VerificationFlowMethodConfig.md) | | |
|
8
|
-
| **method** | **String** | Method contains the request credentials type. | |
|
9
|
-
|
10
|
-
## Example
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'ory-kratos-client'
|
14
|
-
|
15
|
-
instance = OryHydraClient::VerificationFlowMethod.new(
|
16
|
-
config: null,
|
17
|
-
method: null
|
18
|
-
)
|
19
|
-
```
|
20
|
-
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# OryHydraClient::VerificationFlowMethodConfig
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **action** | **String** | Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`. | |
|
8
|
-
| **fields** | [**Array<FormField>**](FormField.md) | Fields contains multiple fields | |
|
9
|
-
| **messages** | [**Array<Message>**](Message.md) | | [optional] |
|
10
|
-
| **method** | **String** | Method is the form method (e.g. POST) | |
|
11
|
-
|
12
|
-
## Example
|
13
|
-
|
14
|
-
```ruby
|
15
|
-
require 'ory-kratos-client'
|
16
|
-
|
17
|
-
instance = OryHydraClient::VerificationFlowMethodConfig.new(
|
18
|
-
action: null,
|
19
|
-
fields: null,
|
20
|
-
messages: null,
|
21
|
-
method: null
|
22
|
-
)
|
23
|
-
```
|
24
|
-
|
data/docs/VerificationRequest.md
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
# OryHydraClient::VerificationRequest
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**expires_at** | **DateTime** | ExpiresAt is the time (UTC) when the request expires. If the user still wishes to verify the address, a new request has to be initiated. | [optional]
|
8
|
-
**form** | [**Form**](Form.md) | | [optional]
|
9
|
-
**id** | **String** | | [optional]
|
10
|
-
**issued_at** | **DateTime** | IssuedAt is the time (UTC) when the request occurred. | [optional]
|
11
|
-
**messages** | [**Array<Message>**](Message.md) | | [optional]
|
12
|
-
**request_url** | **String** | RequestURL is the initial URL that was requested from ORY Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional]
|
13
|
-
**success** | **Boolean** | Success, if true, implies that the request was completed successfully. | [optional]
|
14
|
-
**via** | **String** | | [optional]
|
15
|
-
|
16
|
-
## Code Sample
|
17
|
-
|
18
|
-
```ruby
|
19
|
-
require 'OryHydraClient'
|
20
|
-
|
21
|
-
instance = OryHydraClient::VerificationRequest.new(expires_at: null,
|
22
|
-
form: null,
|
23
|
-
id: null,
|
24
|
-
issued_at: null,
|
25
|
-
messages: null,
|
26
|
-
request_url: null,
|
27
|
-
success: null,
|
28
|
-
via: null)
|
29
|
-
```
|
30
|
-
|
31
|
-
|
data/docs/VersionApi.md
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
# OryHydraClient::VersionApi
|
2
|
-
|
3
|
-
All URIs are relative to *http://localhost*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**get_version**](VersionApi.md#get_version) | **GET** /version | Get service version |
|
8
|
-
|
9
|
-
|
10
|
-
## get_version
|
11
|
-
|
12
|
-
> <Version> get_version
|
13
|
-
|
14
|
-
Get service version
|
15
|
-
|
16
|
-
This endpoint returns the service version typically notated using semantic versioning. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
|
17
|
-
|
18
|
-
### Examples
|
19
|
-
|
20
|
-
```ruby
|
21
|
-
require 'time'
|
22
|
-
require 'ory-kratos-client'
|
23
|
-
|
24
|
-
api_instance = OryHydraClient::VersionApi.new
|
25
|
-
|
26
|
-
begin
|
27
|
-
# Get service version
|
28
|
-
result = api_instance.get_version
|
29
|
-
p result
|
30
|
-
rescue OryHydraClient::ApiError => e
|
31
|
-
puts "Error when calling VersionApi->get_version: #{e}"
|
32
|
-
end
|
33
|
-
```
|
34
|
-
|
35
|
-
#### Using the get_version_with_http_info variant
|
36
|
-
|
37
|
-
This returns an Array which contains the response data, status code and headers.
|
38
|
-
|
39
|
-
> <Array(<Version>, Integer, Hash)> get_version_with_http_info
|
40
|
-
|
41
|
-
```ruby
|
42
|
-
begin
|
43
|
-
# Get service version
|
44
|
-
data, status_code, headers = api_instance.get_version_with_http_info
|
45
|
-
p status_code # => 2xx
|
46
|
-
p headers # => { ... }
|
47
|
-
p data # => <Version>
|
48
|
-
rescue OryHydraClient::ApiError => e
|
49
|
-
puts "Error when calling VersionApi->get_version_with_http_info: #{e}"
|
50
|
-
end
|
51
|
-
```
|
52
|
-
|
53
|
-
### Parameters
|
54
|
-
|
55
|
-
This endpoint does not need any parameter.
|
56
|
-
|
57
|
-
### Return type
|
58
|
-
|
59
|
-
[**Version**](Version.md)
|
60
|
-
|
61
|
-
### Authorization
|
62
|
-
|
63
|
-
No authorization required
|
64
|
-
|
65
|
-
### HTTP request headers
|
66
|
-
|
67
|
-
- **Content-Type**: Not defined
|
68
|
-
- **Accept**: application/json
|
69
|
-
|
@@ -1,456 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Ory Kratos
|
3
|
-
|
4
|
-
#Welcome to the ORY Kratos HTTP API documentation!
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v0.4.6-alpha.1
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module OryHydraClient
|
16
|
-
class CommonApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Get a traits schema definition
|
23
|
-
# @param id [String] ID must be set to the ID of schema you want to get
|
24
|
-
# @param [Hash] opts the optional parameters
|
25
|
-
# @return [Object]
|
26
|
-
def get_schema(id, opts = {})
|
27
|
-
data, _status_code, _headers = get_schema_with_http_info(id, opts)
|
28
|
-
data
|
29
|
-
end
|
30
|
-
|
31
|
-
# Get a traits schema definition
|
32
|
-
# @param id [String] ID must be set to the ID of schema you want to get
|
33
|
-
# @param [Hash] opts the optional parameters
|
34
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
35
|
-
def get_schema_with_http_info(id, opts = {})
|
36
|
-
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: CommonApi.get_schema ...'
|
38
|
-
end
|
39
|
-
# verify the required parameter 'id' is set
|
40
|
-
if @api_client.config.client_side_validation && id.nil?
|
41
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CommonApi.get_schema"
|
42
|
-
end
|
43
|
-
# resource path
|
44
|
-
local_var_path = '/schemas/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
45
|
-
|
46
|
-
# query parameters
|
47
|
-
query_params = opts[:query_params] || {}
|
48
|
-
|
49
|
-
# header parameters
|
50
|
-
header_params = opts[:header_params] || {}
|
51
|
-
# HTTP header 'Accept' (if needed)
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
-
|
54
|
-
# form parameters
|
55
|
-
form_params = opts[:form_params] || {}
|
56
|
-
|
57
|
-
# http body (model)
|
58
|
-
post_body = opts[:body]
|
59
|
-
|
60
|
-
# return_type
|
61
|
-
return_type = opts[:return_type] || 'Object'
|
62
|
-
|
63
|
-
# auth_names
|
64
|
-
auth_names = opts[:auth_names] || []
|
65
|
-
|
66
|
-
new_options = opts.merge(
|
67
|
-
:header_params => header_params,
|
68
|
-
:query_params => query_params,
|
69
|
-
:form_params => form_params,
|
70
|
-
:body => post_body,
|
71
|
-
:auth_names => auth_names,
|
72
|
-
:return_type => return_type
|
73
|
-
)
|
74
|
-
|
75
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
76
|
-
if @api_client.config.debugging
|
77
|
-
@api_client.config.logger.debug "API called: CommonApi#get_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
|
-
end
|
79
|
-
return data, status_code, headers
|
80
|
-
end
|
81
|
-
|
82
|
-
# Get the request context of browser-based login user flows
|
83
|
-
# This endpoint returns a login request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
|
84
|
-
# @param request [String] Request is the Login Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/login?request=abcde`).
|
85
|
-
# @param [Hash] opts the optional parameters
|
86
|
-
# @return [LoginRequest]
|
87
|
-
def get_self_service_browser_login_request(request, opts = {})
|
88
|
-
data, _status_code, _headers = get_self_service_browser_login_request_with_http_info(request, opts)
|
89
|
-
data
|
90
|
-
end
|
91
|
-
|
92
|
-
# Get the request context of browser-based login user flows
|
93
|
-
# This endpoint returns a login request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
|
94
|
-
# @param request [String] Request is the Login Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/login?request=abcde`).
|
95
|
-
# @param [Hash] opts the optional parameters
|
96
|
-
# @return [Array<(LoginRequest, Integer, Hash)>] LoginRequest data, response status code and response headers
|
97
|
-
def get_self_service_browser_login_request_with_http_info(request, opts = {})
|
98
|
-
if @api_client.config.debugging
|
99
|
-
@api_client.config.logger.debug 'Calling API: CommonApi.get_self_service_browser_login_request ...'
|
100
|
-
end
|
101
|
-
# verify the required parameter 'request' is set
|
102
|
-
if @api_client.config.client_side_validation && request.nil?
|
103
|
-
fail ArgumentError, "Missing the required parameter 'request' when calling CommonApi.get_self_service_browser_login_request"
|
104
|
-
end
|
105
|
-
# resource path
|
106
|
-
local_var_path = '/self-service/browser/flows/requests/login'
|
107
|
-
|
108
|
-
# query parameters
|
109
|
-
query_params = opts[:query_params] || {}
|
110
|
-
query_params[:'request'] = request
|
111
|
-
|
112
|
-
# header parameters
|
113
|
-
header_params = opts[:header_params] || {}
|
114
|
-
# HTTP header 'Accept' (if needed)
|
115
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
116
|
-
|
117
|
-
# form parameters
|
118
|
-
form_params = opts[:form_params] || {}
|
119
|
-
|
120
|
-
# http body (model)
|
121
|
-
post_body = opts[:body]
|
122
|
-
|
123
|
-
# return_type
|
124
|
-
return_type = opts[:return_type] || 'LoginRequest'
|
125
|
-
|
126
|
-
# auth_names
|
127
|
-
auth_names = opts[:auth_names] || []
|
128
|
-
|
129
|
-
new_options = opts.merge(
|
130
|
-
:header_params => header_params,
|
131
|
-
:query_params => query_params,
|
132
|
-
:form_params => form_params,
|
133
|
-
:body => post_body,
|
134
|
-
:auth_names => auth_names,
|
135
|
-
:return_type => return_type
|
136
|
-
)
|
137
|
-
|
138
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
139
|
-
if @api_client.config.debugging
|
140
|
-
@api_client.config.logger.debug "API called: CommonApi#get_self_service_browser_login_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
141
|
-
end
|
142
|
-
return data, status_code, headers
|
143
|
-
end
|
144
|
-
|
145
|
-
# Get the request context of browser-based recovery flows
|
146
|
-
# When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos Account Recovery Documentation](../self-service/flows/password-reset-account-recovery).
|
147
|
-
# @param request [String] Request is the Login Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/recover?request=abcde`).
|
148
|
-
# @param [Hash] opts the optional parameters
|
149
|
-
# @return [RecoveryRequest]
|
150
|
-
def get_self_service_browser_recovery_request(request, opts = {})
|
151
|
-
data, _status_code, _headers = get_self_service_browser_recovery_request_with_http_info(request, opts)
|
152
|
-
data
|
153
|
-
end
|
154
|
-
|
155
|
-
# Get the request context of browser-based recovery flows
|
156
|
-
# When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos Account Recovery Documentation](../self-service/flows/password-reset-account-recovery).
|
157
|
-
# @param request [String] Request is the Login Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/recover?request=abcde`).
|
158
|
-
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [Array<(RecoveryRequest, Integer, Hash)>] RecoveryRequest data, response status code and response headers
|
160
|
-
def get_self_service_browser_recovery_request_with_http_info(request, opts = {})
|
161
|
-
if @api_client.config.debugging
|
162
|
-
@api_client.config.logger.debug 'Calling API: CommonApi.get_self_service_browser_recovery_request ...'
|
163
|
-
end
|
164
|
-
# verify the required parameter 'request' is set
|
165
|
-
if @api_client.config.client_side_validation && request.nil?
|
166
|
-
fail ArgumentError, "Missing the required parameter 'request' when calling CommonApi.get_self_service_browser_recovery_request"
|
167
|
-
end
|
168
|
-
# resource path
|
169
|
-
local_var_path = '/self-service/browser/flows/requests/recovery'
|
170
|
-
|
171
|
-
# query parameters
|
172
|
-
query_params = opts[:query_params] || {}
|
173
|
-
query_params[:'request'] = request
|
174
|
-
|
175
|
-
# header parameters
|
176
|
-
header_params = opts[:header_params] || {}
|
177
|
-
# HTTP header 'Accept' (if needed)
|
178
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
179
|
-
|
180
|
-
# form parameters
|
181
|
-
form_params = opts[:form_params] || {}
|
182
|
-
|
183
|
-
# http body (model)
|
184
|
-
post_body = opts[:body]
|
185
|
-
|
186
|
-
# return_type
|
187
|
-
return_type = opts[:return_type] || 'RecoveryRequest'
|
188
|
-
|
189
|
-
# auth_names
|
190
|
-
auth_names = opts[:auth_names] || []
|
191
|
-
|
192
|
-
new_options = opts.merge(
|
193
|
-
:header_params => header_params,
|
194
|
-
:query_params => query_params,
|
195
|
-
:form_params => form_params,
|
196
|
-
:body => post_body,
|
197
|
-
:auth_names => auth_names,
|
198
|
-
:return_type => return_type
|
199
|
-
)
|
200
|
-
|
201
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
202
|
-
if @api_client.config.debugging
|
203
|
-
@api_client.config.logger.debug "API called: CommonApi#get_self_service_browser_recovery_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
204
|
-
end
|
205
|
-
return data, status_code, headers
|
206
|
-
end
|
207
|
-
|
208
|
-
# Get the request context of browser-based registration user flows
|
209
|
-
# This endpoint returns a registration request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
|
210
|
-
# @param request [String] Request is the Registration Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/registration?request=abcde`).
|
211
|
-
# @param [Hash] opts the optional parameters
|
212
|
-
# @return [RegistrationRequest]
|
213
|
-
def get_self_service_browser_registration_request(request, opts = {})
|
214
|
-
data, _status_code, _headers = get_self_service_browser_registration_request_with_http_info(request, opts)
|
215
|
-
data
|
216
|
-
end
|
217
|
-
|
218
|
-
# Get the request context of browser-based registration user flows
|
219
|
-
# This endpoint returns a registration request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
|
220
|
-
# @param request [String] Request is the Registration Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/registration?request=abcde`).
|
221
|
-
# @param [Hash] opts the optional parameters
|
222
|
-
# @return [Array<(RegistrationRequest, Integer, Hash)>] RegistrationRequest data, response status code and response headers
|
223
|
-
def get_self_service_browser_registration_request_with_http_info(request, opts = {})
|
224
|
-
if @api_client.config.debugging
|
225
|
-
@api_client.config.logger.debug 'Calling API: CommonApi.get_self_service_browser_registration_request ...'
|
226
|
-
end
|
227
|
-
# verify the required parameter 'request' is set
|
228
|
-
if @api_client.config.client_side_validation && request.nil?
|
229
|
-
fail ArgumentError, "Missing the required parameter 'request' when calling CommonApi.get_self_service_browser_registration_request"
|
230
|
-
end
|
231
|
-
# resource path
|
232
|
-
local_var_path = '/self-service/browser/flows/requests/registration'
|
233
|
-
|
234
|
-
# query parameters
|
235
|
-
query_params = opts[:query_params] || {}
|
236
|
-
query_params[:'request'] = request
|
237
|
-
|
238
|
-
# header parameters
|
239
|
-
header_params = opts[:header_params] || {}
|
240
|
-
# HTTP header 'Accept' (if needed)
|
241
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
242
|
-
|
243
|
-
# form parameters
|
244
|
-
form_params = opts[:form_params] || {}
|
245
|
-
|
246
|
-
# http body (model)
|
247
|
-
post_body = opts[:body]
|
248
|
-
|
249
|
-
# return_type
|
250
|
-
return_type = opts[:return_type] || 'RegistrationRequest'
|
251
|
-
|
252
|
-
# auth_names
|
253
|
-
auth_names = opts[:auth_names] || []
|
254
|
-
|
255
|
-
new_options = opts.merge(
|
256
|
-
:header_params => header_params,
|
257
|
-
:query_params => query_params,
|
258
|
-
:form_params => form_params,
|
259
|
-
:body => post_body,
|
260
|
-
:auth_names => auth_names,
|
261
|
-
:return_type => return_type
|
262
|
-
)
|
263
|
-
|
264
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
265
|
-
if @api_client.config.debugging
|
266
|
-
@api_client.config.logger.debug "API called: CommonApi#get_self_service_browser_registration_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
267
|
-
end
|
268
|
-
return data, status_code, headers
|
269
|
-
end
|
270
|
-
|
271
|
-
# Get the request context of browser-based settings flows
|
272
|
-
# When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
273
|
-
# @param request [String] Request is the Login Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/settingss?request=abcde`).
|
274
|
-
# @param [Hash] opts the optional parameters
|
275
|
-
# @return [SettingsRequest]
|
276
|
-
def get_self_service_browser_settings_request(request, opts = {})
|
277
|
-
data, _status_code, _headers = get_self_service_browser_settings_request_with_http_info(request, opts)
|
278
|
-
data
|
279
|
-
end
|
280
|
-
|
281
|
-
# Get the request context of browser-based settings flows
|
282
|
-
# When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).
|
283
|
-
# @param request [String] Request is the Login Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/settingss?request=abcde`).
|
284
|
-
# @param [Hash] opts the optional parameters
|
285
|
-
# @return [Array<(SettingsRequest, Integer, Hash)>] SettingsRequest data, response status code and response headers
|
286
|
-
def get_self_service_browser_settings_request_with_http_info(request, opts = {})
|
287
|
-
if @api_client.config.debugging
|
288
|
-
@api_client.config.logger.debug 'Calling API: CommonApi.get_self_service_browser_settings_request ...'
|
289
|
-
end
|
290
|
-
# verify the required parameter 'request' is set
|
291
|
-
if @api_client.config.client_side_validation && request.nil?
|
292
|
-
fail ArgumentError, "Missing the required parameter 'request' when calling CommonApi.get_self_service_browser_settings_request"
|
293
|
-
end
|
294
|
-
# resource path
|
295
|
-
local_var_path = '/self-service/browser/flows/requests/settings'
|
296
|
-
|
297
|
-
# query parameters
|
298
|
-
query_params = opts[:query_params] || {}
|
299
|
-
query_params[:'request'] = request
|
300
|
-
|
301
|
-
# header parameters
|
302
|
-
header_params = opts[:header_params] || {}
|
303
|
-
# HTTP header 'Accept' (if needed)
|
304
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
305
|
-
|
306
|
-
# form parameters
|
307
|
-
form_params = opts[:form_params] || {}
|
308
|
-
|
309
|
-
# http body (model)
|
310
|
-
post_body = opts[:body]
|
311
|
-
|
312
|
-
# return_type
|
313
|
-
return_type = opts[:return_type] || 'SettingsRequest'
|
314
|
-
|
315
|
-
# auth_names
|
316
|
-
auth_names = opts[:auth_names] || []
|
317
|
-
|
318
|
-
new_options = opts.merge(
|
319
|
-
:header_params => header_params,
|
320
|
-
:query_params => query_params,
|
321
|
-
:form_params => form_params,
|
322
|
-
:body => post_body,
|
323
|
-
:auth_names => auth_names,
|
324
|
-
:return_type => return_type
|
325
|
-
)
|
326
|
-
|
327
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
328
|
-
if @api_client.config.debugging
|
329
|
-
@api_client.config.logger.debug "API called: CommonApi#get_self_service_browser_settings_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
330
|
-
end
|
331
|
-
return data, status_code, headers
|
332
|
-
end
|
333
|
-
|
334
|
-
# Get user-facing self-service errors
|
335
|
-
# This endpoint returns the error associated with a user-facing self service errors. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes. More information can be found at [ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
|
336
|
-
# @param [Hash] opts the optional parameters
|
337
|
-
# @option opts [String] :error
|
338
|
-
# @return [ErrorContainer]
|
339
|
-
def get_self_service_error(opts = {})
|
340
|
-
data, _status_code, _headers = get_self_service_error_with_http_info(opts)
|
341
|
-
data
|
342
|
-
end
|
343
|
-
|
344
|
-
# Get user-facing self-service errors
|
345
|
-
# This endpoint returns the error associated with a user-facing self service errors. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes. More information can be found at [ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
|
346
|
-
# @param [Hash] opts the optional parameters
|
347
|
-
# @option opts [String] :error
|
348
|
-
# @return [Array<(ErrorContainer, Integer, Hash)>] ErrorContainer data, response status code and response headers
|
349
|
-
def get_self_service_error_with_http_info(opts = {})
|
350
|
-
if @api_client.config.debugging
|
351
|
-
@api_client.config.logger.debug 'Calling API: CommonApi.get_self_service_error ...'
|
352
|
-
end
|
353
|
-
# resource path
|
354
|
-
local_var_path = '/self-service/errors'
|
355
|
-
|
356
|
-
# query parameters
|
357
|
-
query_params = opts[:query_params] || {}
|
358
|
-
query_params[:'error'] = opts[:'error'] if !opts[:'error'].nil?
|
359
|
-
|
360
|
-
# header parameters
|
361
|
-
header_params = opts[:header_params] || {}
|
362
|
-
# HTTP header 'Accept' (if needed)
|
363
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
364
|
-
|
365
|
-
# form parameters
|
366
|
-
form_params = opts[:form_params] || {}
|
367
|
-
|
368
|
-
# http body (model)
|
369
|
-
post_body = opts[:body]
|
370
|
-
|
371
|
-
# return_type
|
372
|
-
return_type = opts[:return_type] || 'ErrorContainer'
|
373
|
-
|
374
|
-
# auth_names
|
375
|
-
auth_names = opts[:auth_names] || []
|
376
|
-
|
377
|
-
new_options = opts.merge(
|
378
|
-
:header_params => header_params,
|
379
|
-
:query_params => query_params,
|
380
|
-
:form_params => form_params,
|
381
|
-
:body => post_body,
|
382
|
-
:auth_names => auth_names,
|
383
|
-
:return_type => return_type
|
384
|
-
)
|
385
|
-
|
386
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
387
|
-
if @api_client.config.debugging
|
388
|
-
@api_client.config.logger.debug "API called: CommonApi#get_self_service_error\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
389
|
-
end
|
390
|
-
return data, status_code, headers
|
391
|
-
end
|
392
|
-
|
393
|
-
# Get the request context of browser-based verification flows
|
394
|
-
# When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
|
395
|
-
# @param request [String] Request is the Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verify?request=abcde`).
|
396
|
-
# @param [Hash] opts the optional parameters
|
397
|
-
# @return [VerificationRequest]
|
398
|
-
def get_self_service_verification_request(request, opts = {})
|
399
|
-
data, _status_code, _headers = get_self_service_verification_request_with_http_info(request, opts)
|
400
|
-
data
|
401
|
-
end
|
402
|
-
|
403
|
-
# Get the request context of browser-based verification flows
|
404
|
-
# When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
|
405
|
-
# @param request [String] Request is the Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verify?request=abcde`).
|
406
|
-
# @param [Hash] opts the optional parameters
|
407
|
-
# @return [Array<(VerificationRequest, Integer, Hash)>] VerificationRequest data, response status code and response headers
|
408
|
-
def get_self_service_verification_request_with_http_info(request, opts = {})
|
409
|
-
if @api_client.config.debugging
|
410
|
-
@api_client.config.logger.debug 'Calling API: CommonApi.get_self_service_verification_request ...'
|
411
|
-
end
|
412
|
-
# verify the required parameter 'request' is set
|
413
|
-
if @api_client.config.client_side_validation && request.nil?
|
414
|
-
fail ArgumentError, "Missing the required parameter 'request' when calling CommonApi.get_self_service_verification_request"
|
415
|
-
end
|
416
|
-
# resource path
|
417
|
-
local_var_path = '/self-service/browser/flows/requests/verification'
|
418
|
-
|
419
|
-
# query parameters
|
420
|
-
query_params = opts[:query_params] || {}
|
421
|
-
query_params[:'request'] = request
|
422
|
-
|
423
|
-
# header parameters
|
424
|
-
header_params = opts[:header_params] || {}
|
425
|
-
# HTTP header 'Accept' (if needed)
|
426
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
427
|
-
|
428
|
-
# form parameters
|
429
|
-
form_params = opts[:form_params] || {}
|
430
|
-
|
431
|
-
# http body (model)
|
432
|
-
post_body = opts[:body]
|
433
|
-
|
434
|
-
# return_type
|
435
|
-
return_type = opts[:return_type] || 'VerificationRequest'
|
436
|
-
|
437
|
-
# auth_names
|
438
|
-
auth_names = opts[:auth_names] || []
|
439
|
-
|
440
|
-
new_options = opts.merge(
|
441
|
-
:header_params => header_params,
|
442
|
-
:query_params => query_params,
|
443
|
-
:form_params => form_params,
|
444
|
-
:body => post_body,
|
445
|
-
:auth_names => auth_names,
|
446
|
-
:return_type => return_type
|
447
|
-
)
|
448
|
-
|
449
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
450
|
-
if @api_client.config.debugging
|
451
|
-
@api_client.config.logger.debug "API called: CommonApi#get_self_service_verification_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
452
|
-
end
|
453
|
-
return data, status_code, headers
|
454
|
-
end
|
455
|
-
end
|
456
|
-
end
|