4 implementations of SignOutAsync
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationService.cs (1)
212public virtual async Task SignOutAsync(HttpContext context, string? scheme, AuthenticationProperties? properties)
Microsoft.AspNetCore.Authorization.Test (3)
PolicyEvaluatorTests.cs (2)
201public Task SignOutAsync(HttpContext context, string scheme, AuthenticationProperties properties) 224public Task SignOutAsync(HttpContext context, string scheme, AuthenticationProperties properties)
TestObjects\TestAuthenticationService.cs (1)
50public Task SignOutAsync(HttpContext context, string scheme, AuthenticationProperties properties)
28 references to SignOutAsync
Microsoft.AspNetCore.Authentication.Abstractions (4)
AuthenticationHttpContextExtensions.cs (1)
193GetAuthenticationService(context).SignOutAsync(context, scheme, properties);
AuthenticationOptions.cs (1)
79/// Used as the default scheme by <see cref="IAuthenticationService.SignOutAsync(HttpContext, string, AuthenticationProperties)"/>.
IAuthenticationSchemeProvider.cs (2)
59/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.SignOutAsync(HttpContext, string, AuthenticationProperties)"/>. 63/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.SignOutAsync(HttpContext, string, AuthenticationProperties)"/>.</returns>
Microsoft.AspNetCore.Authentication.Core (2)
AuthenticationSchemeProvider.cs (2)
107/// Returns the scheme that will be used by default for <see cref="IAuthenticationService.SignOutAsync(HttpContext, string, AuthenticationProperties)"/>. 111/// <returns>The scheme that will be used by default for <see cref="IAuthenticationService.SignOutAsync(HttpContext, string, AuthenticationProperties)"/>.</returns>
Microsoft.AspNetCore.Http.Results.Tests (4)
SignOutResultTests.cs (4)
20.Setup(c => c.SignOutAsync(It.IsAny<HttpContext>(), null, null)) 39.Setup(c => c.SignOutAsync(It.IsAny<HttpContext>(), "", null)) 59.Setup(c => c.SignOutAsync(It.IsAny<HttpContext>(), "Scheme1", authProperties)) 63.Setup(c => c.SignOutAsync(It.IsAny<HttpContext>(), "Scheme2", authProperties))
Microsoft.AspNetCore.Identity.Test (10)
SecurityStampValidatorTest.cs (3)
118authService.Setup(c => c.SignOutAsync(httpContext.Object, IdentityConstants.TwoFactorRememberMeScheme, /*properties*/null)).Returns(Task.CompletedTask).Verifiable(); 213authService.Setup(c => c.SignOutAsync(httpContext.Object, IdentityConstants.TwoFactorRememberMeScheme, /*properties*/null)).Returns(Task.CompletedTask).Verifiable(); 338authService.Setup(c => c.SignOutAsync(httpContext.Object, IdentityConstants.TwoFactorRememberMeScheme, /*properties*/null)).Returns(Task.CompletedTask).Verifiable();
SignInManagerTest.cs (7)
538auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ExternalScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable(); 539auth.Setup(a => a.SignOutAsync(context, IdentityConstants.TwoFactorUserIdScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable(); 684auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ExternalScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable(); 685auth.Setup(a => a.SignOutAsync(context, IdentityConstants.TwoFactorUserIdScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable(); 819auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ApplicationScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable(); 820auth.Setup(a => a.SignOutAsync(context, IdentityConstants.TwoFactorUserIdScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable(); 821auth.Setup(a => a.SignOutAsync(context, IdentityConstants.ExternalScheme, It.IsAny<AuthenticationProperties>())).Returns(Task.FromResult(0)).Verifiable();
Microsoft.AspNetCore.Mvc.Core.Test (8)
SignOutResultTest.cs (8)
24.Setup(c => c.SignOutAsync(httpContext.Object, null, null)) 50.Setup(c => c.SignOutAsync(httpContext.Object, "", null)) 77.Setup(c => c.SignOutAsync(httpContext.Object, "Scheme1", authProperties)) 81.Setup(c => c.SignOutAsync(httpContext.Object, "Scheme2", authProperties)) 107.Setup(c => c.SignOutAsync(httpContext.Object, null, null)) 127.Setup(c => c.SignOutAsync(httpContext.Object, "", null)) 148.Setup(c => c.SignOutAsync(httpContext.Object, "Scheme1", authProperties)) 152.Setup(c => c.SignOutAsync(httpContext.Object, "Scheme2", authProperties))