This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
ForbidAsync uses challenge schemes instead of forbid schemes #917
Comments
Do we feel this is a common case? How bad is the workaround? |
@Eilon yes it's very common. The work around isn't that bad but it's non obvious. The application crashes (Stackoverflow) as a result of the recommended configuration. |
@Eilon this alone doesn't actually fix the issue though. This issue aspnet/Security#1376 requires that this be fixed aspnet/Security#1378 as well. |
Got it, this does sound patch-worthy. |
@jkotalik it looks like you fixed this for 2.1.0 (dev) already. If that's correct, please mark as done and close. Thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While looking through the code I noticed that nothing uses the configured forbid schemes by default (GetDefaultForbidSchemeAsync).
HttpAbstractions/src/Microsoft.AspNetCore.Authentication.Core/AuthenticationService.cs
Lines 112 to 122 in d894584
Seems like ForbidAsync should use the specificed ForbidScheme (if any).
/cc @HaoK
The text was updated successfully, but these errors were encountered: