dry-magazine-90630
05/06/2024, 4:09 PMchilly-king-10285
05/06/2024, 4:09 PMchilly-king-10285
05/06/2024, 4:09 PMory auth
command is used to create a new Ory Network account or sign in to an existing account. You can specify the path to the Ory Network configuration file using the -c
or --config
flag. Here is an example of how to use it: bash ory auth --config /path/to/config/file
The configuration file can be in JSON, YAML, or TOML format. When starting Kratos, you specify the path to the config file via the --config
flag. It's recommended to name your configuration file kratos.(json|yml|yaml|toml)
. This will enable automatic validation and code completion in VSCode, JetBrains' IDEs, and other tools that utilize JSON schemas. Please note that environmental variables take precedence over config file values. Nested paths get mapped to config values by putting an underscore _
between every level. For more information, you can refer to the [Ory documentation](https://www.ory.sh/docs/cli/ory-auth) and the [Ory Kratos configuration guide](https://www.ory.sh/docs/kratos/configuring).dry-magazine-90630
05/06/2024, 4:10 PMchilly-king-10285
05/06/2024, 4:10 PMchilly-king-10285
05/06/2024, 4:11 PMyaml some_config: value oauth2: require_client_auth: true social_sign_in: providers: - provider: google
In JSON format: json { "some_config": "value" }
You can combine several configuration files by defining the -c
or --config
flag multiple times when calling the CLI command. The files are then merged in order, with later files overwriting values from earlier ones. For more information, you can refer to the [Ory documentation](https://www.ory.sh/docs/ecosystem/configuring).