narrow-hospital-35452
11/02/2024, 12:39 PMbrief-egg-61061
11/02/2024, 12:39 PMbrief-egg-61061
11/02/2024, 12:39 PMory patch project --project <project-id> --workspace <workspace-id> \ --replace '/services/identity/config/selfservice/flows/registration/enable_legacy_one_step=true'
Make sure to replace <project-id>
and <workspace-id>
with your actual project and workspace IDs. This command sets the enable_legacy_one_step
configuration to true
, which effectively disables the two-step registration and reverts to the legacy one-step registration process. Note that you'll need to have the Ory CLI installed and properly configured to use this command. [Two-step registration](https://www.ory.sh/docs/identities/sign-in/two-step-registration) provides more information about the registration process in Ory Kratos. Remember that disabling the two-step registration might affect the user experience, especially if you have multiple authentication strategies enabled. The one-step registration will prompt for identity traits for each authentication strategy, which might lead to a less streamlined experience compared to the two-step process.narrow-hospital-35452
11/02/2024, 12:39 PMbrief-egg-61061
11/02/2024, 12:39 PMbrief-egg-61061
11/02/2024, 12:40 PMkratos.yaml
or config.yaml
. 2. Add or modify the following configuration in your file: yaml selfservice: flows: registration: enable_legacy_one_step: true
This configuration sets enable_legacy_one_step
to true
, which will disable the two-step registration and enable the legacy one-step registration process. Make sure to place this configuration under the correct hierarchy in your YAML file. The exact location might depend on your existing configuration structure. After making these changes, save the file and restart your Ory Kratos instance for the changes to take effect. It's important to note that while this method is not explicitly mentioned in the provided knowledge sources for self-hosted Kratos, it follows the same principle as the CLI command mentioned in the [Two-step registration](https://www.ory.sh/docs/identities/sign-in/two-step-registration) documentation. The configuration file approach is a common method for setting up self-hosted instances of Ory products. Remember that reverting to the one-step registration might affect the user experience, especially if you have multiple authentication strategies enabled, as it will prompt for identity traits for each strategy in a single step.narrow-hospital-35452
11/02/2024, 1:06 PMbrief-egg-61061
11/02/2024, 1:06 PMbrief-egg-61061
11/02/2024, 1:06 PMrequest_config.auth
configuration supports two possible types: 1. api_key
2. basic_auth
These authentication types are used to secure the HTTP-based SMS delivery option. Here's a brief explanation of each: 1. `api_key`: This type is used for authentication via an API Key. 2. `basic_auth`: This type is used for authentication via Basic Authentication. You can find this information in the [Authentication and authorization](https://www.ory.sh/docs/kratos/self-hosted/email-http#authentication-and-authorization) section of the Ory documentation. Here's an example of how you might configure each type: For `api_key`: yaml courier: channels: - id: sms type: http request_config: auth: type: api_key config: name: key-name value: key-value in: header # or cookie
For `basic_auth`: yaml courier: channels: - id: sms type: http request_config: auth: type: basic_auth config: user: My-User password: My-Pass-Value
Remember to choose the appropriate authentication type based on the requirements of your SMS service provider.