4 writes to User
System.Web (4)
Abstractions\HttpContextWrapper.cs (1)
230_context.User = value;
Security\PassportAuthenticationModule.cs (2)
98e.Context.User = e.User; 108e.Context.User = new PassportPrincipal(e.Identity, new String[0]);
Security\WindowsAuthenticationModule.cs (1)
96e.Context.User = e.User;
84 references to User
System.Runtime.Remoting (1)
services\remotingservice.cs (1)
51return Context.User;
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\JavascriptCallbackMessageInspector.cs (3)
35HttpContext.Current.User != null && 36HttpContext.Current.User.Identity != null && 37HttpContext.Current.User.Identity.IsAuthenticated)
System\ServiceModel\Web\CachingParameterInspector.cs (1)
111if (HttpContext.Current.User.Identity.IsAuthenticated)
System.Web (73)
Abstractions\HttpContextWrapper.cs (1)
227return _context.User;
HttpApplication.cs (1)
465return _context.User;
HttpContext.cs (2)
1278_Profile = ProfileBase.Create(Request.IsAuthenticated ? User.Identity.Name : Request.AnonymousID, Request.IsAuthenticated); 1897if (!User.Identity.IsAuthenticated)
HttpRequest.cs (9)
509if (_context.User != null && _context.User.Identity.IsAuthenticated) 510value = _context.User.Identity.AuthenticationType; 515if (_context.User != null && _context.User.Identity.IsAuthenticated) 516value = _context.User.Identity.Name; 1375return(_context.User != null && _context.User.Identity != null && _context.User.Identity.IsAuthenticated);
HttpResponse.cs (3)
2560if (_context != null && _context.User != null) { 2561userName = _context.User.Identity.Name; 2562userAuthType = _context.User.Identity.AuthenticationType;
Management\WebEvents.cs (1)
1946_iprincipal = context.User;
Profile\SqlProfileProvider.cs (1)
154sName = (context.Request.IsAuthenticated ? context.User.Identity.Name : context.Request.AnonymousID);
Security\AuthStoreRoleProvider.cs (5)
650if (context != null && context.User != null && context.User.Identity != null && context.User.Identity is WindowsIdentity && 651StringUtil.EqualsIgnoreCase(userName, context.User.Identity.Name)) 653return ((WindowsIdentity)context.User.Identity).Token;
Security\BackStopAuthenticationModule.cs (3)
117if (context.User == null) { 131if (context.User == null) { 135Thread.CurrentPrincipal = context.User;
Security\FileAuthorizationModule.cs (5)
141return context.User != null && 142context.User.Identity != null && 143context.User.Identity is WindowsIdentity; 159bool isAnonymousUser = (context.User == null || !context.User.Identity.IsAuthenticated);
Security\FormsAuthenticationModule.cs (1)
100if (e.Context.User != null) {
Security\Membership.cs (1)
593return cur.User.Identity.Name;
Security\PassportAuthenticationModule.cs (6)
95if (e.Context.User == null && e.User != null) 105if (e.Context.User == null) 169if (!_fAuthChecked || !_fAuthRequired || context.User == null || context.User.Identity == null || !(context.User.Identity is PassportIdentity)) 174PassportIdentity id = (PassportIdentity) context.User.Identity;
Security\PassportIdentity.cs (2)
979if (context.User.Identity is PassportIdentity) { 980pi = (PassportIdentity) context.User.Identity;
Security\RoleManagerModule.cs (10)
98Debug.Assert(null != context.User, "null != context.User"); 102if (context.User.Identity.IsAuthenticated && (!Roles.CookieRequireSSL || context.Request.IsSecureConnection)) 121context.SetPrincipalNoDemand(CreateRolePrincipalWithAssert(context.User.Identity, cookieValue)); 139if (!(context.User is RolePrincipal)) 140context.SetPrincipalNoDemand(CreateRolePrincipalWithAssert(context.User.Identity)); 142HttpApplication.SetCurrentPrincipalWithAssert(context.User); 165if (context.User == null || !(context.User is RolePrincipal) || !context.User.Identity.IsAuthenticated) 173RolePrincipal rp = (RolePrincipal) context.User;
Security\Roles.cs (1)
608return cur.User;
Security\UrlAuthorizationModule.cs (8)
114if (context.User != null && context.User.Identity.IsAuthenticated) { 134if (context.User == null || !context.User.Identity.IsAuthenticated) 143if (!settings.EveryoneAllowed && !settings.IsUserAllowed(context.User, context.Request.RequestType)) 150if (context.User == null || !context.User.Identity.IsAuthenticated) 182return settings.EveryoneAllowed || settings.IsUserAllowed(context.User, context.Request.RequestType);
Security\WindowsAuthenticationModule.cs (2)
93if (e.Context.User == null) 129WindowsPrincipal user = context.User as WindowsPrincipal;
Security\WindowsTokenRoleProvider.cs (4)
194if (context == null || context.User == null) 196if (!(context.User.Identity is WindowsIdentity)) 198if (!StringUtil.EqualsIgnoreCase(userName, context.User.Identity.Name)) 200return (WindowsIdentity)context.User.Identity;
SiteMapProvider.cs (2)
345context.User != null && context.User.IsInRole(role)) {
State\sqlstateclientmanager.cs (1)
326Debug.Trace("SessionStatePooling", "LOGON_USER = '" + logon + "'; identity = '" + _rqContext.User.Identity.Name + "'; IsUNC = " + HttpRuntime.IsOnUNCShareInternal);
ThreadContext.cs (2)
91HttpApplication.SetCurrentPrincipalWithAssert(HttpContext.User); 204HttpApplication.SetCurrentPrincipalWithAssert(HttpContext.User);
UI\Page.cs (1)
1412get { return Context.User;}
UI\WebControls\LoginUtil.cs (1)
120user = context.User;
System.Web.DataVisualization (4)
WebForm\General\ChartHttpHandler.cs (4)
1317if (HttpContext.Current.User.Identity.IsAuthenticated) 1320return HttpContext.Current.User.Identity.Name; 1332if (!HttpContext.Current.User.Identity.IsAuthenticated) 1337return HttpContext.Current.User.Identity.Name;
System.Web.Extensions (2)
ApplicationServices\ApplicationServiceHelper.cs (1)
166return (context != null) ? context.User : Thread.CurrentPrincipal;
ApplicationServices\AuthenticationService.cs (1)
126return HttpContext.Current.User.Identity.IsAuthenticated;