Access Token auth plugin for HTTPie.
Provides generic support for presenting access tokens of any type as long as they can be added to the Authorization
header in the below format:
Authorization: <token_type> <token>
$ pip install git+https://github.com/satterly/httpie-token-auth.gitYou should now see token under --auth-type in $ http --help output.
$ http --auth-type=token --auth='<token_type>:<token>' example.orgTo access a protected resource with a "bearer" token:
$ http --auth-type=token --auth="Bearer:mF_9.B5f-4.1JqM" example.orgTo access a protected resource with a "mac" token:
$ http --auth-type=token --auth='MAC:token="h480djs93hd8"' example.orgCopyright (c) 2016 Nick Satterly. Available under the MIT License.