This message was deleted.
# general
m
This message was deleted.
l
hello, you have some documentation here https://www.ory.sh/docs/guides/customize-identity-schema
if you are self hosting, the identity schemas (you can have multiples) are defined in the
kratos.yml
file for example
Copy code
identity:
  default_schema_id: default
  schemas:
    - id: default
      url: file:///etc/config/kratos/identity.schema.json
m
Thanks Dejan 🙂 to add to that, this would be a schema with email & password:
Copy code
{
  "$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
              },
              "webauthn": {
                "identifier": true
              },
              "totp": {
                "account_name": true
              }
            },
            "recovery": {
              "via": "email"
            },
            "verification": {
              "via": "email"
            }
          },
          "maxLength": 320
        }
      },
      "required": [
        "email"
      ],
      "additionalProperties": false
    }
  }
}
you can also find it here: https://github.com/ory/kratos/blob/master/contrib/quickstart/kratos/email-password/identity.schema.json
👍 1