At Teracy, we embrace JWT (JSON Web Tokens)1 for REST APIs to make secure requests. Just for your information: “JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties”.
We’re using JWT for our REST APIs basing on the flask-boilerplate2 project that are empowering our clients’ web applications and our internal projects.
And to test REST APIs, we’re using a really simple powerful http client called httpie3 .
To make a JWT request with
httpie, you need to use the following command:
Authorization with the exact value format is a bit hard and error-prone, that’s the
reason why we created httpie-jwt-auth plugin with the first v0.1.0 release. After installing
httpie-jwt-auth, you could use this instead:
That’s it. It’s really easy to use for any JWT requests with
Please note that colon character at the end of
jwt_token_here, we’re going to work on removing
the redundant colon character with: https://github.com/teracyhq/httpie-jwt-auth/issues/3
Hope that you’ll like it and use it as much as we do.
Happy developing and debugging!