1<%@ Page Language="C#" %>
2<script runat="server">
3
4protected void Page_Load(object sender, EventArgs e) {
5
6	AuthMethod.Text = "Anonymous";
7	AuthUser.Text = "none";
8	AuthType.Text = "unknown";
9	ImpersonationLevel.Text = "unknown";
10
11	string AUTH_TYPE=Request.ServerVariables["AUTH_TYPE"];
12	if (AUTH_TYPE.Length > 0)
13		AuthMethod.Text = AUTH_TYPE;
14
15	string AUTH_USER=Request.ServerVariables["AUTH_USER"];
16	if (AUTH_USER.Length > 0)
17		AuthUser.Text  = AUTH_USER;
18
19	AuthType.Text = System.Threading.Thread.CurrentPrincipal.Identity.AuthenticationType.ToString();
20
21	System.Security.Principal.WindowsIdentity winId = (System.Security.Principal.WindowsIdentity)System.Threading.Thread.CurrentPrincipal.Identity;
22	ImpersonationLevel.Text = winId.ImpersonationLevel.ToString();
23}
24
25</script>
26
27AuthenticationMethod: <asp:literal id=AuthMethod runat=server/>
28Identity: <asp:literal id=AuthUser runat=server />
29AuthType: <asp:literal id=AuthType runat=server />
30ImpersonationLevel: <asp:literal id=ImpersonationLevel runat=server />
31