From fd639a6f74d3a2c4cdcc18f5191c101cd41f289b Mon Sep 17 00:00:00 2001 From: Jordan Bracco Date: Fri, 6 Aug 2021 15:55:35 +0200 Subject: Kratos flows --- priv/kratos/identity.schema.json | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 priv/kratos/identity.schema.json (limited to 'priv') diff --git a/priv/kratos/identity.schema.json b/priv/kratos/identity.schema.json new file mode 100644 index 0000000..df47ad8 --- /dev/null +++ b/priv/kratos/identity.schema.json @@ -0,0 +1,49 @@ +{ + "$id": "https://example.com/registration.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", + "ory.sh/kratos": { + "credentials": { + "password": { + "identifier": true + } + }, + "verification": {"via": "email"}, + "recovery": {"via": "email"} + } + }, + + "username": { + "type": "string", + "title": "Username", + "ory.sh/kratos": { + "credentials": { + "password": { + "identifier": true + } + } + } + }, + + "name": { + "type": "object", + "properties": { + "first": {"type": "string", "title": "First name"}, + "last": {"type": "string", "title": "Last name"} + } + } + + } + } + } +} + -- cgit v1.2.3