Impersonation Middleware in an Asp.Net Core Intranet app for Windows-Identity
问题 Before I explain my problem, here's our scenario: Scenario We write software only for our intranet Windows users (currently managed by local Active Directory but in future it is possible we migrate to Azure-AD). Up to yet there is an old monolithic Winforms app which communicates directly with the database using datasets. All requests to the database happens with WindowsIdentity (end-user context), so the database knows the end user. For future development we want to use a Web API for