Re: Role Provider Security Trimming Issue
- From: tim.cavins@xxxxxxxxx
- Date: Fri, 14 Sep 2007 15:26:19 -0000
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...
On Sep 12, 4:58 pm, tim.cav...@xxxxxxxxx wrote:
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 tohttp://localhost/mysitedirectly, 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
.
- References:
- Role Provider Security Trimming Issue
- From: tim . cavins
- Role Provider Security Trimming Issue
- Prev by Date: Best Practices and script/executable directories
- Next by Date: Re: Impersonating user
- Previous by thread: Role Provider Security Trimming Issue
- Next by thread: Re: Session parameter lost memory
- Index(es):
Relevant Pages
|