46 references to AuthenticateAsync
Aspire.Dashboard (1)
Authentication\AspirePolicyEvaluator.cs (1)
46var result = await context.AuthenticateAsync(scheme).ConfigureAwait(false);
JwtBearerSample (1)
Startup.cs (1)
51var authResult = await context.AuthenticateAsync(JwtBearerDefaults.AuthenticationScheme);
Microsoft.AspNetCore.Authentication (3)
AuthenticationHandler.cs (1)
220return await Context.AuthenticateAsync(target);
AuthenticationMiddleware.cs (1)
62var result = await context.AuthenticateAsync(defaultAuthenticate.Name);
RemoteAuthenticationHandler.cs (1)
194var result = await Context.AuthenticateAsync(SignInScheme);
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationHttpContextExtensions.cs (1)
23context.AuthenticateAsync(scheme: null);
Microsoft.AspNetCore.Authentication.Core.Test (5)
AuthenticationServiceTests.cs (5)
22await context.AuthenticateAsync("base"); 23var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.AuthenticateAsync("missing")); 41await context.AuthenticateAsync("base"); 44await context.AuthenticateAsync("base"); 47await context.AuthenticateAsync("base");
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
161var principal = (await Context.AuthenticateAsync(Options.SignOutScheme))?.Principal;
Microsoft.AspNetCore.Authentication.Test (24)
CookieTests.cs (3)
1669var result = await context.AuthenticateAsync("Cookies"); 1854var ticket = await context.AuthenticateAsync(remainder.Value.Substring(1)); 1863var result = await context.AuthenticateAsync(CookieAuthenticationDefaults.AuthenticationScheme); // this used to be "Automatic"
DynamicSchemeTests.cs (1)
151var result = await context.AuthenticateAsync(name);
GoogleTests.cs (7)
353var result = await context.AuthenticateAsync("Google"); 1166var result = await context.AuthenticateAsync(TestExtensions.CookieAuthenticationScheme); 1176var result = await context.AuthenticateAsync(TestExtensions.CookieAuthenticationScheme); 1181var result = await context.AuthenticateAsync("Google"); 1186var result = await context.AuthenticateAsync("Facebook"); 1192var result = await context.AuthenticateAsync("Google"); 1197var result = await context.AuthenticateAsync("Google");
JwtBearerTests.cs (3)
1176var result = await context.AuthenticateAsync(JwtBearerDefaults.AuthenticationScheme); // this used to be "Automatic" 1212var result = await context.AuthenticateAsync(JwtBearerDefaults.AuthenticationScheme); 1230var authenticationResult = await context.AuthenticateAsync(JwtBearerDefaults.AuthenticationScheme);
JwtBearerTests_Handler.cs (3)
1235var result = await context.AuthenticateAsync(JwtBearerDefaults.AuthenticationScheme); // this used to be "Automatic" 1271var result = await context.AuthenticateAsync(JwtBearerDefaults.AuthenticationScheme); 1289var authenticationResult = await context.AuthenticateAsync(JwtBearerDefaults.AuthenticationScheme);
PolicyTests.cs (6)
89await context.AuthenticateAsync("forward"); 145await context.AuthenticateAsync("forward"); 206await context.AuthenticateAsync("forward"); 258await context.AuthenticateAsync("forward"); 315await context.AuthenticateAsync("forward"); 477var result = await context.AuthenticateAsync(name);
TwitterTests.cs (1)
565var result = await context.AuthenticateAsync(TestExtensions.CookieAuthenticationScheme);
Microsoft.AspNetCore.Authorization.Policy (1)
PolicyEvaluator.cs (1)
42var result = await context.AuthenticateAsync(scheme);
Microsoft.AspNetCore.Identity (4)
SignInManager.cs (4)
164var auth = await Context.AuthenticateAsync(AuthenticationScheme); 439var result = await Context.AuthenticateAsync(IdentityConstants.TwoFactorRememberMeScheme); 689var auth = await Context.AuthenticateAsync(IdentityConstants.ExternalScheme); 866var result = await Context.AuthenticateAsync(IdentityConstants.TwoFactorUserIdScheme);
Microsoft.AspNetCore.Identity.InMemory.Test (2)
FunctionalTest.cs (2)
355var result = await context.AuthenticateAsync(IdentityConstants.TwoFactorUserIdScheme); 364var auth = await context.AuthenticateAsync(remainder.Value.Substring(1));
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
AuthenticationTests.cs (3)
208var authResults = await httpContext.AuthenticateAsync(HttpSysDefaults.AuthenticationScheme); 232var authResults = await httpContext.AuthenticateAsync(HttpSysDefaults.AuthenticationScheme); 391var authenticateResult = await httpContext.AuthenticateAsync(HttpSysDefaults.AuthenticationScheme);