How to authenticate WPF Client request to ASP .NET WebAPI 2
问题 I just created an ASP .NET MVC 5 Web API project and added the Entity Framework model and other things to get it working with ASP. NET Identity. Now I need to create a simple authenticated request to the standard method of that API out there from the WPF Client app. ASP .NET MVC 5 Web API code [Authorize] [RoutePrefix("api/Account")] public class AccountController : ApiController // GET api/Account/UserInfo [HostAuthentication(DefaultAuthenticationTypes.ExternalBearer)] [Route("UserInfo")]