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