Figures
© 2004 Microsoft Corporation. All rights reserved.
Figure 6 Managed and Unmanaged Security Contexts
<%@page language='C#'%>
<%@import namespace='TOKDUMPSRVLib'%>
<%@import namespace='System.Threading'%>
<%@import namespace='System.Security.Principal'%>

<%
IIdentity id = Thread.CurrentPrincipal.Identity;
string userName = id.Name;
bool   isAuthn  = id.IsAuthenticated;
%>

<h1>Managed Security Context</h1>
<h2>User is Authenticated? <%= isAuthn %></h2>
<h2>User Name:             <%= userName %></h2>

<h1>Unmanaged Security Context</h1>
<%= ((ITokDump)new TokDump()).TokenDump(1) %>
Page view tracker