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?
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.
Have you specified in the web.config the role provider that you want to use for Membership is your custom one?
Yes I have amended the web.config to point to the correct providers.
is working on a reply...