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)
52public override async Task ForbidAsync(HttpContext context, string? scheme, AuthenticationProperties? properties)
3 references to ForbidAsync
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationServiceImpl.cs (1)
56await base.ForbidAsync(context, scheme, properties);
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));