Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chillaranand/httpie-django-auth
httpie auth plugin for django
https://github.com/chillaranand/httpie-django-auth
api cli django httpie python
Last synced: 2 months ago
JSON representation
httpie auth plugin for django
- Host: GitHub
- URL: https://github.com/chillaranand/httpie-django-auth
- Owner: ChillarAnand
- License: mit
- Created: 2017-04-20T14:13:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T13:27:25.000Z (almost 6 years ago)
- Last Synced: 2024-09-18T01:05:21.188Z (3 months ago)
- Topics: api, cli, django, httpie, python
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
httpie-django-auth
=====================django auth plugin for HTTPie.
Installation
==============.. code-block:: shell
$ 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.
.. code-block:: shell
export HTTPIE_DJANGO_AUTH_URL='/accounts/login/'
Make requests to your site
.. code-block:: shell
$ 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/profileLicense
=========See LICENSE.txt