Copied to clipboard

Flag this post as spam?

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


  • Lynn 5 posts 20 karma points
    Jul 17, 2009 @ 12:24
    Lynn
    0

    Role Provider

    Hello,

    I am looking into extending Umbraco to authenticate members against existing profiles.  I have successfully set-up my Membership provider to this, however, I would like to keep the existing roles that the members have in the other system so I was trying to set-up my own Role Provider.

    The problem I am having is restricting the content based on my own existing roles and the role the user has.  I am not sure that this will work in Umbraco or not.  

    When I am validating the user, do I need to pull out the users role here and store this somewhere, or do I override a method in the role provider to do the look up in my existing db when the user tries to do something?

    Also, I have currently (for testing) overridden every function in the role provider, but when I restrict the content pages, no function in the role provider is called when accessing the restrict page.  I would have thought a method would check the user is in the correct group, I am missing something or can someone explain the nature of the calls to the restrcited pages?

    Thanks in advance!

    L.

     

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jul 17, 2009 @ 12:39
    Aaron Powell
    0

    Have you specified in the web.config the role provider that you want to use for Membership is your custom one?

  • Lynn 5 posts 20 karma points
    Jul 17, 2009 @ 14:05
    Lynn
    0

    Yes I have amended the web.config to point to the correct providers.

Please Sign in or register to post replies

Write your reply to:

Draft