SiteMap & Authorization Provider

Topics: Web Client Software Factory, UIP Application Block discussion, User Forum
Oct 18, 2007 at 11:05 PM
I'm using the Web Software Factory ModuleSiteMap Provider to create the menu. Also I'm using the a custom Membership, Role and Authorization Rule provider that connect to my Oracle Database to secure my application. Everything work great, but I discover that each time I try to access a node from the site map, the Authorize method of the Authorization Rule provider is called, so I got a perfermance issue since my provider connect to the database. Please let me know how I can solve this problem. I just need to load the sitemap with the user authorization once the user login, not each time that I use a node.

Thanks.

Jose
Oct 23, 2007 at 10:05 PM
Hi,

Any idea about that?

Thanks
Oct 25, 2007 at 6:51 PM
Hi

It seems to me the expected behavior of the Authorization Rule provider. Every time the SiteMap is built, it calls the AuthorizationRuleProvider to establish if the node is accessible to the user or not.

What you could do is make your own SiteMapBuilder that doesn’t check for authorization roles.

Please let me know if this helps.

Ignacio Baumann Fonay
http://staff.southworks.net/blogs/ibaumann/