public void Init(HttpApplication context) { context.AuthenticateRequest += OnAuthenticateRequest; context.PostAuthenticateRequest += OnPostAuthenticateRequest; context.EndRequest += OnEndRequest; HttpApplication fakeApp = new HttpApplication(); _stsModule = new StsProtectionModule(); _stsModule.Init(fakeApp); _oauthModule = new OAuthProtectionModule(); _oauthModule.Init(fakeApp); }