Custom SharePoint List-based Membership and Roles Provider
I've finally finished (almost) with the project that has been keeping me up late at night. I want to thank Doug Ware, Brendon Schwartz, Dan Attis, and Adam Buenz for all the help they gave me over the past several months while I struggled to bring this beast to its knees.
I did some cool work so I thought I'd post it online. Look for this to be the focus of several upcoming blog posts and eventually a white paper of some sort or other.
I sought out and received permission from my employer, Intellinet, and my client, Preparis, to post this code online in its entirety.
Here is the code - http://www.codeplex.com/SPListMP
I've created a custom membership and role provider for SharePoint, which uses a SharePoint list as the backing store for users. This gives me a couple of neat benefits:
- I've got totally discrete user stores despite the fact that potentially dozens of site collections are on the same server. This means I can back up my users along with my site!
- I've got familiar and easy to use list management tools to maintain my users and my roles
- I've got the ability to do cool custom code based on my custom roles, including the ability to have custom welcome pages for each user role (ok, so this isn't restricted to my custom providers, but it's cool nonetheless)
I'm excited about this, and I plan to work on the code a lot as time goes on to get it right. The code works now, but there are elements I'm not that proud of as I was forced to make cuts to get it done and out the door.