Skip to main content

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

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.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: httpie-django-auth-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for httpie-django-auth-0.1.2.tar.gz
Algorithm Hash digest
SHA256 133229743412eca5ad466839a1308194fdc4ba3617608dc3d7ef7efbd6793275
MD5 8fb8acfa5ffb7440b65f26c0a71ca291
BLAKE2b-256 21e2a9e90d426af8743964b3c03095112b4b6464abc38460a2c9e57fbc3c1236

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 file

0.1.1

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page