flat-rose-25983
05/16/2023, 9:04 AM{
"$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,
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
}
},
"verification": {
"via": "email"
},
"recovery": {
"via": "email"
}
}
},
"name": {
"type": "string",
"title": "Name"
},
"firstVisit": {
"type": "boolean",
"title": "firstVisit"
},
"roles": {
"type": "array",
"readOnly": true,
"accessControl": {
"write": [
"kratos_admin"
]
},
"items": {
"type": "object",
"properties": {
"organizationId": {
"type": "string"
},
"role": {
"type": "string"
}
},
"additionalProperties": true
}
}
},
"required": [
"email"
],
"additionalProperties": true
}
}
}
blue-caravan-99316
05/16/2023, 3:36 PMflat-rose-25983
05/16/2023, 3:48 PMblue-caravan-99316
05/16/2023, 3:50 PMmetadata_admin
properties aren't sent. I have a todo here to push a PR that mentions it in the docs.flat-rose-25983
05/16/2023, 3:54 PMregistration:
lifespan: 10m
ui_url: <http://127.0.0.1:4455/registration>
after:
password:
hooks:
- hook: session
- hook: show_verification_ui
- hook: web_hook
config:
url: <http://localhost:8080/post>
method: POST
body: "{{ 'function(ctx) { payload: std.manifestJsonEx({ email: ctx.identity.verifiable_addresses[0].value, email_prop: \\'{email}\\' }, \\' \\'), payload_encoding: \\'string\\' }' | b64enc }}"
blue-caravan-99316
05/16/2023, 3:57 PMflat-rose-25983
05/16/2023, 3:59 PMflat-rose-25983
05/16/2023, 4:00 PMblue-caravan-99316
05/16/2023, 6:22 PMhook: web_hook # To use webhooks, you must set 'hook' to 'web_hook'
config:
url: <https://test.hook.site.sh/before_login_hook> # Webhook URL.
method: POST # HTTP method used to send request to the webhook URL.
body: <base64://ENCODED_JSONNET> # Encoded Jsonnet template used to render payload.
blue-caravan-99316
05/16/2023, 6:22 PMflat-rose-25983
05/17/2023, 12:46 PM{
"id": "35027eeb-44fe-400d-a468-df89f4a09ca0",
"error": {
"code": 500,
"status": "Internal Server Error",
"message": "POST <http://localhost:8080/post> giving up after 3 attempt(s): Post \"<http://localhost:8080/post>\": dial tcp 127.0.0.1:8080: connect: connection refused"
},
"created_at": "2023-05-17T12:45:51.357753Z",
"updated_at": "2023-05-17T12:45:51.357753Z"
}