31 references to ChallengeAsync
Microsoft.AspNetCore.Authentication (1)
AuthenticationHandler.cs (1)
311await Context.ChallengeAsync(target, properties);
Microsoft.AspNetCore.Authentication.Abstractions (3)
AuthenticationHttpContextExtensions.cs (3)
42context.ChallengeAsync(scheme, properties: null); 52context.ChallengeAsync(scheme: null, properties: null); 63context.ChallengeAsync(scheme: null, properties: properties);
Microsoft.AspNetCore.Authentication.Test (20)
CookieTests.cs (4)
1250app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" }))); 1484map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" }))); 1849await context.ChallengeAsync(CookieAuthenticationDefaults.AuthenticationScheme, new AuthenticationProperties()); 1853await context.ChallengeAsync(CookieAuthenticationDefaults.AuthenticationScheme, new AuthenticationProperties() { RedirectUri = "/CustomRedirect" });
FacebookTests.cs (4)
172await context.ChallengeAsync(FacebookDefaults.AuthenticationScheme, properties); 204await context.ChallengeAsync(FacebookDefaults.AuthenticationScheme, properties); 222map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Facebook", new AuthenticationProperties() { RedirectUri = "/" }))); 255app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Facebook", new AuthenticationProperties() { RedirectUri = "/" })));
GoogleTests.cs (3)
179return context.ChallengeAsync("Google", new GoogleChallengeProperties 231return context.ChallengeAsync("Google", new AuthenticationProperties(new Dictionary<string, string>() 283return context.ChallengeAsync("Google", new GoogleChallengeProperties(new Dictionary<string, string>
MicrosoftAccountTests.cs (3)
376await context.ChallengeAsync("Microsoft", new MicrosoftChallengeProperties 391await context.ChallengeAsync("Microsoft", properties); 397await context.ChallengeAsync("Microsoft", properties);
OAuthTests.cs (2)
246await ctx.ChallengeAsync("Weblie", properties); 275await ctx.ChallengeAsync("Weblie", properties);
OpenIdConnect\TestServerBuilder.cs (1)
81await context.ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme, properties);
TwitterTests.cs (3)
211await context.ChallengeAsync("Twitter", properties); 261await context.ChallengeAsync("Twitter", properties); 367await context.ChallengeAsync("Twitter", properties);
Microsoft.AspNetCore.Http.Results (3)
ChallengeHttpResult.cs (1)
84await httpContext.ChallengeAsync(scheme, Properties);
Results.cs (1)
28/// Creates an <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ChallengeAsync(HttpContext, string?, AuthenticationProperties?)" />.
TypedResults.cs (1)
28/// Creates a <see cref="ChallengeHttpResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ChallengeAsync(HttpContext, string?, AuthenticationProperties?)" />.
Microsoft.AspNetCore.Mvc.Core (1)
ChallengeResult.cs (1)
104await httpContext.ChallengeAsync(scheme, Properties);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
AuthenticationTests.cs (1)
361return httpContext.ChallengeAsync(HttpSysDefaults.AuthenticationScheme, null);
OpenIdConnectSample (1)
Startup.cs (1)
298await context.ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme, new OpenIdConnectChallengeProperties()
SocialSample (1)
Startup.cs (1)
255await context.ChallengeAsync(authType, new AuthenticationProperties() { RedirectUri = "/" });