51 references to WwwAuthenticate
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
358_httpResponseMessage.Headers.WwwAuthenticate.ToString());
IISExpress.FunctionalTests (8)
InProcess\AuthenticationTests.cs (4)
40Assert.Contains("NTLM", response.Headers.WwwAuthenticate.ToString()); 41Assert.Contains("Negotiate", response.Headers.WwwAuthenticate.ToString()); 46Assert.Contains("NTLM", response.Headers.WwwAuthenticate.ToString()); 48Assert.Contains("Negotiate", response.Headers.WwwAuthenticate.ToString());
OutOfProcess\NtlmAuthentationTest.cs (4)
59Assert.Contains("NTLM", response.Headers.WwwAuthenticate.ToString()); 60Assert.Contains("Negotiate", response.Headers.WwwAuthenticate.ToString()); 64Assert.Contains("NTLM", response.Headers.WwwAuthenticate.ToString()); 66Assert.Contains("Negotiate", response.Headers.WwwAuthenticate.ToString());
Microsoft.AspNetCore.Authentication.Test (18)
JwtBearerTests.cs (9)
293Assert.Equal("Bearer error=\"invalid_token\"", response.Response.Headers.WwwAuthenticate.First().ToString()); 320Assert.Equal($"Bearer error=\"invalid_token\", error_description=\"{message}\"", response.Response.Headers.WwwAuthenticate.First().ToString()); 344Assert.Equal($"Bearer error=\"invalid_token\", error_description=\"{message}\"", response.Response.Headers.WwwAuthenticate.First().ToString()); 364Assert.Equal("Bearer error=\"invalid_token\"", response.Response.Headers.WwwAuthenticate.First().ToString()); 385response.Response.Headers.WwwAuthenticate.First().ToString()); 451Assert.Equal(builder.ToString(), response.Response.Headers.WwwAuthenticate.First().ToString()); 466Assert.Equal("Bearer", response.Response.Headers.WwwAuthenticate.First().ToString()); 478Assert.Equal("Bearer", response.Response.Headers.WwwAuthenticate.First().ToString()); 785Assert.Empty(response.Response.Headers.WwwAuthenticate);
JwtBearerTests_Handler.cs (9)
284Assert.Equal("Bearer error=\"invalid_token\"", response.Response.Headers.WwwAuthenticate.First().ToString()); 308Assert.Equal($"Bearer error=\"invalid_token\", error_description=\"{message}\"", response.Response.Headers.WwwAuthenticate.First().ToString()); 329Assert.Equal($"Bearer error=\"invalid_token\", error_description=\"{message}\"", response.Response.Headers.WwwAuthenticate.First().ToString()); 346Assert.Equal("Bearer error=\"invalid_token\"", response.Response.Headers.WwwAuthenticate.First().ToString()); 364response.Response.Headers.WwwAuthenticate.First().ToString()); 429Assert.Equal(builder.ToString(), response.Response.Headers.WwwAuthenticate.First().ToString()); 443Assert.Equal("Bearer", response.Response.Headers.WwwAuthenticate.First().ToString()); 455Assert.Equal("Bearer", response.Response.Headers.WwwAuthenticate.First().ToString()); 741Assert.Empty(response.Response.Headers.WwwAuthenticate);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (16)
AuthenticationTests.cs (12)
40Assert.Empty(response.Headers.WwwAuthenticate); 58Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 80Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 106Assert.Equal("Negotiate, NTLM, basic", response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 215Assert.Empty(response.Headers.WwwAuthenticate); 260Assert.Equal(authTypeList.Count(), response.Headers.WwwAuthenticate.Count); 283Assert.Equal(authTypeList.Count(), response.Headers.WwwAuthenticate.Count); 301Assert.Equal(3, response.Headers.WwwAuthenticate.Count); 327Assert.Equal(authTypeList.Count(), response.Headers.WwwAuthenticate.Count); 345Assert.Empty(response.Headers.WwwAuthenticate); 366Assert.Single(response.Headers.WwwAuthenticate); 367Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.First().Scheme);
Listener\AuthenticationOnExistingQueueTests.cs (4)
70Assert.Empty(response.Headers.WwwAuthenticate); 88Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 112Assert.Equal(authType.ToString(), response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase); 137Assert.Equal("Negotiate, NTLM, basic", response.Headers.WwwAuthenticate.ToString(), StringComparer.OrdinalIgnoreCase);
Negotiate.Client (3)
Controllers\AuthTestController.cs (3)
64var authHeader = result.Headers.WwwAuthenticate.ToString(); 212var authHeader = result.Headers.WwwAuthenticate.ToString(); 249var authHeader = result.Headers.WwwAuthenticate.ToString();
ServerComparison.FunctionalTests (3)
NtlmAuthenticationTest.cs (3)
72Assert.DoesNotContain("NTLM", response.Headers.WwwAuthenticate.ToString()); 76Assert.Contains("NTLM", response.Headers.WwwAuthenticate.ToString()); 78Assert.Contains("Negotiate", response.Headers.WwwAuthenticate.ToString());
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (1)
161response.Headers.WwwAuthenticate;
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
383_httpResponseMessage.Headers.WwwAuthenticate.ToString());