I work on an asp.net (hybrid webforms + mvc4) application that provides videos of expert speakers to employees at various organizations. I currently use asp.net membership to authenticate users based on the company they work for (each company has a login), set roles to determine what videos they have access to, and build reports etc.
However, my company wants to begin adding login for individual users as well. Rewriting our entire membership system would essentially mean rebuilding a large portion of the site -- instead I was thinking of adding another membership provider for individuals that would map to the membership provider we already have for organizations. What I am envisioning is a the following
1)The user logs on with their username and password using the individual membership framework
2)The application maps the user to the corresponding member in the original (company) membership framework, and automatically authenticates the user for that membership (invisible to the user) where it assigns the correct roles etc based on the organizatiom the user belongs to. Essentially this second membership would be almost a layer on top of the original.
I was considering building extended tables for individual users in SQL Server that would map to the current company members that we have -- however, I would prefer to user another membership provider for the individual users that maps to the original membership provider, as this would save writing all the CRUD code, forgot password and api that comes with a membership framework. I'm just wondering whether this is possible, or what the best practice would be in this case.
ASP.NET Web-formsorASP.NET MVC3+ Razorapplication ? If you have a separate log-in and membership provider for each single organization then the first question would be "Which one of those organizations would be mapped to your Individuals ?" and it would be more helpful if you provide some codes and examples to clarify your question. - Ali