Welcome to Atlanta .NET Regular Guys Sign in | Join | Help

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.

CodePlex banner 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:

  1. 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!
  2. I've got familiar and easy to use list management tools to maintain my users and my roles
  3. 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.

Published 10-09-2007 05:54 by Matt Ranlett
Filed Under: , , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

xavier said:

Great tools, but where is the membership login page ? 404 error
September 25, 2007 7:59 AM
 

Harold Gray said:

Ditto - Got everythig working except the login page. Also, the downloadable WSP installs and works. Compiling the source does not work - after the wsp is created without error and installed. Activiation doesn't happen automatically. If you try it manually you get an error saying somethimg must be activated prior to activating your tool.
October 3, 2007 1:30 AM
 

Harold Gray said:

Matt,

I finallly got everything working. Developed a login page that I uploaded to Codeplex.

Thanks for a great piece of work.
October 16, 2007 7:59 AM
 

Neel said:

Matt,

Great tool

I was wondering, using the provider, if i can connect to a sql server on the network and use it to save the users

I have around 12000 user accounts, which are already in use, i want to use the same userid and password for validation using forms auth.

Help me out asap

Neel
October 29, 2007 7:25 AM
 

zxevil164 said:

4xqExM Cool, bro!
March 19, 2008 2:28 AM
 

zxevil172 said:

tstC5y      Were a U from?
March 28, 2008 2:20 AM
 

cooltunesi2 said:

beyonce , beyonce knowles , beyonce lyrics , beyonce upgrade u lyrics , beyonce and jay z , beyonce world , beyonce falls , beyonce top falls off off stage , beyonce irreplaceable lyrics , beyonce shakira , beyonce and shakira new music video ,
<a href="http://cooltunesi.yourfreehosting.net/?">beyonce">http://cooltunesi.yourfreehosting.net/?">beyonce ringtones</a> beyonce lyrics , beyonce songs , beyonce videos , beyonceworld.net , beyonce listen lyrics , beyonce irreplaceable , beyonce listen , beyonce irreplaceable lyrics , beyonce and tina turner , beyonce flaws and all lyrics , [url=http://cooltunesi.yourfreehosting.net/?]beyonce ringtones[/url]
April 10, 2008 7:55 AM
 

Memmorium said:

     Good idea!
P.S. A U realy girl?
April 11, 2008 7:34 AM
 

mypicst said:

April 12, 2008 4:26 AM
 

mypicst said:

April 12, 2008 4:58 AM
 

antivirkaspersky7 said:

U need antivirus?
April 25, 2008 5:14 AM
 

Вечерний макияж глаз фото said:

I not understend what U want
May 15, 2008 1:37 AM
 

ringtones download free said:

free sprint ringtone downloads, mosquito ringtone, free ringtone, hotlink caller ringtone, cingular ringtones, download free ringtones, [url=http://groups.google.com/group/ringtones-download-free/web/download-free-ringtones]ringtones download free[/url]
download ringtones
ericsson ringtones
free nokia ringtones
free ringtones
mobile phone ringtones
mobile ringtones
motorola ringtones
polyphonic ringtones
ringtones nokia
sagem ringtones
samsung ringtones
ringtones
ringtones free
ringtones for iphone
ringtones iphone
ringtones free download
ringtone maker
ringtones 2.1
<a href="http://groups.google.com/group/ringtones-download-free/web/download-free-ringtones">ringtones download free</a>
ringtones mp3
ringtones download
ringtones для iphone
ringtones
free ringtones
maxis hotlink caller ringtone
free ringtone downloads
May 16, 2008 12:09 AM
 

секс said:

давайте займемся этим!
May 16, 2008 2:21 AM
 

crack said:

my girl crazy, man!
May 26, 2008 4:05 PM
 

Spoupledult said:

[url=http://broalmanone.com]broalmanone.com[/url]
June 16, 2008 7:52 AM

What do you think?

(required) 
(optional)
(required) 

About Matt Ranlett

One of the two original Atlanta .NET Regular Guys, Matt fills his free time by helping to run several Atlanta area user groups, the Atlanta Code Camps, and works as one of the two INETA co-Vice Presidents of Technology
SkinName:iroha_Blog2
Powered by Community Server, by Telligent Systems