Fruity Mike
Explore posts from serverslib for asp.net core dependency issues
Hey I want to move out and generalize certain api configurations, middlewares, etc.
One of these would be json options:
I have written extension method for it:
Should be working, but 'JsonOptions' definition is missing and I'm unable to figure out/find necessary nuget. So far I'm using these packages:
Any tips would be appreciated.
P.S. using .net 8
27 replies
File logs and docker
Hey,
I have a web api which uses serilog to log into files. Whenever it runs in a container those logs are also contained in the container. As far as I understand after container stops running logs are lost. I'm aware of log driver but haven't read enough yet. So I basically want to retrieve those files/logs. Maybe anyone could point me to a "good practice" or a solution for this kind of problem?
4 replies
Default mapping logic from jwt payload to claims
Hey,
I have asp.net core web api with jwt authentication. It's fairly "default", something you would find on most tutorials.
If I would generate token it would have payload:
So whenever token is successfully validated I'm expecting to have two claims with same keys as types and values. But for some reason I'm getting the following:
Because of this I have a question. Is there a flag of some sort to disable this key to type override or I have to override this override?
2 replies