If I'm trying to run kratos.exe on windows and int...
# ory-selfhosting
c
If I'm trying to run kratos.exe on windows and interact with it using asp.net core. Should I be using Ory.Kratos.Client or Ory.Client nuget in the asp.net core site?
s
both should work, but config differs a bit
ory kratos client has less presets though
ory client has all clients for all projects
c
Thanks for the reply @steep-lamp-91158! Using kratos.exe 1.0.0 and Or.Client (1.1.41) I'm getting json deserialization issues trying to implement a basic page login. For instance, this piece of middleware code:
var session = await ory.ToSessionAsync(cookie: ctx.Request.Headers.Cookie, cancellationToken: ctx.RequestAborted);
The above line returns errors like: Failed to deserialize ``{"name":"identifier","type":"text","value":"","required":true,"disabled":false,"node_type":"input"}` into ClientUiNodeAnchorAttributes: Newtonsoft.Json.JsonSerializationException: Required property 'href' not found in JSON. Path '', line 1, position 99.` It makes me wonder if I'm simply using incompatible client libraries with the server. I could also be doing something very dumb 😉
s
hm could also be a bug in the client, the code is auto-generated and that specific API is a bit tricky
maybe try to match the raw response with the client code, and see if there is a fundamental issue
👍 1