Reputation: 1344
Background: - Using Web API in a Web Forms app with ASP.Net 4.0/C# using VS 2012 - Some pages will use Web API calls with JQuery, others will use web forms postbacks
Need to do the following:
What I'm not clear about is:
Upvotes: 3
Views: 1788
Reputation: 5158
I have used Thinktecture IdentityModel from http://thinktecture.github.io/. It is a great library which includes token generation.
This is the original article I referred to when I was implementing it
http://ben.onfabrik.com/posts/dog-fooding-our-api-authentication
I also did some write up on my blog if you are interested
http://sunilrav.com/post/Enable-Basic-Authetication-in-Aspnet-webapi-using-ThinktectureIdentityModel
http://sunilrav.com/post/Enable-CORS-in-Aspnet-webapi-using-ThinktectureIdentityModel
This post helped me when I was doing my research
Upvotes: 1