49 references to ChallengeAsync
InProcessWebSite (4)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (4)
246await ctx.ChallengeAsync(IISServerDefaults.AuthenticationScheme); 263await ctx.ChallengeAsync(IISServerDefaults.AuthenticationScheme); 1087return context.ChallengeAsync(IISDefaults.AuthenticationScheme); 1101return context.ChallengeAsync(IISDefaults.AuthenticationScheme);
Microsoft.AspNetCore.Authentication.Core.Test (2)
AuthenticationServiceTests.cs (2)
61await context.ChallengeAsync("base"); 62var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.ChallengeAsync("missing"));
Microsoft.AspNetCore.Authentication.Test (38)
CookieTests.cs (2)
1277await Assert.ThrowsAsync<InvalidOperationException>(() => context.ChallengeAsync(CookieAuthenticationDefaults.AuthenticationScheme)); 1830await context.ChallengeAsync(CookieAuthenticationDefaults.AuthenticationScheme);
FacebookTests.cs (6)
53await Assert.ThrowsAsync<ArgumentNullException>("AppId", () => context.ChallengeAsync("Facebook")); 69await Assert.ThrowsAsync<ArgumentNullException>("AppSecret", () => context.ChallengeAsync("Facebook")); 105await context.ChallengeAsync("Facebook"); 133await context.ChallengeAsync(FacebookDefaults.AuthenticationScheme); 294await context.ChallengeAsync("Facebook"); 429await context.ChallengeAsync("Facebook");
GoogleTests.cs (3)
1162await context.ChallengeAsync("Facebook"); 1193await context.ChallengeAsync("Google"); 1198await context.ChallengeAsync("Google");
JwtBearerTests.cs (2)
1191await context.ChallengeAsync(JwtBearerDefaults.AuthenticationScheme); 1213await context.ChallengeAsync(JwtBearerDefaults.AuthenticationScheme);
JwtBearerTests_Handler.cs (2)
1250await context.ChallengeAsync(JwtBearerDefaults.AuthenticationScheme); 1272await context.ChallengeAsync(JwtBearerDefaults.AuthenticationScheme);
OAuthTests.cs (4)
126await ctx.ChallengeAsync("Weblie"); 154await ctx.ChallengeAsync("Weblie"); 184await ctx.ChallengeAsync("Weblie"); 210await ctx.ChallengeAsync("Weblie");
OpenIdConnect\TestServerBuilder.cs (1)
77await context.ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme);
PolicyTests.cs (5)
97await context.ChallengeAsync("forward"); 153await context.ChallengeAsync("forward"); 214await context.ChallengeAsync("forward"); 266await context.ChallengeAsync("forward"); 323await context.ChallengeAsync("forward");
RemoteAuthenticationTests.cs (3)
67context => context.ChallengeAsync(DefaultScheme)); 79context => context.ChallengeAsync(DefaultScheme), 95context => context.ChallengeAsync(DefaultScheme));
TwitterTests.cs (4)
66await context.ChallengeAsync("Twitter"); 176await context.ChallengeAsync("Twitter"); 290await context.ChallengeAsync("Twitter"); 320await context.ChallengeAsync("Twitter");
WsFederation\WsFederationTest.cs (3)
372await context.ChallengeAsync(WsFederationDefaults.AuthenticationScheme); 415await context.ChallengeAsync(WsFederationDefaults.AuthenticationScheme); 424await context.ChallengeAsync(WsFederationDefaults.AuthenticationScheme);
WsFederation\WsFederationTest_Handler.cs (3)
368await context.ChallengeAsync(WsFederationDefaults.AuthenticationScheme); 411await context.ChallengeAsync(WsFederationDefaults.AuthenticationScheme); 420await context.ChallengeAsync(WsFederationDefaults.AuthenticationScheme);
Microsoft.AspNetCore.Authorization.Policy (1)
AuthorizationMiddlewareResultHandler.cs (1)
32await context.ChallengeAsync(scheme);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
AuthenticationTests.cs (4)
255return httpContext.ChallengeAsync(HttpSysDefaults.AuthenticationScheme); 278await httpContext.ChallengeAsync(HttpSysDefaults.AuthenticationScheme); 296return httpContext.ChallengeAsync(HttpSysDefaults.AuthenticationScheme); 322return httpContext.ChallengeAsync(HttpSysDefaults.AuthenticationScheme);