Possible Duplicate:
Cross platform authentication using ASP.NET Web API
I want to create an asp.net web api with the new visual studio 11 beta. This web api will need to be accessed by different websites, desktop apps, and mobile apps. What is the best way to perform authentication/authorization for my web api. I need to make sure that all the apps calling the api are authenticated. Is there an easy way to do this with the new web api?
I've done it by using a message handler to check for the auth header in the request and set up the identity so the [Authorize] attribute can do it's thing.
I've written a blog post on the subject..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With