30 writes to Authorization
aspire (2)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
1122request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token);
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
60client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", kubeconfig.Token);
Aspire.Dashboard (1)
src\Shared\Telemetry\InternalMicrosoftDetector.cs (1)
1122request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token);
Aspire.Deployment.EndToEnd.Tests (7)
AcaExpressDeploymentTests.cs (1)
322request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token.Token);
FoundryDotnetProjectDeploymentTests.cs (1)
162http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Token);
FoundryHostedAgentDeploymentTests.cs (3)
230resourcesRequest.Headers.Authorization = 248projectRequest.Headers.Authorization = 263connectionsRequest.Headers.Authorization =
Helpers\DotnetProjectDeploymentHelpers.cs (1)
79request.Headers.Authorization = authorization;
Helpers\EntraDeploymentHelpers.cs (1)
382request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token.Token);
Aspire.Hosting.Azure.Sandboxes (1)
Internal\Adc\AzureDevComputeClient.cs (1)
423request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
Aspire.Hosting.Foundry (1)
Toolbox\FoundryToolboxReadinessProbe.cs (1)
158request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
Aspire.Hosting.Native.Server (1)
src\Shared\DcpConnectionMaterial.cs (1)
61Client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", configuration.Token);
dotnet-sourcelink (1)
Keycloak.Web (1)
AuthorizationHandler.cs (1)
17request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
48request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", tokens.AccessToken);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
44request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", tokens.AccessToken);
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1064requestMessage.Headers.Authorization = new AuthenticationHeaderValue("Bearer", message.AccessToken);
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Services\AuthorizationMessageHandler.cs (1)
79request.Headers.Authorization = _cachedHeader;
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\AccessTokenHttpMessageHandler.cs (1)
89request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
Microsoft.DotNet.Cli.InternalMicrosoft (1)
Internal\GitHubMembershipClient.cs (1)
99client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
441httpRequestMessage.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token.Token);
Microsoft.NET.Build.Containers (3)
AuthHandshakeMessageHandler.cs (3)
599message.Headers.Authorization = header; 651request.Headers.Authorization = header; 676request.Headers.Authorization = authHeader;
Microsoft.NET.Sdk.Publish.Tasks (2)
Tasks\Http\HttpClientExtensions.cs (2)
288client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(BasicAuthenticationScheme, base64); 292client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(BearerAuthenticationScheme, password);
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
146httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken.Token);
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (1)
172request.Headers.Authorization = headerValue;
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (1)
53request.Headers.Authorization = null;
5 references to Authorization
Aspire.Azure.AI.Extensions.OpenAI.Tests (1)
tests\Shared\FoundryClientTestHelpers.cs (1)
33Requests.Enqueue(new(request.RequestUri!, request.Headers.Authorization?.ToString(), request.Headers.UserAgent.ToString()));
Aspire.Azure.AI.Projects.Tests (1)
tests\Shared\FoundryClientTestHelpers.cs (1)
33Requests.Enqueue(new(request.RequestUri!, request.Headers.Authorization?.ToString(), request.Headers.UserAgent.ToString()));
Aspire.Hosting.Azure.Tests (2)
AzureSandboxesTests.cs (2)
496Assert.Equal("Bearer", request.Headers.Authorization?.Scheme); 497Assert.Equal("test-token", request.Headers.Authorization?.Parameter);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\RequestMessageSnapshotTests.cs (1)
84Assert.NotNull(cloned.Headers.Authorization);