alert-actor-35830
06/28/2022, 8:40 PMalert-actor-35830
06/28/2022, 8:54 PMloud-spoon-23770
06/28/2022, 9:08 PMalert-actor-35830
06/29/2022, 8:40 PMloud-spoon-23770
06/29/2022, 8:45 PM{
"$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": {
"emails": {
"type": "array",
"title": "Emails",
"items": {
"type": "string",
"format": "email",
"minLength": 3,
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
},
"totp": {
"account_name": true
}
},
"verification": {
"via": "email"
},
"recovery": {
"via": "email"
}
}
}
}
},
"required": [
"emails"
],
"additionalProperties": false
}
}
}
alert-actor-35830
06/29/2022, 8:51 PMmagnificent-energy-493
alert-actor-35830
07/11/2022, 10:01 AMalert-actor-35830
07/11/2022, 10:05 AMmagnificent-energy-493
what is an identifier (what I would traditionally think of as a username?).Ory Kratos currently supports two kinds of identifiers, `password`and
oidc
password is your (username, email, ...) + password credential combination
and oidc is some kind of oidc credential. its possible to add other identifiers down the line (like biometrics or fido2 which you can use as second factor now)
in the below example the
"identity": {
"id": "34ab316c-fef1-4ab2-bb6f-f29992e3d90e",
part is the unique identifier for kratos
{
"id": "286ba56b-9a80-4bd5-a3ab-bf8c7ecc980c",
"active": true,
"expires_at": "2022-07-14T10:42:57.654562Z",
"authenticated_at": "2022-07-11T10:42:57.654562Z",
"authenticator_assurance_level": "aal1",
"authentication_methods": [
{
"method": "password",
"aal": "aal1",
"completed_at": "2022-07-11T10:42:57.654554495Z"
}
],
"issued_at": "2022-07-11T10:42:57.654562Z",
"identity": {
"id": "34ab316c-fef1-4ab2-bb6f-f29992e3d90e",
"schema_id": "1590889099b35292ed1dc97f6adfe146f3b99e1510a99992632a8876ba112ce862c12fd362e3b8cf44c4853381128e02209ea4f4502ebe8f6ecb97179f854496",
"schema_url": "<https://crazy-ellis-0i15g80nvt.projects.oryapis.com/schemas/MTU5MDg4OTA5OWIzNTI5MmVkMWRjOTdmNmFkZmUxNDZmM2I5OWUxNTEwYTk5OTkyNjMyYTg4NzZiYTExMmNlODYyYzEyZmQzNjJlM2I4Y2Y0NGM0ODUzMzgxMTI4ZTAyMjA5ZWE0ZjQ1MDJlYmU4ZjZlY2I5NzE3OWY4NTQ0OTY>",
"state": "active",
"state_changed_at": "2022-06-28T19:24:10.775954Z",
"traits": {..}
}