c# - AuthorizeAttribute v Application_AuthenticateRequest -
c# - AuthorizeAttribute v Application_AuthenticateRequest -
we want authorize users , if authorized want add together roles , permissions user , add together iprinciple
we have 2 ways of doing 1 in global.asax application_authenticaterequest other create attribute inherits authorizeattribute
is there gleaming selection here?
in asp.net mvc should prefer custom authorize attribute. if on other hand want code reusable classic asp.net applications utilize application_authenticaterequest
or write custom httpmodule , utilize authenticaterequest event.
c# asp.net-mvc asp.net-mvc-3 authorize-attribute
Comments
Post a Comment