Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • rafael 7 posts 20 karma points
    Jan 30, 2009 @ 11:44
    rafael
    0

    About membership provider

    Hi everybody,
    I'm dealing with umbraco to become it our new cms, but I'm still dealing with the 'last' basic feature to at least I could beging to develop my site.

    How membership provider/umbraco works? I mean, maybe I have'nt understood correctly and that's because Im so confused about it.

    I have read that Umbraco v4 was compatible with asp.net membership provider... Then I have understood that if I make a change in the web.config, instead of using the umbraco database to manage the members of the site, I could use an external database like the one created with the web tool that comes with framework 2.0, 3.5. Then If I programmatically add users or whateve I do it will be saved in that external database. But what happens with the section 'Members' in Umbraco, does it will go on working?

    Maybe the problem is that I didnt understand the basis about membership and umbraco, and I'm seeing an incorrect relation between them.

    Can someone explain me, or give me a link about the features of membership providers and umbraco?

    My objective is to implement a site with umbraco, using the membership provider to manage my members, so only someones of them will be able to see some pages (depending on a role assigned), but I would like to use these members to be part of anothers applications (external application, i.e. forum, etc), so if they are in an external database using membership provider it will be very fast.

    I'm not sure if I have explained my problem correctly, any hint will be very appreciated.

    Thanks.

  • rafael 7 posts 20 karma points
    Jan 30, 2009 @ 12:19
    rafael
    0

    Is this post appearing in the forum list? I can't see it and the first post in the list is from wednesday, january 28...

  • Dirk De Grave 4537 posts 6006 karma points MVP 3x admin c-trib
    Jan 30, 2009 @ 12:44
    Dirk De Grave
    0

    Hi rafael,

    umbraco v4 is indeed compatible with asp.net membership provider. In fact, umbraco team has written a membership provider to deal with membership. In order to get membership up and running quite fast:

    - Login to admin backend, go to 'Member' section, right-click 'Member Types' and select 'Create'. Name it whatever you want, but remember the alias!
    - Change the web.config settings for 'UmbracoMembershipProvider' provider. Last attribute
    'defaultMemberTypeAlias' should be set to the alias of a member type declared in the admin backend
    - Go to 'Settings' section, create a document type 'Registration page', check 'Create template' and click 'Create'.
    - Again, in 'Settings' section, expand the 'Templates' node and find the 'Registration page' template.
    - Add a asp:CreateUserWizard control onto that template (Make sure to add a form tag...). At this point, just leave the defaults for the control
    - Go to 'Content' section, create a new page 'Register' of 'Registration Page' document type. Make sure the template is set to 'Registration Page' template as well. If that is not yet possible, you'll need to make changes to the document type to allow for 'Registration Page' template.
    - Publish the page
    - Browse to the page, should get the registration page!
    - Provide username/password and hit 'Create user'.
    - Check if member has been added!

    Ok, this is the most minimalistic scenario for membership, but as you're an experienced developer, it shouldn't be too difficult to jump start from here.

    And yes, custom membership providers are supported and those members can be administrated from the admin backend as well (Has been added quite recently, tho no experience in usage)

    Hope this helps.

    Regards,
    /Dirk


  • rafael 7 posts 20 karma points
    Jan 30, 2009 @ 12:59
    rafael
    0

    Thanks Dirk by your reply,

    I have been making some research about my 'question', and I think it was not made correctly, my doubt was if 'SqlMembershipProvider' was supported, so If I have a database with it installated I can do my work with members from there instead of making against umbraco database. And another doubt is if 'members' section in umbraco would recognize that.

    Thanks again.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies