Using the .NET membership provider

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
2/28/2008 12:58:51 PM
Gravatar
Total Posts 20

Using the .NET membership provider

What do I need to do to make the site use the asp_net membership, roles, and profile providers? I tested GraffitiCMS and was able to set the providers in the web.config. Is it that simple, or will I need to make changes to the code and/or the stored procs?

I've tried nearly a dozen content management solutions, and most are missing features I need like an event calendar and a forum (or it's super slow like DNN). I'm willing to stick this one out even if the changes are pretty drastic, but I'd like to get an idea what I'm in for before I tear into the code.

2/28/2008 1:10:08 PM
Gravatar
Total Posts 18439

Re: Using the .NET membership provider

mojoPortal uses a custom MembershipProvider named mojoMembershipProvider. It talks to business objects which in turn talk to the db. This way I can support 5 dbs with one provider.

I don't know how hard it would be for you to plug in the standard asp.net membership provider. I suppose if you do it by creating the aspnet membership tables and procs in the same db. Though much of the mojjoportal code uses our SiteUser object which lives in our own mp_Users table. Perhaps a simple solution would be to add some triggers to the aspnet tables to keep the mojo table in sync.

Also mojoportal has a custom profile feature that is way more advanced than the asp.net one.

I think you would be much better off using mojoportal as is than trying to cobble in the standard asp.net providers. Maybe you have a good reason for that requirement but its not what I would do.

Hope it helps,

Joe

2/28/2008 1:13:20 PM
Gravatar
Total Posts 18439

Re: Using the .NET membership provider

Oh, forgot to link to information about our custom profile system.

Joe

2/28/2008 1:34:54 PM
Gravatar
Total Posts 20

Re: Using the .NET membership provider

I think triggers will be the perfect solution for sinking up the two sets of tables. Thank you once again!

2/6/2009 2:38:15 AM
Gravatar
Total Posts 5

Re: Using the .NET membership provider

How can I get user ID, and roles in mojo portal ?

1/5/2010 4:15:21 AM
Gravatar
Total Posts 29
Thomas N. TALESIS SARL Conseil / Expertise en développement DOTNET

Re: Using the .NET membership provider

Hi Joe,

I've seen you would not advise to implement a own provider…

but can you confirm that mojoportal uses this provider mainly through the standard asp.net membership provider interface ?

In other terms, if I just change the <membership...> section in the web.config to use a well implemented class (standard asp.net), will it be enough to have some workable mojo instances ? or are they other entry points to deal with ?

Best regards,

Thomas.

1/5/2010 1:34:21 PM
Gravatar
Total Posts 18439

Re: Using the .NET membership provider

Hi Thomas,

No, mojoPortal implements the API for the membership provider and uses that api only to the extent that the asp.net CreateUserWizard, Login, and PasswordRecovery controls bind to it. Internally our SiteUser object is much richer than the MembershipUser and we use our own objects extensively internally except for those controls I mentioned.

The MembershipProvider was introduced in .NET 2.0 and solves problems we already solved better under 1.1 .NET in the early days of mojoPortal. Because we implement the API, it is theoretically possible for other .NET apps to use the mojoMembershipProvider, but it is not feasible for mojoPortal to use the standard ASP.NET MembershipProvider.

Best,

Joe

4/8/2011 2:43:22 PM
Gravatar
Total Posts 1

Re: Using the .NET membership provider

Hi,

Using your custom more advanced membership provider is very well but this does not allow for easy migration of already existing sites. I was researching different CMS systems to move an existing site and for now this is a showstopper. 

Martin

You must sign in to post in the forums. This thread is closed to new posts.