rapid-energy-67512
01/08/2024, 8:48 PMcode: {
identifier: true,
via: "email",
},
which I did, I even copied the whole identity schema from here but I'm still getting:
The configuration contains values or keys which are invalid:
properties.traits.properties.email.ory\.sh/kratos.credentials: map[code:map[identifier:true via:email] password:map[identifier:true]]
^-- additionalProperties "code" not allowed
This with oryd/kratos:v1.0.0
. Is it me or Kratos, or the docs?rapid-energy-67512
01/08/2024, 8:52 PMkratos:
config:
dsn: ${dsn}
serve:
public:
base_url: <https://kratos>.${fqdn}/
cors:
enabled: true
admin:
base_url: <http://kratos:4434/>
selfservice:
default_browser_return_url: <https://kratosui>.${fqdn}/
allowed_return_urls:
- <https://kratosui>.${fqdn}/
- <http://localhost:59999/web/auth.html>
methods:
password:
enabled: true
code:
enabled: true
flows:
error:
ui_url: <https://kratosui>.${fqdn}/error
settings:
ui_url: <https://kratosui>.${fqdn}/settings
privileged_session_max_age: 15m
recovery:
enabled: true
ui_url: <https://kratosui>.${fqdn}/recovery
verification:
enabled: true
ui_url: <https://kratosui>.${fqdn}/verification
after:
default_browser_return_url: <https://kratosui>.${fqdn}/
logout:
after:
default_browser_return_url: <https://kratosui>.${fqdn}/login
login:
ui_url: <https://kratosui>.${fqdn}/login
lifespan: 10m
registration:
lifespan: 10m
ui_url: <https://kratosui>.${fqdn}/registration
after:
password:
hooks:
- hook: session
log:
level: debug
format: text
leak_sensitive_values: true
secrets:
cookie:
- "${kratos_secrets_cookie}"
cipher:
- "${kratos_secrets_cipher}"
ciphers:
algorithm: xchacha20-poly1305
hashers:
algorithm: bcrypt
bcrypt:
cost: 8
identity:
default_schema_id: "default"
schemas:
- id: default
url: file:///etc/config/identity.default.schema.json
courier:
template_override_path: /etc/config/templates
smtp:
connection_uri: "${kratos_smtp_connection_uri}"
from_name: "${kratos_smtp_from_name}"
from_address: "${kratos_smtp_from_address}"
cookies:
domain: "${fqdn}"
path: /
same_site: Lax
automigration:
enabled: true
identitySchemas:
"identity.default.schema.json": |
{
"$id": "<https://schemas.ory.sh/presets/kratos/identity.email.schema.json>",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"title": "E-Mail",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
},
"code": {
"identifier": true,
"via": "email"
}
},
"recovery": {
"via": "email"
},
"verification": {
"via": "email"
}
},
"maxLength": 320
}
},
"required": ["email"],
"additionalProperties": false
}
}
}
refined-kangaroo-48640
01/08/2024, 10:12 PMbillowy-mouse-4611
01/09/2024, 6:59 AM