IsAuthenticated = false
Hello people out there. I'm starting to get desperated...
I tried many things but the AUTH of my User is always false..
If u need more information, just ask
1 Reply
@Martixx check you order of middlewares.
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis/security?view=aspnetcore-8.0
You can check this link also, there is section Middleware Order:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-6.0#middleware-order
Authentication and authorization in minimal APIs
Learn how to configure authentication and authorization in minimal API apps
ASP.NET Core Middleware
Learn about ASP.NET Core middleware and the request pipeline.