34 writes to Authorization
AnalyzeCiFailure (1)
tools\Aspire.TestTools\GitHubApiClient.cs (1)
295request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token);
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)
169http.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);
Aspire.TestTools (1)
GitHubApiClient.cs (1)
295request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token);
dotnet-sourcelink (1)
EntraId.Web (1)
GraphController.cs (1)
26request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token);
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)
92request.Headers.Authorization = header;
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 (4)
AuthHandshakeMessageHandler.cs (4)
467message.Headers.Authorization = header; 520request.Headers.Authorization = attemptedAuthentication; 536request.Headers.Authorization = retryAuthentication; 589request.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)
155httpClient.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;
8 references to Authorization
AnalyzeCiFailure.Tests (3)
GitHubApiClientTests.cs (3)
25Assert.Equal("Bearer example-token", request.Headers.Authorization?.ToString()); 584Assert.NotNull(request.Headers.Authorization); 590Assert.Null(request.Headers.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)
529Assert.Equal("Bearer", request.Headers.Authorization?.Scheme); 530Assert.Equal("test-token", request.Headers.Authorization?.Parameter);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\RequestMessageSnapshotTests.cs (1)
84Assert.NotNull(cloned.Headers.Authorization);