ASP.NET

Control access to your webpages with the AuthorizeAttribute

ASP.NET MVC4 AuthorizeAttribute throughout app

If you’re developing a website where there should only be a couple of publicly accessible pages in ASP.NET MVC, then at first you may try to go through all your controllers decorating them with the AuthorizeAttribute. Although you will still want to allow anonymous users access to the login page otherwise anonymous users can never …

ASP.NET MVC4 AuthorizeAttribute throughout app Read More »