Implemented interface member:
method
ForbidAsync
Microsoft.AspNetCore.Authentication.IAuthenticationService.ForbidAsync(Microsoft.AspNetCore.Http.HttpContext, System.String, Microsoft.AspNetCore.Authentication.AuthenticationProperties)
2 references to ForbidAsync
Microsoft.AspNetCore.Authentication.Test (2)
AuthenticationMetricsTest.cs (2)
191await authenticationService.ForbidAsync(httpContext, scheme: "custom", properties: null); 217var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => authenticationService.ForbidAsync(httpContext, scheme: "custom", properties: null));