50 references to SignOutAsync
Aspire.Dashboard (1)
DashboardEndpointsBuilder.cs (1)
30await Microsoft.AspNetCore.Authentication.AuthenticationHttpContextExtensions.SignOutAsync(
Identity.ExternalClaims (3)
Pages\Account\Login.cshtml.cs (1)
61await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Pages\Account\Manage\ExternalLogins.cshtml.cs (2)
76await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme); 105await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Microsoft.AspNetCore.Authentication.Core.Test (4)
AuthenticationServiceTests.cs (4)
146await context.SignOutAsync("uber"); 147var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => context.SignOutAsync("base")); 150await context.SignOutAsync("signout"); 151await context.SignOutAsync("signin");
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
200await Context.SignOutAsync(Options.SignOutScheme);
Microsoft.AspNetCore.Authentication.Test (20)
CookieTests.cs (5)
123return context.SignOutAsync("Oops"); 542ctx.HttpContext.SignOutAsync("Cookies"); 1404app.Map("/notlogout", signoutApp => signoutApp.Run(context => context.SignOutAsync("Cookies"))); 1426app.Map("/logout", signoutApp => signoutApp.Run(context => context.SignOutAsync("Cookies"))); 1838await context.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
GoogleTests.cs (1)
1210await Assert.ThrowsAsync<InvalidOperationException>(() => context.SignOutAsync("Google"));
JwtBearerTests.cs (1)
1226await Assert.ThrowsAsync<InvalidOperationException>(() => context.SignOutAsync(JwtBearerDefaults.AuthenticationScheme));
JwtBearerTests_Handler.cs (1)
1293await Assert.ThrowsAsync<InvalidOperationException>(() => context.SignOutAsync(JwtBearerDefaults.AuthenticationScheme));
MicrosoftAccountTests.cs (1)
402await Assert.ThrowsAsync<InvalidOperationException>(() => context.SignOutAsync("Microsoft"));
OpenIdConnect\OpenIdConnectEventTests.cs (2)
963return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 990return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme);
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (2)
963return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme); 990return context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme);
OpenIdConnect\TestServerBuilder.cs (1)
93await context.SignOutAsync(OpenIdConnectDefaults.AuthenticationScheme);
PolicyTests.cs (5)
101await context.SignOutAsync("forward"); 157await context.SignOutAsync("forward"); 218await context.SignOutAsync("forward"); 270await context.SignOutAsync("forward"); 327await context.SignOutAsync("forward");
TwitterTests.cs (1)
553await Assert.ThrowsAsync<InvalidOperationException>(() => context.SignOutAsync("Twitter"));
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationHandler.cs (1)
496await Context.SignOutAsync(Options.SignOutScheme);
Microsoft.AspNetCore.Identity (8)
SecurityStampValidator.cs (1)
160await SignInManager.Context.SignOutAsync(IdentityConstants.TwoFactorRememberMeScheme);
SignInManager.cs (7)
253await Context.SignOutAsync(AuthenticationScheme); 257await Context.SignOutAsync(IdentityConstants.ExternalScheme); 261await Context.SignOutAsync(IdentityConstants.TwoFactorUserIdScheme); 463return Context.SignOutAsync(IdentityConstants.TwoFactorRememberMeScheme); 510await Context.SignOutAsync(IdentityConstants.ExternalScheme); 515await Context.SignOutAsync(IdentityConstants.TwoFactorUserIdScheme); 846await Context.SignOutAsync(IdentityConstants.ExternalScheme);
Microsoft.AspNetCore.Identity.UI (6)
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (1)
113await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (2)
130await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme); 161await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (1)
113await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (2)
130await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme); 161await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
OpenIdConnectSample (3)
Startup.cs (3)
163await context.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); 175await context.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); 195await context.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
SocialSample (1)
Startup.cs (1)
400await context.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
WsFedSample (2)
Startup.cs (2)
58await context.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); 70await context.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);