I have App_Code folder with CMSModuleLoader for authentication in my Kentico CMS 8.0.21
I also have an HTTP module to handle Formsauthentication cookie. The CMSModule Loader event never gets called. What is the best way to get a call to CMSModuleLoader events.
[CustomNewRelicSubstitutionLoader]
[CustomSecurityEventsAttribute]
[CustomErrorEventsAttribute]
[CustomRequestEventsAttribute]
[CustomSessionEventsAttribute]
public partial class CMSModuleLoader
{
///
/// Attribute class that ensures the loading of custom handlers
///
private class CustomSecurityEventsAttribute : CMSLoaderAttribute
{
///
/// Called automatically when the application starts
///
public override void Init()
{
SecurityEvents.Authenticate.Execute += new EventHandler
(Authenticate_Execute);
}
///
/// called on every kentico authenticate attempt
///
///
///
private void Authenticate_Execute(object sender, AuthenticationEventArgs args)
{
if (args.User != null) //the authenticate was successful
{
try
↧