4 implementations of Name
mscorlib (1)
system\security\claims\ClaimsIdentity.cs (1)
557public virtual string Name
System.ServiceModel (1)
System\ServiceModel\Security\Tokens\WindowsSidIdentity.cs (1)
56public string Name
System.Web (1)
Security\PassportIdentity.cs (1)
171public String Name {
System.Web.Extensions (1)
ClientServices\ClientFormsIdentity.cs (1)
18public string Name { get { return _Name; }}
90 references to Name
mscorlib (3)
system\security\claims\ClaimsIdentity.cs (2)
351if (identity != null && !string.IsNullOrEmpty(identity.Name)) 353SafeAddClaim(new Claim(m_nameType, identity.Name, ClaimValueTypes.String, DefaultIssuer, DefaultIssuer, this));
system\security\permissions\principalpermission.cs (1)
488(m_array[i].m_id == null || String.Compare( identity.Name, m_array[i].m_id, StringComparison.OrdinalIgnoreCase) == 0)))
System (2)
net\System\Net\HttpListener.cs (2)
1355GlobalLog.Print("HttpListener#" + ValidationHelper.HashString(this) + "::HandleAuthentication() got principal:" + ValidationHelper.ToString(principal) + " principal.Identity.Name:" + ValidationHelper.ToString(principal.Identity.Name) + " creating request"); 1774GlobalLog.Print("HttpListener#" + ValidationHelper.HashString(this) + "::HandleAuthentication() got principal:" + ValidationHelper.ToString(principal) + " principal.Identity.Name:" + ValidationHelper.ToString(principal.Identity.Name) + " creating request");
System.IdentityModel (2)
System\IdentityModel\Diagnostics\AuthorizeTraceRecord.cs (1)
54writer.WriteAttributeString( "Identity.Name", _claimsPrincipal.Identity.Name );
System\IdentityModel\Diagnostics\ClaimsPrincipalTraceRecord.cs (1)
47writer.WriteAttributeString( "Identity.Name", _claimsPrincipal.Identity.Name );
System.ServiceModel (8)
System\ServiceModel\Dispatcher\AuthenticationBehavior.cs (2)
85primaryIdentity = SecurityUtils.AnonymousIdentity.Name; 117primaryIdentity = SecurityUtils.AnonymousIdentity.Name;
System\ServiceModel\Dispatcher\AuthorizationBehavior.cs (2)
92primaryIdentity = SecurityUtils.AnonymousIdentity.Name; 126primaryIdentity = SecurityUtils.AnonymousIdentity.Name;
System\ServiceModel\Dispatcher\SecurityImpersonationBehavior.cs (1)
285primaryIdentity = SecurityUtils.AnonymousIdentity.Name;
System\ServiceModel\Security\RoleProviderPrincipal.cs (1)
35return roleProvider.IsUserInRole(this.securityContext.PrimaryIdentity.Name, role);
System\ServiceModel\Security\SecurityProtocol.cs (1)
838primaryIdentity = SecurityUtils.AnonymousIdentity.Name;
System\ServiceModel\Security\SecurityUtils.cs (1)
1085name = identity.Name;
System.Web (41)
Configuration\AuthorizationRule.cs (1)
482if (users.Count > 0 && FindUser(users, user.Identity.Name)) {
Hosting\IIS7WorkerRequest.cs (1)
1925userName = user.Identity.Name;
HttpContext.cs (1)
1278_Profile = ProfileBase.Create(Request.IsAuthenticated ? User.Identity.Name : Request.AnonymousID, Request.IsAuthenticated);
HttpRequest.cs (1)
516value = _context.User.Identity.Name;
HttpResponse.cs (1)
2561userName = _context.User.Identity.Name;
Management\EventlogProvider.cs (1)
91user = id.Name;
Management\WebEvents.cs (5)
1283fields.Add(new WebEventFieldData("UserName", RequestInformation.Principal.Identity.Name, WebEventFieldType.String)); 1458fields.Add(new WebEventFieldData("UserName", RequestInformation.Principal.Identity.Name, WebEventFieldType.String)); 1557fields.Add(new WebEventFieldData("UserName", RequestInformation.Principal.Identity.Name, WebEventFieldType.String)); 1617fields.Add(new WebEventFieldData("UserName", RequestInformation.Principal.Identity.Name, WebEventFieldType.String)); 2006user = id.Name;
Management\wmiprovider.cs (1)
107user = id.Name;
Profile\SqlProfileProvider.cs (1)
154sName = (context.Request.IsAuthenticated ? context.User.Identity.Name : context.Request.AnonymousID);
Security\AuthStoreRoleProvider.cs (2)
651StringUtil.EqualsIgnoreCase(userName, context.User.Identity.Name)) 658StringUtil.EqualsIgnoreCase(userName, user.Identity.Name))
Security\Membership.cs (2)
593return cur.User.Identity.Name; 599return user.Identity.Name;
Security\RolePrincipal.cs (7)
122if (!StringUtil.EqualsIgnoreCase(rp._Username, _Identity.Name)) 144EtwTrace.Trace( EtwTraceType.ETW_TYPE_ROLE_END, HttpContext.Current.WorkerRequest, "RolePrincipal", _Identity.Name); 151EtwTrace.Trace(EtwTraceType.ETW_TYPE_ROLE_END, HttpContext.Current.WorkerRequest, "RolePrincipal", _Identity.Name); 171_Username = _Identity.Name; 303roles = Roles.Providers[_ProviderName].GetRolesForUser(Identity.Name); 334string[] roles = Roles.Providers[_ProviderName].GetRolesForUser(Identity.Name); 413info.AddValue("_Username", _Identity == null ? _Username : _Identity.Name);
Security\Roles.cs (11)
108if (user != null && user is RolePrincipal && ((RolePrincipal)user).ProviderName == Provider.Name && StringUtil.EqualsIgnoreCase(username, user.Identity.Name)) 145if (user != null && user is RolePrincipal && ((RolePrincipal)user).ProviderName == Provider.Name && StringUtil.EqualsIgnoreCase(username, user.Identity.Name)) { 228if (user != null && user.ProviderName == Provider.Name && user.IsRoleListCached && StringUtil.EqualsIgnoreCase(user.Identity.Name, username)) 251if (user != null && user.ProviderName == Provider.Name && user.IsRoleListCached && StringUtil.EqualsIgnoreCase(user.Identity.Name, username)) 276if (StringUtil.EqualsIgnoreCase(user.Identity.Name, username)) 309if (StringUtil.EqualsIgnoreCase(user.Identity.Name, username)) 327if (user != null && user.ProviderName == Provider.Name && user.IsRoleListCached && StringUtil.EqualsIgnoreCase(user.Identity.Name, username)) 350if (user != null && user.ProviderName == Provider.Name && user.IsRoleListCached && StringUtil.EqualsIgnoreCase(user.Identity.Name, username)) 375if (StringUtil.EqualsIgnoreCase(user.Identity.Name, username)) 408if (StringUtil.EqualsIgnoreCase(user.Identity.Name, username)) 600return user.Identity.Name;
Security\WindowsTokenRoleProvider.cs (2)
198if (!StringUtil.EqualsIgnoreCase(userName, context.User.Identity.Name)) 205if (!StringUtil.EqualsIgnoreCase(userName, user.Identity.Name))
State\sqlstateclientmanager.cs (1)
326Debug.Trace("SessionStatePooling", "LOGON_USER = '" + logon + "'; identity = '" + _rqContext.User.Identity.Name + "'; IsUNC = " + HttpRuntime.IsOnUNCShareInternal);
UI\WebControls\LoginUtil.cs (1)
136userName = identity.Name;
UI\WebParts\PersonalizationProvider.cs (1)
203userName = page.User.Identity.Name;
UI\WebParts\WebPartPersonalization.cs (1)
122query.UsernameToMatch = page.User.Identity.Name;
System.Web.DataVisualization (2)
WebForm\General\ChartHttpHandler.cs (2)
1320return HttpContext.Current.User.Identity.Name; 1337return HttpContext.Current.User.Identity.Name;
System.Web.Extensions (30)
ApplicationServices\ApplicationServiceHelper.cs (1)
217return user.Identity.Name;
ApplicationServices\ProfileService.cs (2)
289if (user == null || user.Identity == null || string.IsNullOrEmpty(user.Identity.Name)) { // anonymous user? 298name = user.Identity.Name;
ClientServices\ClientRolePrincipal.cs (1)
22return System.Web.Security.Roles.IsUserInRole(_Identity.Name, role);
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (7)
176UserValidated(this, new UserValidatedEventArgs(Thread.CurrentPrincipal.Identity.Name)); 184UserValidated(this, new UserValidatedEventArgs(Thread.CurrentPrincipal.Identity.Name)); 219p.Identity.Name, 228SqlHelper.DeleteAllCookies(p.Identity.Name, _ConnectionString, _ConnectionStringProvider); 291currentUser = Thread.CurrentPrincipal.Identity.Name; 300if ((Thread.CurrentPrincipal is ClientRolePrincipal) && (Thread.CurrentPrincipal.Identity is ClientFormsIdentity) && Thread.CurrentPrincipal.Identity.Name == username) 355if ( !(Thread.CurrentPrincipal is ClientRolePrincipal) || !(Thread.CurrentPrincipal.Identity is ClientFormsIdentity) || Thread.CurrentPrincipal.Identity.Name != username)
ClientServices\Providers\ClientRoleProvider.cs (5)
117if (!string.IsNullOrEmpty(username) && string.Compare(username, p.Identity.Name, StringComparison.OrdinalIgnoreCase) != 0) 121if (string.Compare(_CurrentUser, p.Identity.Name, StringComparison.OrdinalIgnoreCase) == 0 && DateTime.UtcNow < _CacheExpiryDate) 125if (GetRolesFromDBForUser(p.Identity.Name)) // Return true, only if the roles are fresh. Also, sets _CurrentUser, _Roles and _CacheExpiryDate 133_CurrentUser = p.Identity.Name; 186identity.Name,
ClientServices\Providers\ClientSettingsProvider.cs (13)
107id.Name, 237_UserName = Thread.CurrentPrincipal.Identity.Name; 530id.Name, 651id.Name, 669ClientData cd = ClientDataManager.GetUserClientData(Thread.CurrentPrincipal.Identity.Name, _UsingIsolatedStore); 683using (DbConnection conn = SqlHelper.GetConnection(Thread.CurrentPrincipal.Identity.Name, 750string username = Thread.CurrentPrincipal.Identity.Name; 830ClientData cd = ClientDataManager.GetUserClientData(Thread.CurrentPrincipal.Identity.Name, _UsingIsolatedStore); 840ClientData cd = ClientDataManager.GetUserClientData(Thread.CurrentPrincipal.Identity.Name, _UsingIsolatedStore); 850ClientData cd = ClientDataManager.GetUserClientData(Thread.CurrentPrincipal.Identity.Name, _UsingIsolatedStore); 860ClientData cd = ClientDataManager.GetUserClientData(Thread.CurrentPrincipal.Identity.Name, _UsingIsolatedStore); 869string username = Thread.CurrentPrincipal.Identity.Name; 880string username = Thread.CurrentPrincipal.Identity.Name;
ClientServices\Providers\ProxyHelper.cs (1)
274username = Thread.CurrentPrincipal.Identity.Name;
System.Workflow.Activities (2)
Executors\WorkflowWebService.cs (1)
187securityIdentifier = identity.Name;
LocalService\WorkflowMessageEventHandler.cs (1)
125securityIdentifier = identity.Name;