http://schotime.net/...ith-aspnet-mvc/
Y otro de msdn para autorizar directamente con el atributo [Authorize]:
public class HomeController : Controller { public ActionResult Index() { ViewData["Message"] = "Welcome to ASP.NET MVC!"; return View(); } public ActionResult About() { return View(); } [Authorize] public ActionResult AuthenticatedUsers() { return View(); } [Authorize(Roles = "Admin, Super User")] public ActionResult AdministratorsOnly() { return View(); } [Authorize(Users = "Betty, Johnny")] public ActionResult SpecificUserOnly() { return View(); } }
http://msdn.microsof...eattribute.aspx