ASP.NET Custom Membership Provider

Associate
Joined
1 May 2006
Posts
810
Location
Bristol, UK
Evening all.

I'm trying to create my own Membership Provider which inherits from the Providerbase class (not the MembershipProvider class). I also want to create my own MembershipUser object.

How would I go about doing this? I've created my own MembershipProvider which inherits from the MembershipProvider class, but I'm trying to make something totally custom and I've never tried making a custom MembershipUser object before so I've no idea where to begin.

Also, will this have implications on other classes such as FormsAuthentication? Will I have to make my own custom versions of these too? Just thinking if some of the methods I use are named differently or I don't include some that are in the standard provider it could cause problems. I don't mind if I have to create a complete set of custom classes. I'd rather have my own fully customised source code that I can modify depending on what project I'm working on than have to use and 'bolt on' to the Microsoft one.

Thanks in advance all.
Freakish_05
 
First up can I ask what your trying to do? If your extending the ProviderBase abstract class you'll have to override the base method's to add functionality, so you've really got no choice for the method naming there. If you don't need to add stuff to the MembershipUser I won't worry about changing it.

akakjs
 
Hi akakjs.

What I'm trying to do (and I know this sounds crazy given that Microsoft has already done it all for me) is make my own set of authentication classes so that when I work on new projects I can edit the source directly to add or remove functionality.

Take the membershipuser object for example. I have absolutely no use for the 'comment' property, so in my class, I wouldn't include it, unless the project that I was working on required it. At the moment (and please correct me if I'm wrong here) if I create a membershipuser object, it will be expecting a 'comment' property and I don't have a comment field in my database and things could get messy.

I hope thats understandable. MSN is in trust if you need clarification.

Cheers mate,
Freakish_05
 
Back
Top Bottom