Role Provider Security Trimming Issue

T

tim.cavins

I have set up my project to use Security Trimming by editing my
web.config file.

I added the securityTrimmingEnabled = "True"

I added <roleManager enabled="true" />


In my Site map provider .vb file, I override the IsAccessibleToUser
function to query a database to get application specific roles. I then
loop through the node.Roles looking for a match in the user roles. I
then return true or false to enable the menu item to appear.

This all works great when I run the application from Visual Studio.
I'm able to see the Administration section.

However, if I go to http://localhost/mysite directly, I do not see the
Administration link.

Can anyone provide any insight as to why I can only see it when
debugging in Visual Studio?

Tim
 
T

tim.cavins

I should practice what I preach.

I had allow users = "*" above deny users="?"

So my roles were never being set for the user.

Removed allow users="*" and it works fine...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top