This is a migrated thread and some comments may be shown as answers.

[Solved] Authorizing Menu once during a user's session

1 Answer 25 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David St. Pierre
Top achievements
Rank 1
David St. Pierre asked on 07 May 2011, 12:14 AM
We are using the menu bar along with forms authentication and want to authorize the menu/menu items once when the user logs in and not perform it on subsequent page requests.  Is there any recommended approaches for doing this?

Thanks

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 09 May 2011, 10:06 AM
Hello David,

Authorization of the Menu depends on ASP.NET MVC authorization mechanism, which uses Authorize attribute. Hence if you need to authorize whole site, then this (Authorize) filter attribute should be called for any Action method. The preferred  way is to register it as global filter attribute, thus it will be applied to whole Action methods. You can check these help topic for more information:
http://msdn.microsoft.com/en-us/library/dd410209.aspxa
http://bradwilson.typepad.com/blog/2010/07/service-location-pt4-filters.html

If the Actions are authorized, then the menu items will also honor it.

Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Menu
Asked by
David St. Pierre
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or