I am working on creating a group of web pages to implement a standard set of code I can drop into any new projects for Membership Registration, Login, and Admin of Users and Roles. **I have 3 tables: ****WebUser - 1..M --> WebUserRole <-- N..1 - WebRole ** and I have standard web pages for login.aspx, register.aspx, forgotpassword.aspx, manageusers.aspx and manageroles.aspx.
ASSUMPTIONS: Db is Sql 2K, Authentication is "Forms", Clients will store Authenication tickets and data will be encrypted, all three tables have primary identity keys ( WebUserID, WebUserRoleID, WebRoleID ) and WebUserRole table is just a join table.
My questions are:
-
Is anyone doing something like this already? If so, do you have code to look at?
-
Do you encrypt and decrypt the UserName and Password? If so, where are you doing it? In Sql Server 2K or in the LLBLGen objects?
-
Do you create salt and hashes for this? If so, do you store it in your WebUser table?
-
Are you creating generic principal and identity objects and using IsInRoles for page authorization?
-
Do you create a separate stored proc or some other method to do the initial UserName and Password validation?
Thanks for all your help!