ASP.NET core JWT authentication always throwing 401 unauthorized

前端 未结 4 512
借酒劲吻你
借酒劲吻你 2020-12-22 07:37

I\'m trying to implement JWT authentication on my asp.net core webAPI as simply as possible. I don\'t know what i\'m missing but it\'s always returning 401 even with the

4条回答
  •  梦毁少年i
    2020-12-22 07:59

    First you need to check that the JWT token generated using your configureServices code is valid or not.To validate JWT token you can use JWT debugger. It will parse the JWT token value into each parameter by which you can verify that which of the parameter values assigned incorrectly and JWT debugger also provide you JWT valid or invalid. Once you figure this out you can work on identified errors or next course of action.

提交回复
热议问题