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