Exclude some actions from Authorize in ASP.net MVC

Viewed 10698

There is an authorize attribute on top of my contoller that means it contains all of my actions. I want to exclude some actions from this attribute (these actions be available by anonymous users). Is it possible?

[Authorize]
public class TestController : Controller
{
   public ActionResult Index()
   {
     ...
   }
   ...

   //available by anonymous
   public ActionResult Test()
   {
     ...
   }
}
3 Answers
Related