Sending JWT token in the headers with Postman

后端 未结 12 1787
借酒劲吻你
借酒劲吻你 2020-12-07 07:38

I\'m testing an implementation of JWT Token based security based off the following article. I have successfully received a token from the test server. I can\'t figure out ho

12条回答
  •  天命终不由人
    2020-12-07 07:55

    I had the same issue in Flask and after trying the first 2 solutions which are the same (Authorization: Bearer ), and getting this:

    {
        "description": "Unsupported authorization type",
        "error": "Invalid JWT header",
        "status_code": 401
    }
    

    I managed to finally solve it by using:

    Authorization: jwt 
    

    Thought it might save some time to people who encounter the same thing.

提交回复
热议问题