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.
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.