This message was deleted.
# general
m
This message was deleted.
h
you can bring your own UI, so yes, certainly, this is possible!
b
I'm confused - this is about the backend doing this verification during login. the ui would have to comply with it, but not be solely responsible
h
I see, if you can express national-id-card as a regex it is possible to do server-side verification in kratos!
b
I know that ory kratos can use a schema, but I'm not sure how this schema is related to login required "fields". is that documented? how to make a way to enforce this id-card (it's an example, it could be the association member number) is required during login
h
Hm, not sure if I understand, what do you mean with: “login required fields”? Fields you need to set when you sign in besides your email?
b
imagine I'm using email and password as the authentication data that the user needs to provide to authenticate. This is because we have an user in the database with matching email and password, and we will verify it, right? Well, now add to that data the user's association member id number, for example. So now the user needs to provide email,password,member-id-number to authenticate, and we will verify all those match with the DB.
It could be that the user also needs to provide some other data that we will match against the database, like his birthdate or something like that.
h
That’s not supported out of the box unfortunately
You can probably do it with a web hook though
b
can webhooks be used as part of the login authentication, so that the webhook needs to return status 200 to continue?
mm maybe this can be implemented using multiple fields as an identifier, like here but with two different fields? https://www.ory.sh/docs/kratos/concepts/identity-schema#identifier-for-username-and-password-flows