Quantcast
Channel: Kentico CMS for ASP.NET - DevNet - Forums - Version 7.x - API
Viewing all articles
Browse latest Browse all 660

Post authentication event

$
0
0
spencer.h-mmtdigital.co
Hi,

I need to register a session level object using dependecy injection when users successfully login to the CMSDesk.

I can hook into the SecurityEvents.Authenticate.Execute event but this happens as authentication is performed and not AFTER successful authentication. I could potentially have session objects created for no reason here when auth fails.

So ideally I only want to perform my DI resolve on successful auth!

I could use Application_BeginRequest event and check for IsAuthenticated in the HttpContext user object to perform the DI but seems a little heavy.

Viewing all articles
Browse latest Browse all 660

Latest Images

Trending Articles



Latest Images