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)
191
await authenticationService.
ForbidAsync
(httpContext, scheme: "custom", properties: null);
217
var ex = await Assert.ThrowsAsync<InvalidOperationException>(() => authenticationService.
ForbidAsync
(httpContext, scheme: "custom", properties: null));