Skip to main content

django Auth plugin for HTTPie.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpie-django-auth-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file httpie-django-auth-0.1.1.tar.gz.

File metadata

File hashes

Hashes for httpie-django-auth-0.1.1.tar.gz
Algorithm Hash digest
SHA256 216d1dc3925918cb248fdf093ef6def3658a2744aa02ce89a48a06642d4a2add
MD5 d0d8f9237881f8749ba315c9bf31a391
BLAKE2b-256 87e946a546fa2a6eb753ff1b504466933a30468df08f45493856d2addf5bbfcc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page