Hi. I am new to Ory and I am going to use self-hos...
# ory-selfhosting
b
Hi. I am new to Ory and I am going to use self-hosted Kratos with .NET backend. Can somebody please explain me, how for example registration or login will work in my .NET app? I suppose that I am going Ory.Kratos.Client package, but I have some mental barriers with the way how it is going to work. (For the start I am using email and password identity schema) Thank you for every help!
n
there is a .net quickstart which is likely a good initial resource - https://www.ory.sh/docs/getting-started/integrate-auth/dotnet
b
Thank you for your response! I was already seeing this in the documentation, however, I am trying to make a pure backend solution (just with some easy frontend forms) with swagger to see and test APIs (so those APIs will somehow work for login and registration).
Now I am starting to get familiar with createIdentity method but I have 2 issues with it. First - creation is successful, however I am getting null as a return value from this method and second - when I am listing created identities, they miss email trait although I am sending it to the method and I can see it in "recoveryAddresses" and also "verifiableAddresses". This is how I am invoking this method: "var credentials = new KratosIdentityWithCredentials(password: new KratosIdentityWithCredentialsPassword(config: new KratosIdentityWithCredentialsPasswordConfig(password: request.Password))); UserTraits traitsObject = new() { email = request.Email }; var kratosCreateIdentityBody = new KratosCreateIdentityBody(schemaId: "default", traits: traitsObject, credentials: credentials);" where UserTraits is class with just "email" property in it. Any ideas what am I doing wrong?