10 writes to UserName
Security.TransportSecurity.IntegrationTests (8)
Https\ClientCredentialTypeTests.4.1.0.cs (1)
222
factory.Credentials.HttpDigest.ClientCredential.
UserName
= s_username;
Negotiate\NegotiateStream_Http_Tests.4.1.0.cs (4)
136
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
188
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
336
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
386
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
Negotiate\NegotiateStream_Tcp_Tests.4.1.0.cs (3)
119
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
260
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
307
factory.Credentials.Windows.ClientCredential.
UserName
= GetExplicitUserName();
System.Net.Primitives (2)
System\Net\NetworkCredential.cs (2)
46
UserName
= userName;
60
UserName
= userName;
42 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.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;
310
NetEventSource.Info(pool.PreAuthCredentials, $"Removing Basic credential from cache, uri={preAuthCredentialUri}, username={preAuthCredential!.
UserName
}");
320
NetEventSource.Info(pool.PreAuthCredentials, $"Adding Basic credential to cache, uri={authUri}, username={challenge.Credential.
UserName
}");
329
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.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
);