Django Channels auth token middlewares
Project description
Django Channels auth token middlewares
Provides Django REST framework token authentication middleware, Simple JWT middleware and easily extendable middlewares to work with auth tokens placed in request headers, cookie and query string.
Requirements
- Python>=3.6
- Channels>=3
Install
$ pip install channels-auth-token-middlewares
- Add app name to
INSTALLED_APPS
INSTALLED_APPS = [
# base django apps (django.contrib.auth is required)
# other apps this one depends on (like rest_framework if it's necessary)
'channels_auth_token_middlewares',
# custom apps
]
Tutorial
Docs
Tests
Requirements
- Docker>=19
- docker-compose>=1.25
Usage
Run
$ docker-compose -f docker-compose.tests.yml up
Clean
$ docker-compose -f docker-compose.tests.yml down
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file channels_auth_token_middlewares-1.0.1.tar.gz
.
File metadata
- Download URL: channels_auth_token_middlewares-1.0.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd04d7d2e63d22ad34b5b9560cb584203a9632e71b588a82440049c0c9d054c0 |
|
MD5 | 3b0af70f4846130c6abe23f5fe35c99f |
|
BLAKE2b-256 | 00f0e10dc4ecca9e87878325ed88becfc8300b28f02a92f916f9b539630b005c |
File details
Details for the file channels_auth_token_middlewares-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: channels_auth_token_middlewares-1.0.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 483f1942a2c5d01185b3a6b3f1e92956319cf388e707ee632e6861be2820cd27 |
|
MD5 | 7c0f04d33af80c2eeaed7db9cdc23013 |
|
BLAKE2b-256 | a73e041f1e33fddbc170a879afdb87ae41864e241c0c5f7ab2d6a1549520181c |