This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Description
While looking through the code I noticed that nothing uses the configured forbid schemes by default (GetDefaultForbidSchemeAsync).
|
public virtual async Task ForbidAsync(HttpContext context, string scheme, AuthenticationProperties properties) |
|
{ |
|
if (scheme == null) |
|
{ |
|
var defaultChallengeScheme = await Schemes.GetDefaultChallengeSchemeAsync(); |
|
scheme = defaultChallengeScheme?.Name; |
|
if (scheme == null) |
|
{ |
|
throw new InvalidOperationException($"No authenticationScheme was specified, and there was no DefaultChallengeScheme found."); |
|
} |
|
} |
Seems like ForbidAsync should use the specificed ForbidScheme (if any).
/cc @HaoK