Open Dean-ZhenYao-Wang opened 4 years ago
@sebastienros Hi, hasn't the problem been solved yet? I see the problem has not been closed.
Did you try it in empty ASP.NET Core app? Is it working?
Yes, it works with Asp.NetCore 3.1.
Could you try it in net6.0? Hope to check this with OC in upcoming days
When both windowsAuthentication and anonymousAuthentication are set to true, the admin page is always inaccessible, prompting no permissions. There is also no way to jump to the admin landing page. old:
context.Result
= context.HttpContext.User.Identity.IsAuthenticated ? (IActionResult)new ForbidResult() : (IActionResult)new ChallengeResult();new
context.Result= !context.HttpContext.User.Identity.IsAuthenticated ? (IActionResult)new ForbidResult() : (IActionResult)new ChallengeResult();
When I use the NEW code, I can solve this problem。