swift-battery-54395
09/13/2024, 12:37 PMbland-eye-99092
09/13/2024, 2:02 PMswift-battery-54395
09/15/2024, 6:17 PMlocal claims = {
email_verified: true,
} + std.extVar('claims');
{
identity: {
traits: {
email: claims.email,
name: {
first: claims.given_name,
last: claims.family_name,
},
},
},
}
and identity schema
{
"$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": "email",
"minLength": 6,
"ory.sh/kratos": {
"credentials": {
"password": {
"identifier": true
}
}
}
}
},
"required": [
"email"
],
"additionalProperties": false
}
}
}
cold-scientist-93808
09/30/2024, 11:22 AMcold-scientist-93808
09/30/2024, 2:19 PMbland-eye-99092
10/04/2024, 3:14 PMname: {
first: claims.given_name,
last: claims.family_name,
},
Add them or remove them from the data mapping.