Thursday, October 20, 2011

Implementing an Authorization Attribute for WCF Web API

Implementing an Authorization Attribute for WCF Web API


Implementing an Authorization Attribute for WCF Web API

Posted: 19 Oct 2011 10:38 PM PDT

If you're not familiar with WCF Web API , it's a framework with nice HTTP abstractions used to expose simple HTTP services over the web. It's focus is targeted at applications that provide HTTP services for various clients such as mobile devices, browsers, desktop applications. In some ways, it's similar to ASP.NET MVC as it was developed with testability and extensibility in mind. There are some concepts that are similar to ASP.NET MVC, but with a twist. For example, where ASP.NET MVC has filters, WCF has operation handlers. One question that comes up often with Web API is how do you authenticate requests? Well, you run Web API on ASP.NET (Web API also supports a self-host model), one approach you could take is to write an operation handler...(read more)

No comments:

Post a Comment