yurah9001
yurah9001
CC#
Created by yurah9001 on 2/20/2024 in #help
How to pass Blazor server Windows Authentication to call another Web API?
I have a Blazor server app with Windows Auth (Negotiate), I am correctly authenticated, got user claims. However I am unable to set up setup HttpClient(Factory) to call another API using provided Windows credentials. I think WebAPI request should be authenticated using Negotiate header but I am unable to set it up or pass it through to HttpClient.
1 replies
CC#
Created by yurah9001 on 1/13/2023 in #help
❔ Asp.net API - the most reasonable in memory storage implementation
Hey guys, if you had to write asp.net web api with in memory storage - some list with items, what would be the correct way to do it? Would it be some static list or list inside a controller, or more correct way would be to register singleton to dependency container maybe also static with some locking mechanism or concurent dictionary or am I overthinking it? Searching for the correct and clean solution.
25 replies