aboutsummaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2021-08-06 15:55:35 +0200
committerJordan Bracco <href@random.sh>2021-08-06 15:55:35 +0200
commitfd639a6f74d3a2c4cdcc18f5191c101cd41f289b (patch)
tree70697bb7c165197eefdeb60f42fbb71045c8ca59 /priv
parentNew rebar app (diff)
Kratos flows
Diffstat (limited to 'priv')
-rw-r--r--priv/kratos/identity.schema.json49
1 files changed, 49 insertions, 0 deletions
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"}
+ }
+ }
+
+ }
+ }
+ }
+}
+