The application had 99% of the actions requiring user login.
The options I came across are
1-) Create the inheritance chain of the base controller and apply the authorize attribute at this level. Something like: BaseController> AuthorizeController, BaseController> PublicController. (I don't like this because of the inheritance chain)
2-) Create your own authorization attribute and use the flag to bypass authorization. Like this post . (by my preference so far).
What are the other options / best practices? What about using web.config in asp.net webforms? Link here . Same as authorize attribute?
source
share