Hello,
i m using .NET mvc2 for my application. i want some custom authorization on my actions. i have googled a bit and there seems to be two options available.
- Impelement logic in onActionExecuting in custom Action Filter see this post
- subclass authorizeattribute or implement Iauthorization interface and put my logic there
My question here is that which technique is preferable with pros and cons of using each technique
edited: Moreover i can override onActionExecuting and onAuthorization in my base controller that gives me benefit of accessing controller variables directly.
regards
Adeel