Hello to all! I'm currently working on the implementation of SAML in Kratos and I'm encountering a small problem. I don't understand the use of this function at all:
https://github.com/ovh/kratos/blob/saml/persistence/sql/persister_identity.go#L105.
I'm trying to implement SAML in the same way as it already exists for OIDC. So I use this method when the SAML assertion received is about a user not yet registered to register him in the database. So, I use this method with CredentialsType = "saml". Except that this method returns an error but I don't understand.
This method requests the database when the user I want to create is not in it. I don't understand it.
Do I need to add something to the database that explains that a user can connect with SAML?
If someone has any idea, it would help me a lot !
Thanks :)