This question is locked. New answers and comments are not allowed.
hi!
the Menu doesnt seems to see the AuthorizeAttribute that i register with the GlobalFilters in MVC3. All the menus are still there. If i explicitly put the AuthorizeAttribute on the Action method, the menu will react correctly by not rendering the menu associeted with the Action method.
But what if im setup like this:
So how the Menu can see that the AuthorizeAttribute is registered with the GlobalFilters and recongnize my AllowAnonymousAttribute? Is there a way do to this?
thank you for the help!
alex
the Menu doesnt seems to see the AuthorizeAttribute that i register with the GlobalFilters in MVC3. All the menus are still there. If i explicitly put the AuthorizeAttribute on the Action method, the menu will react correctly by not rendering the menu associeted with the Action method.
But what if im setup like this:
- Register AuthorizeAttribute to the GlobalFilters so ALL Controllers & Actions required to be Authentified by default
- Use AllowAnonymousAttribute on Actions that don't need to be Authentified (the solution for this is there: http://dotnetrdr.blogspot.com/2011/05/securing-your-aspnet-mvc-3.html)
So how the Menu can see that the AuthorizeAttribute is registered with the GlobalFilters and recongnize my AllowAnonymousAttribute? Is there a way do to this?
thank you for the help!
alex