swift-chef-97535
08/05/2022, 10:35 AMchilly-sandwich-92462
08/05/2022, 11:02 AMidentity:
default_schema_id: cat
schemas:
- id: cat
url: file:///etc/config/kratos/common/identity.cat.schema.json
- id: dog
url: file:///etc/config/kratos/common/identity.dog.schema.json
- id: person
url: file:///etc/config/kratos/common/identity.person.schema.json
With that config, when user starts a self-service registration flow, Kratos always uses cat
schema, because it is defined in config: default_schema_id: cat
.
If user successfully registers, an identity with schema_id: "cat"
is created.
What I need, is to be able to choose which schema to use when starting a self-service flow, so the user could register as cat, dog or a person, each possibly having a different set of fields to fill during the registration.bland-eye-99092
08/05/2022, 11:34 AMchilly-sandwich-92462
08/05/2022, 12:28 PM