Ok for a new question, think of something like:
new ReflectedControllerDescriptor(typeof(ItemController)).GetCanonicalActions()
can be used to return a list of all available actions. I donβt have ASP.NET MVC for me at work, so I canβt check if the parameter returned by the ActionDescriptor returns any parameter that says which members can execute them.
http://msdn.microsoft.com/en-us/library/system.web.mvc.actiondescriptor_members%28v=VS.90%29.aspx
These are members of ActionDescriptor, you can find something there. I will see tonight, if I can understand it, it made me intrigue.
There is no universal user login / authentication system for all applications, so it is impossible to create a universal solution. You can create your own user login and authorization classes, which then add their own annotations to the methods, but they will have the same restrictions as in the asp.net mvc system, only for your login / authorization system (or someone who extends this system).
source share