Skip to content

ChillarAnand/httpie-django-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httpie-django-auth

django auth plugin for HTTPie.

Installation

$ pip install httpie-django-auth

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

Usage

By default httpie-django-auth uses /admin/login to login. If you need to use some other url for logging, set HTTPIE_DJANGO_AUTH_URL environment variable.

export HTTPIE_DJANGO_AUTH_URL='/accounts/login/'

Make requests to your site

$ http --auth-type=django --auth='username:password' example.org
$ http -A=django --auth='username:password' example.org
$ http -A=django --auth='username:password' example.org/profile
$ http -A=django --auth='username:password' http://127.0.0.1:8000/profile

License

See LICENSE.txt

Releases

No releases published

Packages

No packages published

Languages