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