10 writes to UserName
Security.TransportSecurity.IntegrationTests (8)
Https\ClientCredentialTypeTests.4.1.0.cs (1)
222factory.Credentials.HttpDigest.ClientCredential.UserName = s_username;
Negotiate\NegotiateStream_Http_Tests.4.1.0.cs (4)
136factory.Credentials.Windows.ClientCredential.UserName = GetExplicitUserName(); 188factory.Credentials.Windows.ClientCredential.UserName = GetExplicitUserName(); 336factory.Credentials.Windows.ClientCredential.UserName = GetExplicitUserName(); 386factory.Credentials.Windows.ClientCredential.UserName = GetExplicitUserName();
Negotiate\NegotiateStream_Tcp_Tests.4.1.0.cs (3)
119factory.Credentials.Windows.ClientCredential.UserName = GetExplicitUserName(); 260factory.Credentials.Windows.ClientCredential.UserName = GetExplicitUserName(); 307factory.Credentials.Windows.ClientCredential.UserName = GetExplicitUserName();
System.Net.Primitives (2)
System\Net\NetworkCredential.cs (2)
46UserName = userName; 60UserName = userName;
42 references to UserName
dotnet-svcutil-lib (9)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
37if (string.IsNullOrEmpty(networkCredential.UserName))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (2)
331if (credentials.HttpDigest.ClientCredential.UserName != string.Empty) 339if (credentials.Windows.ClientCredential.UserName != string.Empty)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (6)
288upn = serverCredential.UserName + "@" + serverCredential.Domain; 292upn = serverCredential.UserName; 777result = new NetworkCredential(networkCredential.UserName, networkCredential.Password, networkCredential.Domain); 813credential.UserName, delimiter, 825string.IsNullOrEmpty(credential.UserName) && 958string username = credential.UserName;
System.Net.Http (17)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (6)
105NetEventSource.AuthenticationInfo(uri, $"Authentication scheme '{scheme}' selected. Client username={challenge.Credential.UserName}"); 179credential.Domain + "\\" + credential.UserName + ":" + credential.Password : 180credential.UserName + ":" + credential.Password; 310NetEventSource.Info(pool.PreAuthCredentials, $"Removing Basic credential from cache, uri={preAuthCredentialUri}, username={preAuthCredential!.UserName}"); 320NetEventSource.Info(pool.PreAuthCredentials, $"Adding Basic credential to cache, uri={authUri}, username={challenge.Credential.UserName}"); 329NetEventSource.Info(pool.PreAuthCredentials, $"Basic credential present in cache, uri={authUri}, username={challenge.Credential.UserName}");
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (5)
86sb.AppendKeyValue(Username, ComputeHash(credential.UserName + ":" + realm, algorithm)); 91if (!Ascii.IsValid(credential.UserName)) 93string usernameStar = HeaderUtilities.Encode5987(credential.UserName); 98sb.AppendKeyValue(Username, credential.UserName); 141string a1 = credential.UserName + ":" + realm + ":" + credential.Password;
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (2)
23if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Adding key:[{key}], cred:[{cred.Domain}],[{cred.UserName}]"); 56if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returning {(mostSpecificMatch == null ? "null" : "(" + mostSpecificMatch.UserName + ":" + mostSpecificMatch.Domain + ")")}");
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (4)
122byte usernameLength = EncodeString(credentials.UserName, buffer.AsSpan(2), nameof(credentials.UserName)); 282byte usernameLength = EncodeString(credentials?.UserName, buffer.AsSpan(8), nameof(credentials.UserName));
System.Net.Mail (1)
System\Net\Mail\SmtpLoginAuthenticationModule.cs (1)
31string userName = credential.UserName;
System.Net.Primitives (4)
System\Net\CredentialCache.cs (4)
42if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Adding key:[{key}], cred:[{cred.Domain}],[{cred.UserName}]"); 68if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Adding key:[{key}], cred:[{credential.Domain}],[{credential.UserName}]"); 140if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returning {(mostSpecificMatch == null ? "null" : "(" + mostSpecificMatch.UserName + ":" + mostSpecificMatch.Domain + ")")}"); 162if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Returning {((match == null) ? "null" : "(" + match.UserName + ":" + match.Domain + ")")}");
System.Net.Requests (1)
System\Net\FtpControlStream.cs (1)
517domainUserName = Credentials.UserName;
System.Net.Security (7)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (4)
236string.IsNullOrWhiteSpace(clientOptions.Credential.UserName) || 614Encoding.Unicode.GetByteCount(_credential.UserName) + 636makeNtlm2Hash(_credential.Domain, _credential.UserName, _credential.Password, ntlm2hash); 652AddToPayload(ref response.UserName, _credential.UserName, payload, ref payloadOffset);
System\Net\NegotiateAuthenticationPal.Unix.cs (3)
197string.IsNullOrWhiteSpace(clientOptions.Credential.UserName) || 245string.IsNullOrWhiteSpace(serverOptions.Credential.UserName) || 485string username = credential.UserName;
System.ServiceModel.Primitives.Tests (3)
Security\SecurityUtilsTest.cs (3)
31Assert.Equal("user@domain.com", credential.UserName); 42Assert.Equal("user", credential.UserName); 53Assert.Equal("user@domain.com", credential.UserName);