System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (12)
222Debug.Assert(pool.PreAuthCredentials != null);
224lock (pool.PreAuthCredentials)
228Debug.Assert(pool.PreAuthCredentials.GetCredential(authUri, NegotiateScheme) == null);
229Debug.Assert(pool.PreAuthCredentials.GetCredential(authUri, NtlmScheme) == null);
230Debug.Assert(pool.PreAuthCredentials.GetCredential(authUri, DigestScheme) == null);
231preAuthCredentialPair = pool.PreAuthCredentials.GetCredential(authUri, BasicScheme);
303lock (pool.PreAuthCredentials!)
310NetEventSource.Info(pool.PreAuthCredentials, $"Removing Basic credential from cache, uri={preAuthCredentialUri}, username={preAuthCredential!.UserName}");
313pool.PreAuthCredentials.Remove(preAuthCredentialUri, BasicScheme);
320NetEventSource.Info(pool.PreAuthCredentials, $"Adding Basic credential to cache, uri={authUri}, username={challenge.Credential.UserName}");
322pool.PreAuthCredentials.Add(authUri, BasicScheme, challenge.Credential);
329NetEventSource.Info(pool.PreAuthCredentials, $"Basic credential present in cache, uri={authUri}, username={challenge.Credential.UserName}");