//protected TFS.Security.Impersonation imp = new TFS.Security.Impersonation(); protected void Security_Start(object sender, Cridion.Web.Controls.SecurityEventArgs e) { //imp.ImpersonateWithToken((IntPtr)Session["LoginToken"]); }
protected void Security_End(object sender, Cridion.Web.Controls.SecurityEventArgs e) { //imp.UnImpersonate(); }
void DocViewer_SecurityViolation(object sender, Cridion.Web.Controls.SecurityEventArgs e) { //Response.Write(((Cridion.Web.Controls.FileSystemSecurityException)e.ThrownException).WindowsIdentity.Name); throw e.ThrownException; }