user2966445
user2966445

Reputation: 1344

Web API - Authentication Advice

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

Answers (1)

sunil
sunil

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

REST service authentication

Upvotes: 1

Related Questions