Implemented interface member:
method
ForbidAsync
Microsoft.AspNetCore.Authentication.IAuthenticationService.ForbidAsync(Microsoft.AspNetCore.Http.HttpContext, System.String, Microsoft.AspNetCore.Authentication.AuthenticationProperties)
1 override of ForbidAsync
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationServiceImpl.cs (1)
52
public override async Task
ForbidAsync
(HttpContext context, string? scheme, AuthenticationProperties? properties)
3 references to ForbidAsync
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationServiceImpl.cs (1)
56
await base.
ForbidAsync
(context, scheme, properties);
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));