79321483

Date: 2025-01-01 10:55:26
Score: 4.5
Natty:
Report link

So what I did this is after searching for so long, created another class

public class AuthorizationMiddlewareResultHandler : IAuthorizationMiddlewareResultHandler
{
    public Task HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
    {
        return next(context);
    }
}

Injected it

builder.Services.AddSingleton<IAuthorizationMiddlewareResultHandler, AuthorizationMiddlewareResultHandler>();

And everything started to work. Can someone please explain me what is happening?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can someone please explain me what
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: DrXSsive