1

我们正在构建一个在 OWIN/Katana 中自托管的 ASP.NET Web API 2 服务。由于某些安全要求,应用程序使用基本身份验证,这导致 System.Web.Http.ApiController.RequestContext.Principal.Identity 的类型为 HttpListenerBasicIdentity。但我们需要的是 WindowsIdentity/WindowsPrincipal。最好的方法是什么?中间件?还有什么?

4

0 回答 0