I am implementing a Custom Authorize Attribute in MVC3. I am storing page level permissions in the database, and would like to pass my authorize attribute a Page ID. Something of the sort:
[CustomAuthorize(PageID = 1)]
public ActionResult About()
{
return View();
}
How do I implement the Authorize Attribute, as the AuthorizeCore only takes one argument in the override?
public class CustomAuthorizeAttribute : AuthorizeAttribute
{
protected override bool AuthorizeCore(HttpContextBase httpContext)
{
}
}