Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Where is Controller Initialize Event?

$
0
0

I apologize in advance if this question seems vague.

Trying to port an existing application to ASP.net 5. I have a custom authentication and authorization logic that verifies and validates the user during (a base) Controller's Initialize event. Could you please point out what is the equivalent here?

Edit:

I use Initialize along with [Authorize] attribute because in some cases, anonymous users (depending on cookies and demographics, etc) are authorized to use some features which otherwise would have been restricted.

Additionally, the application is multi-tenant. The current tenant meta information is created during the Initialize event so that it would not need to be reinitialized during subsequent requests. I cannot use an action filter attribute to achieve this functionality because the meta information needs to be set on the base controller class.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>