16 references to AuthenticationHeaderValue
dotnet-sourcelink (2)
AuthenticationHeaderProvider.cs (1)
28
=>
new
("Basic", Convert.ToBase64String(_encoding.GetBytes($"{_username}:{_password}")));
Program.cs (1)
532
AuthenticationMethod.Basic => new
AuthenticationHeaderValue
(
Keycloak.Web (1)
AuthorizationHandler.cs (1)
17
request.Headers.Authorization = new
AuthenticationHeaderValue
("Bearer", accessToken);
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
441
httpRequestMessage.Headers.Authorization = new
AuthenticationHeaderValue
("Bearer", token.Token);
Microsoft.NET.Build.Containers (4)
AuthHandshakeMessageHandler.cs (4)
196
var authValue = new
AuthenticationHeaderValue
(BasicAuthScheme, Convert.ToBase64String(Encoding.ASCII.GetBytes($"{privateRepoCreds.Username}:{privateRepoCreds.Password}")));
498
var authValue = new
AuthenticationHeaderValue
(BearerAuthScheme, tokenResponse.ResolvedToken);
515
var header = new
AuthenticationHeaderValue
(BasicAuthScheme, Convert.ToBase64String(Encoding.ASCII.GetBytes($"{privateRepoCreds.Username}:{privateRepoCreds.Password}")));
544
return (new
AuthenticationHeaderValue
(BearerAuthScheme, token.ResolvedToken), token.ResolvedExpiration);
Microsoft.NET.Sdk.Publish.Tasks (2)
Tasks\Http\HttpClientExtensions.cs (2)
288
client.DefaultRequestHeaders.Authorization = new
AuthenticationHeaderValue
(BasicAuthenticationScheme, base64);
292
client.DefaultRequestHeaders.Authorization = new
AuthenticationHeaderValue
(BearerAuthenticationScheme, password);
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
149
httpClient.DefaultRequestHeaders.Authorization = new
AuthenticationHeaderValue
("Bearer", accessToken.Token);
System.Net.Http (5)
System\Net\Http\Headers\AuthenticationHeaderValue.cs (2)
34
:
this
(scheme, null)
189
parsedValue = new
AuthenticationHeaderValue
(scheme, parameter);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (2)
184
SetRequestAuthenticationHeaderValue(request, new
AuthenticationHeaderValue
(BasicScheme, base64AuthString), isProxyAuth);
201
var headerValue = new
AuthenticationHeaderValue
(DigestScheme, parameter);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
168
SetRequestAuthenticationHeaderValue(request, new
AuthenticationHeaderValue
(challenge.SchemeName, challengeResponse), isProxyAuth);