Copied to clipboard

Flag this post as spam?

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


  • Richard Soeteman 3875 posts 12037 karma points MVP
    Nov 11, 2009 @ 13:28
    Richard Soeteman
    0

    Secure pages using a custom membership/role provider

    Hi All,

    For a new project (Umbraco 4.0.2.1) I'm using a custom membership provider. This is all fine, I can login etc. Now when I want to secure a page in umbraco I want to assign the role who can access the page, but the dialog tells me there are no roles available. Is it possible to assign roles from a custom membership provider to the pages, or can you only select roles using the Umbraco role provider?

    Thanks,

    Richard

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 11, 2009 @ 13:29
    Tim Geyssens
    1

    Hi Richard,

    Yeah that's possible, but you'll have to setup a custom role provider.

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Nov 11, 2009 @ 13:41
    Richard Soeteman
    0

    Hi Tim,.

    Thanks for your quick answer. They have a custom role provider here. I've managed to Create a role via role -> Create in their database, however I can't list the roles. Do you know which method in the role provider is responsible to list the roles?

    Many thanks,

    Richard

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Nov 11, 2009 @ 13:52
    Richard Soeteman
    0

    I think I found the bug in the Clients Role provider 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