45 instantiations of AuthenticationHeaderValue
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));
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)
948requestMessage.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)
125request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token); 144request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", token); 205request.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 (5)
src\AzureDevOpsNugetFeedAssetPublisher.cs (1)
53Authorization = new AuthenticationHeaderValue(
src\CreateAzureDevOpsFeed.cs (1)
132client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
src\PublishArtifactsInManifestBase.cs (3)
885client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue( 1256httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue( 1325httpClient.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.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 (6)
System\Net\Http\Headers\AuthenticationHeaderValue.cs (3)
156parsedValue = new AuthenticationHeaderValue(scheme); 189parsedValue = new AuthenticationHeaderValue(scheme, parameter); 293return new AuthenticationHeaderValue(this);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (2)
184SetRequestAuthenticationHeaderValue(request, new AuthenticationHeaderValue(BasicScheme, base64AuthString), isProxyAuth); 201var headerValue = new AuthenticationHeaderValue(DigestScheme, parameter);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
198SetRequestAuthenticationHeaderValue(request, new AuthenticationHeaderValue(challenge.SchemeName, challengeResponse), isProxyAuth);
27 references to AuthenticationHeaderValue
netstandard (1)
netstandard.cs (1)
1098[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.AuthenticationHeaderValue))]
System.Net.Http (26)
System\Net\Http\Headers\AuthenticationHeaderValue.cs (7)
46private AuthenticationHeaderValue(AuthenticationHeaderValue source) 65AuthenticationHeaderValue? other = obj as AuthenticationHeaderValue; 96public static AuthenticationHeaderValue Parse(string input) 99return (AuthenticationHeaderValue)GenericHeaderParser.SingleValueAuthenticationParser.ParseValue( 103public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out AuthenticationHeaderValue? parsedValue) 110parsedValue = (AuthenticationHeaderValue)output!;
System\Net\Http\Headers\GenericHeaderParser.cs (2)
25internal static readonly GenericHeaderParser SingleValueAuthenticationParser = new GenericHeaderParser(false, AuthenticationHeaderValue.GetAuthenticationLength); 26internal static readonly GenericHeaderParser MultipleValueAuthenticationParser = new GenericHeaderParser(true, AuthenticationHeaderValue.GetAuthenticationLength);
System\Net\Http\Headers\HttpRequestHeaders.cs (4)
49public AuthenticationHeaderValue? Authorization 51get { return (AuthenticationHeaderValue?)GetSingleParsedValue(KnownHeaders.Authorization.Descriptor); } 176public AuthenticationHeaderValue? ProxyAuthorization 178get { return (AuthenticationHeaderValue?)GetSingleParsedValue(KnownHeaders.ProxyAuthorization.Descriptor); }
System\Net\Http\Headers\HttpResponseHeaders.cs (4)
53public HttpHeaderValueCollection<AuthenticationHeaderValue> ProxyAuthenticate => 54GetSpecializedCollection(ProxyAuthenticateSlot, static thisRef => new HttpHeaderValueCollection<AuthenticationHeaderValue>(KnownHeaders.ProxyAuthenticate.Descriptor, thisRef)); 68public HttpHeaderValueCollection<AuthenticationHeaderValue> WwwAuthenticate => 69GetSpecializedCollection(WwwAuthenticateSlot, static thisRef => new HttpHeaderValueCollection<AuthenticationHeaderValue>(KnownHeaders.WWWAuthenticate.Descriptor, thisRef));
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (9)
44private static bool TryGetChallengeDataForScheme(string scheme, HttpHeaderValueCollection<AuthenticationHeaderValue> authenticationHeaderValues, out string? challengeData) 46foreach (AuthenticationHeaderValue ahv in authenticationHeaderValues) 68HttpHeaderValueCollection<AuthenticationHeaderValue> authenticationHeaderValues = GetResponseAuthenticationHeaderValues(response, isProxyAuth: false); 69foreach (AuthenticationHeaderValue ahv in authenticationHeaderValues) 81HttpHeaderValueCollection<AuthenticationHeaderValue> authenticationHeaderValues, out AuthenticationChallenge challenge) 119HttpHeaderValueCollection<AuthenticationHeaderValue> authenticationHeaderValues = GetResponseAuthenticationHeaderValues(response, isProxyAuth); 157private static HttpHeaderValueCollection<AuthenticationHeaderValue> GetResponseAuthenticationHeaderValues(HttpResponseMessage response, bool isProxyAuth) 164private static void SetRequestAuthenticationHeaderValue(HttpRequestMessage request, AuthenticationHeaderValue headerValue, bool isProxyAuth) 201var headerValue = new AuthenticationHeaderValue(DigestScheme, parameter);