/// <summary> /// Add the ID of the current tester while authorizing. /// </summary> /// <param name="httpContext">the current httpContext</param> /// <returns>boolean, if the authorize was successful</returns> protected override bool AuthorizeCore(HttpContextBase httpContext) { bool bolAuthorized = base.AuthorizeCore(httpContext); if (!bolAuthorized) { return(false); } if (httpContext.Session != null) { if (httpContext.Session["tester"] == null) { httpContext.Session["tester"] = _testViewerService.GetTesterIDByName(httpContext.User.Identity.GetLogin()); } } return(true); }