41 writes to Authorization
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
62request.Headers.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
62request.Headers.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
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)
1058requestMessage.Headers.Authorization = new AuthenticationHeaderValue("Bearer", message.AccessToken);
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\AccessTokenHttpMessageHandler.cs (1)
63request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);
Microsoft.AspNetCore.Identity.FunctionalTests (17)
MapIdentityApiTests.cs (17)
124client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 156client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 188client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 267client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 280client.DefaultRequestHeaders.Authorization = new("Bearer"); 283client.DefaultRequestHeaders.Authorization = new("Bearer", ""); 303client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 357client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 373client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 418client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 678client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 732client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 761client.DefaultRequestHeaders.Authorization = new("Bearer", recoveryAccessToken); 784client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 831client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken); 863client.DefaultRequestHeaders.Authorization = new("Bearer", recoveryAccessToken); 1400client.DefaultRequestHeaders.Authorization = new("Bearer", accessToken);
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
AuthMiddlewareAndFilterTestBase.cs (3)
137request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token); 156request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token); 217request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token);
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheTests.cs (2)
268client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("abc"); 296client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("abc");
Microsoft.AspNetCore.ResponseCaching.Tests (1)
ResponseCachingTests.cs (1)
257client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("abc");
Microsoft.DotNet.Build.Tasks.Feed (1)
src\CreateAzureDevOpsFeed.cs (1)
140client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
Microsoft.DotNet.Git.IssueManager (1)
Clients\AzureDevOpsClient.cs (1)
60client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
Microsoft.DotNet.Helix.Sdk (1)
AzureDevOpsTask.cs (1)
64Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes("unused:" + AccessToken))),
Microsoft.DotNet.Internal.SymbolHelper (3)
SymbolPromotionHelper.cs (3)
150Authorization = await GetSymbolRequestAuthHeader(credential, tokenResource, ct), 204Authorization = await GetSymbolRequestAuthHeader(credential, tokenResource, ct), 267Authorization = await GetSymbolRequestAuthHeader(credential, tokenResource, ct),
Microsoft.DotNet.VersionTools (1)
Automation\VstsApi\VstsAdapterClient.cs (1)
61_httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
SocialSample (2)
Startup.cs (2)
138request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", context.AccessToken); 199request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", context.AccessToken);
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (1)
172request.Headers.Authorization = headerValue;
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (1)
54request.Headers.Authorization = null;
11 references to Authorization
Microsoft.AspNetCore.Authentication.Test (1)
TwitterTests.cs (1)
483finalAuthorizationParameter = req.Headers.Authorization.Parameter;
Microsoft.AspNetCore.SignalR.Client.Tests (9)
HttpConnectionTests.Negotiate.cs (3)
344if (request.Headers.Authorization?.Parameter != "firstSecret") 358if (request.Headers.Authorization?.Parameter != "secondSecret") 381if (request.Headers.Authorization?.Parameter != "secondSecret")
HttpConnectionTests.Transport.cs (6)
44Assert.Equal("Bearer", request.Headers.Authorization.Scheme); 47Assert.Equal(callCount.ToString(CultureInfo.InvariantCulture), request.Headers.Authorization.Parameter); 389Assert.Equal("Bearer", request.Headers.Authorization.Scheme); 391Assert.Equal(accessTokenCallCount.ToString(CultureInfo.InvariantCulture), request.Headers.Authorization.Parameter); 489Assert.Equal("Bearer", request.Headers.Authorization.Scheme); 491Assert.Equal(accessTokenCallCount.ToString(CultureInfo.InvariantCulture), request.Headers.Authorization.Parameter);
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\RequestMessageSnapshotTests.cs (1)
84Assert.NotNull(cloned.Headers.Authorization);