ASP.NET MVC: AllowAnonymous action filter
AllowAnonymous attribute is used to skip authorization enforced by Authorize attribute. Action method marked with AllowAnonymous will be always accessible by all users including anonymous users.
Attribute Usage: Controller & method
Sample Code:
[AllowAnonymous]
public ActionResult Login()
{
return View();
}
Check out ASP.NET MVC: Action filter series post to read about other available action filters.
You can follow me on twitter for latest link and update on ASP.NET & MVC.