Authorization .NET 7 - Minimal API. Jwt token not valid, but everything is connected correctly

38 Views Asked by At

I do not understand what the problem is, this is not the first time I write web applications, but I encountered this in the first, I seem to have connected everything correctly, I will attach the screens from below, but when requesting the method - where authorization is required, throws a 401 error, I always connected JWT like that, but this time something went wrong.

POSTMAN

This is how the JWT setup looks like.

Continue - This is how the JWT setup looks like.

This is what creating a JWT looks like.

Continue - This is what creating a JWT looks like.

**.NET 7 **

Assistance in resolving an error related to authorization.

0

There are 0 best solutions below