37 instantiations of AuthenticationHeaderValue
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
61request.Headers.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\BasicAuthTests.cs (1)
61request.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)
1054requestMessage.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)
67Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.UTF8.GetBytes("unused:" + AccessToken))),
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolPromotionHelper.cs (1)
235return new AuthenticationHeaderValue("Bearer", token.Token);
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
453httpRequestMessage.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token.Token);
SocialSample (2)
Startup.cs (2)
138request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", context.AccessToken); 199request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", context.AccessToken);
8 references to AuthenticationHeaderValue
Microsoft.DotNet.Internal.SymbolHelper (1)
SymbolPromotionHelper.cs (1)
232private async static Task<AuthenticationHeaderValue> GetSymbolRequestAuthHeader(TokenCredential credential, string tokenResource, CancellationToken ct)
netstandard (1)
netstandard.cs (1)
1098[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.AuthenticationHeaderValue))]
System.Net.Http (6)
artifacts\obj\System.Net.Http\Debug\net10.0\System.Net.Http.notsupported.cs (6)
500public static System.Net.Http.Headers.AuthenticationHeaderValue Parse(string input) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } 503public static bool TryParse([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] string? input, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Net.Http.Headers.AuthenticationHeaderValue? parsedValue) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } 684public System.Net.Http.Headers.AuthenticationHeaderValue? Authorization { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } } 701public System.Net.Http.Headers.AuthenticationHeaderValue? ProxyAuthorization { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } } 725public System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.AuthenticationHeaderValue> ProxyAuthenticate { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } } 735public System.Net.Http.Headers.HttpHeaderValueCollection<System.Net.Http.Headers.AuthenticationHeaderValue> WwwAuthenticate { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } }