Custom Authorization Filter returns 200 OK during authorization failure in Web API / MVC

This is a very specific and a quick post. In Web APIs sometimes we need to implement custom authorization filter which is extended from AuthorizeAttribute class, this is mainly useful in implementing authorization. The below code shows how to implement an admin authorization in claims based authentication using ClaimsIdentity The above code works perfectly in … Continue reading Custom Authorization Filter returns 200 OK during authorization failure in Web API / MVC

Advertisements