CodePlexProject Hosting for Open Source Software
How can i use the MVC [Authorize] Attribute with WebApi
You cannot use MVC's [Authorize] attribute directly.
However, it is not hard to have a similar behavior with operation handlers.
Take a look at:
* https://github.com/pmhsfelix/WcfWebApi.Preview5.Explorations/blob/master/WcfWebApi.Preview5.Explorations.SelfHostedDemos/BasicAuthenticationWithHttpsDemo.cs (note
the ".CheckAuthorization();" on the configuration)
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.