Skip to content

Instantly share code, notes, and snippets.

@lucassimon
Created June 8, 2021 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucassimon/f1febb65355000f8c0bdfdb16ae0b4e3 to your computer and use it in GitHub Desktop.
Save lucassimon/f1febb65355000f8c0bdfdb16ae0b4e3 to your computer and use it in GitHub Desktop.
identity:
default_schema_url: file:///path/to/default-identity.schema.json
{
"$id": "https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"title": "E-Mail",
"minLength": 3,
"ory.sh/kratos": {
"credentials": {
"password": {
"identifier": true
}
},
"verification": {
"via": "email"
},
"recovery": {
"via": "email"
}
}
},
},
"required": [
"email",
],
"additionalProperties": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment