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
- Channels>=4.1
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
Usage
Run
$ docker compose -f docker-compose.tests.yml up
Clean
$ docker compose -f docker-compose.tests.yml down
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file channels_auth_token_middlewares-1.3.1.tar.gz.
File metadata
- Download URL: channels_auth_token_middlewares-1.3.1.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41e341858584de80b262508140ae7c783f61d84d548757fd01894e4da949bb5c
|
|
| MD5 |
7b54581b678c3845f92e44f01796f404
|
|
| BLAKE2b-256 |
46103df99b809186ceb7adb1bdc16a156218283617c47754c058a4fbcbe892a9
|
File details
Details for the file channels_auth_token_middlewares-1.3.1-py3-none-any.whl.
File metadata
- Download URL: channels_auth_token_middlewares-1.3.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8775fc3ca222e0c2087d9710722d36ebd36225c14f5cc5c1d2dd3c781c591d23
|
|
| MD5 |
9366cbe6083a9d89494ba16d005b1575
|
|
| BLAKE2b-256 |
8012e7941c8d7bc26e62d0171ffa11440cf54edc0fa171475ca837896b67fda1
|