Re: Authorization based on roles or directory access?
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Fri, 12 Jan 2007 01:22:31 GMT
Hi Jakob,
As you said:
=========
It would be fine if the <authorization> setting was only checked as an
extra
security check for nodes that I in the sitemap decided to show.
==========
Actually, the case here is that the "roles" in <sitemapnode> is considered
as an extra check here. <authorization> setting is the essential rule, this
rule will always be applied. In other words, the sitemap provider first
determine node's visibility through <authorization> setting, then, if
"roles" is specified in <sitemapnode>, it will use it to add more "allowed"
(but can not exclue other "allowed" ones defined in <authorization>
setting).
Also, for below:
===========
I do specify roles="Editors" on one of my nodes.
But this node is visible even for users that don't belong to this role.
I guess it is because I in the web.config specify <allow roles="Members"/>.
==============
Sure, because you have specify <allow roles="Members"/>, that means users
in "Members" role can access those pages in that directory, and surely
sitemapprovider will display those nodes(match the url in that directory)
to users in "Members" role. If you want to prevent certain users from
seeing sitemap node to a page, you need to deny them in <authorization>
setting, "roles" attribute of <sitemapprovider> won't help( it is not
exclusive).
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- References:
- Re: Authorization based on roles or directory access?
- From: rmgalante
- Re: Authorization based on roles or directory access?
- Prev by Date: Re: Access Denied
- Next by Date: Re: Using more than one database field for a DropDownList's DataTextFi
- Previous by thread: Re: Authorization based on roles or directory access?
- Next by thread: rowselect in gridview
- Index(es):
Relevant Pages
|