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
Close
Hashes for channels_auth_token_middlewares-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dd6103b24674df721f2e2e279f2dec9de59bf14d7db92e8065e8f53b3e990a7 |
|
MD5 | a8dc71e71be51358c7d63bc745365074 |
|
BLAKE2b-256 | 44f0f42a5f13f3f5410832378554df0e9d7ace32b7a92e56270c019f109e770a |
Close
Hashes for channels_auth_token_middlewares-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f0359d906b6acd56d97f508793f3aff89b09d5574f9f4865ac310af6160adb2 |
|
MD5 | 1b1ab03515f88fa6d34370ad4e060b24 |
|
BLAKE2b-256 | 37bae08c0bb0d5c082301171ce3b5259514737c98debfc38fbe182f8edad1660 |