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)
1243app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" }))); 1477map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Cookies", new AuthenticationProperties() { RedirectUri = "/" }))); 1842await context.ChallengeAsync(CookieAuthenticationDefaults.AuthenticationScheme, new AuthenticationProperties()); 1846await context.ChallengeAsync(CookieAuthenticationDefaults.AuthenticationScheme, new AuthenticationProperties() { RedirectUri = "/CustomRedirect" });
FacebookTests.cs (4)
165await context.ChallengeAsync(FacebookDefaults.AuthenticationScheme, properties); 197await context.ChallengeAsync(FacebookDefaults.AuthenticationScheme, properties); 215map.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Facebook", new AuthenticationProperties() { RedirectUri = "/" }))); 248app.Map("/login", signoutApp => signoutApp.Run(context => context.ChallengeAsync("Facebook", new AuthenticationProperties() { RedirectUri = "/" })));
GoogleTests.cs (3)
172return context.ChallengeAsync("Google", new GoogleChallengeProperties 224return context.ChallengeAsync("Google", new AuthenticationProperties(new Dictionary<string, string>() 276return context.ChallengeAsync("Google", new GoogleChallengeProperties(new Dictionary<string, string>
MicrosoftAccountTests.cs (3)
369await context.ChallengeAsync("Microsoft", new MicrosoftChallengeProperties 384await context.ChallengeAsync("Microsoft", properties); 390await context.ChallengeAsync("Microsoft", properties);
OAuthTests.cs (2)
239await ctx.ChallengeAsync("Weblie", properties); 268await ctx.ChallengeAsync("Weblie", properties);
OpenIdConnect\TestServerBuilder.cs (1)
81await context.ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme, properties);
TwitterTests.cs (3)
204await context.ChallengeAsync("Twitter", properties); 254await context.ChallengeAsync("Twitter", properties); 360await context.ChallengeAsync("Twitter", properties);
Microsoft.AspNetCore.Http.Results (3)
ChallengeHttpResult.cs (1)
84await httpContext.ChallengeAsync(scheme, Properties);
Results.cs (1)
27/// Creates an <see cref="IResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ChallengeAsync(HttpContext, string?, AuthenticationProperties?)" />.
TypedResults.cs (1)
27/// 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 = "/" });