Tuesday, April 24, 2012

ASP.NET MVC Authentication - Global Authentication and Allow Anonymous

http://weblogs.asp.net/jgalloway/archive/2012/04/18/asp-net-mvc-authentication-global-authentication-and-allow-anonymous.aspx#.T5VzxmwymMU.delicious

 
Reminder: Don't use web.config to restrict access, use [Authorize]
 
    [AllowAnonymous]
    public ActionResult Login()

 public class HomeController : AuthorizedController

No comments:

Post a Comment