Copied to clipboard

Flag this post as spam?

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


  • Peter 1 post 21 karma points
    Jul 13, 2012 @ 12:55
    Peter
    0

    Using RoleProvider with custom MembershipProvider

    Hi,

    I'm running Umbraco 4.7.2 and i'm having a problem with the MembershipProvider and the RoleProvider. The member data needs to be stored in a different DB than the Umbraco. This means I have to use a custom MembershipProvider (for authentication etc,) and a custom RoleProvider (to retrieve some extra information about the member from my DB).

    The MemberType node disappears in the Members section as soon as I configure a custom MembershipProvider in the web.config. I found a hint that the MembershipProvider has to have the name "UmbracoMembershipProvider". In this case the MemberType node really reappears but my custom MembershipProvider is not being used at all. Insteadthe Umbraco implementation is being used although the type in the web.config says differently.

    <membership defaultProvider="CustomMembershipProvider" userIsOnlineTimeWindow="15">
          <providers>
            <clear />
            <add name="CustomMembershipProvider" type="Custom.MembershipProvider.CustomMembershipProvider, Custom.MembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" defaultMemberTypeAlias="Another Type" PortalCode="RAX" />
            <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
          </providers>
        </membership>

    Please help. Thanks

Please Sign in or register to post replies

Write your reply to:

Draft