Web API Basic Auth inside an MVC app with Identity Auth
问题 So I have a C# MVC app using Identity for its authentication. I now have a need to expose a few things via Web API to some of my clients. Instead of building a separate app, project, deployment... I've simply added an API Controller to my existing project. To keep things simple for my clients, I've decided to use Basic Auth , opting rather to force my clients into using SSL connections to my API. I've followed this very useful tutorial to implement the Basic Auth in my API: http://www