10 writes to UserName
Security.TransportSecurity.IntegrationTests (8)
Https\ClientCredentialTypeTests.4.1.0.cs (1)
223
factory.Credentials.HttpDigest.ClientCredential.
UserName
= s_username;
Negotiate\NegotiateStream_Http_Tests.4.1.0.cs (4)
138
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
191
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
341
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
391
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
Negotiate\NegotiateStream_Tcp_Tests.4.1.0.cs (3)
118
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
257
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
305
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
System.Net.Primitives (2)
System\Net\NetworkCredential.cs (2)
46
UserName
= userName;
60
UserName
= userName;
59 references to UserName
dotnet-svcutil-lib (9)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
37
if (string.IsNullOrEmpty(networkCredential.
UserName
))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (2)
331
if (credentials.HttpDigest.ClientCredential.
UserName
!= string.Empty)
339
if (credentials.Windows.ClientCredential.
UserName
!= string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (6)
288
upn = serverCredential.
UserName
+ "@" + serverCredential.Domain;
292
upn = serverCredential.
UserName
;
777
result = new NetworkCredential(networkCredential.
UserName
, networkCredential.Password, networkCredential.Domain);
813
credential.
UserName
, delimiter,
825
string.IsNullOrEmpty(credential.
UserName
) &&
958
string username = credential.
UserName
;
System.DirectoryServices.Protocols (10)
System\DirectoryServices\Protocols\common\DirectoryConnection.cs (1)
41
_directoryCredential = (value != null) ? new NetworkCredential(value.
UserName
, value.Password, value.Domain) : null;
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (9)
69
_directoryCredential = (credential != null) ? new NetworkCredential(credential.
UserName
, credential.Password, credential.Domain) : null;
79
if (AuthType == AuthType.Anonymous && (_directoryCredential != null && (!string.IsNullOrEmpty(_directoryCredential.Password) || !string.IsNullOrEmpty(_directoryCredential.
UserName
))))
154
_directoryCredential = (value != null) ? new NetworkCredential(value.
UserName
, value.Password, value.Domain) : null;
1002
if (AuthType == AuthType.Anonymous && (newCredential != null && (!string.IsNullOrEmpty(newCredential.Password) || !string.IsNullOrEmpty(newCredential.
UserName
))))
1011
_directoryCredential = tempCredential = (newCredential != null ? new NetworkCredential(newCredential.
UserName
, newCredential.Password, newCredential.Domain) : null);
1029
if (tempCredential != null && tempCredential.
UserName
.Length == 0 && tempCredential.Password.Length == 0 && tempCredential.Domain.Length == 0)
1038
username = tempCredential?.
UserName
;
1957
oldCredential.
UserName
== newCredential.
UserName
&&
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (6)
105
NetEventSource.AuthenticationInfo(uri, $"Authentication scheme '{scheme}' selected. Client username={challenge.Credential.
UserName
}");
179
credential.Domain + "\\" + credential.
UserName
+ ":" + credential.Password :
180
credential.
UserName
+ ":" + credential.Password;
322
NetEventSource.Info(pool.PreAuthCredentials, $"Removing Basic credential from cache, uri={preAuthCredentialUri}, username={preAuthCredential!.
UserName
}");
332
NetEventSource.Info(pool.PreAuthCredentials, $"Adding Basic credential to cache, uri={authUri}, username={challenge.Credential.
UserName
}");
341
NetEventSource.Info(pool.PreAuthCredentials, $"Basic credential present in cache, uri={authUri}, username={challenge.Credential.
UserName
}");
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (5)
86
sb.AppendKeyValue(Username, ComputeHash(credential.
UserName
+ ":" + realm, algorithm));
91
if (!Ascii.IsValid(credential.
UserName
))
93
string usernameStar = HeaderUtilities.Encode5987(credential.
UserName
);
98
sb.AppendKeyValue(Username, credential.
UserName
);
141
string a1 = credential.
UserName
+ ":" + realm + ":" + credential.Password;
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (2)
23
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Adding key:[{key}], cred:[{cred.Domain}],[{cred.
UserName
}]");
56
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returning {(mostSpecificMatch == null ? "null" : "(" + mostSpecificMatch.
UserName
+ ":" + mostSpecificMatch.Domain + ")")}");
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (4)
122
byte usernameLength = EncodeString(credentials.
UserName
, buffer.AsSpan(2), nameof(credentials.
UserName
));
282
byte usernameLength = EncodeString(credentials?.
UserName
, buffer.AsSpan(8), nameof(credentials.
UserName
));
System.Net.Mail (1)
System\Net\Mail\SmtpLoginAuthenticationModule.cs (1)
31
string userName = credential.
UserName
;
System.Net.Primitives (4)
System\Net\CredentialCache.cs (4)
42
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Adding key:[{key}], cred:[{cred.Domain}],[{cred.
UserName
}]");
68
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Adding key:[{key}], cred:[{credential.Domain}],[{credential.
UserName
}]");
140
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returning {(mostSpecificMatch == null ? "null" : "(" + mostSpecificMatch.
UserName
+ ":" + mostSpecificMatch.Domain + ")")}");
162
if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returning {((match == null) ? "null" : "(" + match.
UserName
+ ":" + match.Domain + ")")}");
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
517
domainUserName = Credentials.
UserName
;
System.Net.Security (7)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (4)
236
string.IsNullOrWhiteSpace(clientOptions.Credential.
UserName
) ||
614
Encoding.Unicode.GetByteCount(_credential.
UserName
) +
636
makeNtlm2Hash(_credential.Domain, _credential.
UserName
, _credential.Password, ntlm2hash);
652
AddToPayload(ref response.UserName, _credential.
UserName
, payload, ref payloadOffset);
System\Net\NegotiateAuthenticationPal.Unix.cs (3)
197
string.IsNullOrWhiteSpace(clientOptions.Credential.
UserName
) ||
245
string.IsNullOrWhiteSpace(serverOptions.Credential.
UserName
) ||
485
string username = credential.
UserName
;
System.ServiceModel.Http (2)
System\ServiceModel\Channels\HttpChannelFactory.cs (2)
413
if (credentials.HttpDigest.ClientCredential.
UserName
!= string.Empty)
421
if (credentials.Windows.ClientCredential.
UserName
!= string.Empty)
System.ServiceModel.Primitives (5)
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
30
if (string.IsNullOrEmpty(networkCredential.
UserName
))
System\ServiceModel\Security\SecurityUtils.cs (4)
687
result = new NetworkCredential(networkCredential.
UserName
, networkCredential.Password, networkCredential.Domain);
755
credential.
UserName
, delimiter,
774
string.IsNullOrEmpty(credential.
UserName
) &&
948
string username = credential.
UserName
;
System.ServiceModel.Primitives.Tests (3)
Security\SecurityUtilsTest.cs (3)
31
Assert.Equal("user@domain.com", credential.
UserName
);
42
Assert.Equal("user", credential.
UserName
);
53
Assert.Equal("user@domain.com", credential.
UserName
);