This project is a stand-along project. In order to run it, you need to install ASP.NET MVC 1.0 framework, VS 2008 SP1, and SQL Server Express (or Server, but the the dabase is contained in the "App_Data" folder.

To achieve web site security, this project uses custom membership and role providers. The roles are abstracted by another layer called "Context" (or Features) where the roles are tied to.

There is also a demonstration of using custom authorization attribute, AllowRegistrationAttribute class. This class derives from the "AuthorizeAttribute" and implements and overrides the "AuthorizeCore" method.

The user/roles/context information is plumbed through the class called "UserRolesContext" class contained in the the Models folder. Also notice the *.Test project where this layer is tested (integration kind of testing since we are pulling database records).

Last edited Jan 13, 2010 at 1:24 PM by baskint, version 2

Comments

No comments yet.