1.OAuth密码模式 2.在VS中创建WebAPI项目 在nuget中安装: Microsoft.AspNet.WebApi.Owin Microsoft.Owin.Host.SystemWeb 这两个类库并添加Owin启动类Startup using System; using System.Threading.Tasks; using Microsoft.Owin; using Owin; using Microsoft.Owin.Security.OAuth; [assembly: Ow…
http://www.asp.net/aspnet/overview/owin-and-katana/owin-oauth-20-authorization-server The assumption that users will log in by entering a user name and password that they have registered in your own application is no longer valid. The web has become…