Skip to content

Latest commit

 

History

History
45 lines (25 loc) · 994 Bytes

README.rst

File metadata and controls

45 lines (25 loc) · 994 Bytes

httpie-kazoo-auth

2600hz kazoo auth plugin for HTTPie

Installation

$ pip install httpie-django-auth

You should now see kazoo under --auth-type in $ http --help output.

Usage

By default httpie-kazoo-auth uses /v2/api_auth to get kazoo auth token. If you need to use some other url, set HTTPIE_KAZOO_AUTH_URL environment variable.

export HTTPIE_KAZOO_AUTH_URL='/login/'

Make requests to your site

$ http --auth-type=kazoo --auth='username:password' telco.id
$ http -A=kazoo --auth='username:password' telco.id
$ http -A=kazoo --auth='username:password' telco.id/profile
$ http -A=kazoo --auth='username:password' http://127.0.0.1:8000/profile

License

See LICENSE.txt

This project inspired and using some files taken from httpie-kazoo-auth by (Chillar Anand)[https://github.com/ChillarAnand/httpie-django-auth]