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
Somehow postman didn't work for me. I had to use a chrome extension called RESTED which did work.
Here is how to set token this automatically
On your login/auth request
Then for authenticated page
If you wish to use postman the right way is to use the headers as such
key: Authorization
value: jwt {token}
as simple as that.
For people who are using wordpress plugin Advanced Access Manager to open up the JWT Authentication.
The Header field should put Authentication instead of Authorization
AAM mentioned it inside their documentation,
Note! AAM does not use standard Authorization header as it is skipped by most Apache servers. ...
Hope it helps someone! Thanks for other answers helped me alot too!!
In Postman latest version(7++) may be there is no Bearer field in Authorization So go to Header tab
select key as Authorization and in value write JWT
I had the same issue in Flask
and after trying the first 2 solutions which are the same (Authorization: Bearer <token>
), and getting this:
{
"description": "Unsupported authorization type",
"error": "Invalid JWT header",
"status_code": 401
}
I managed to finally solve it by using:
Authorization: jwt <token>
Thought it might save some time to people who encounter the same thing.