Web API Authentication in ASP.NET 5

后端 未结 2 1399
没有蜡笔的小新
没有蜡笔的小新 2020-12-14 07:53

I\'ve been studying ASP.NET 5 for some time now and there is something I\'m yet confused. To implement authentication in Web API 2 what I used to do was basically use the OW

2条回答
  •  星月不相逢
    2020-12-14 08:43

    I ran into the exact same issue when trying to use the OWIN OAuth Authorization Server middleware in ASP.NET 5, so I decided to port the code myself. You can find the source at this GitHub repo https://github.com/XacronDevelopment/oauth-aspnet or just use the NuGet packages OAuth.AspNet.AuthServer and OAuth.AspNet.Tokens. Check out the source code to see how things are wired up; the samples in the source are the same samples Microsoft created here http://bit.ly/1MOGDEJ except with ASP.NET 5 examples added.

提交回复
热议问题