# Django Channels auth token middlewares
> Provides Django REST framework [token authentication](https://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication) middleware, [Simple JWT](https://django-rest-framework-simplejwt.readthedocs.io/en/latest/index.html) middleware and easily extendable middlewares to work with auth tokens placed in request headers, cookie and query string.
## Requirements
- Channels=4.0
## Install
1. `$ pip install channels-auth-token-middlewares`
2. Add app name to `INSTALLED_APPS`
```python
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
[Explore](tutorial)
## Docs
[Explore](docs)
## Tests
### Requirements
- Docker>=19
### Usage
#### Run
`$ docker compose -f docker-compose.tests.yml up`
#### Clean
`$ docker compose -f docker-compose.tests.yml down`
Raw data
{
"_id": null,
"home_page": "https://github.com/YegorDB/django-channels-auth-token-middlewares",
"name": "channels-auth-token-middlewares",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "django channels middleware",
"author": "Yegor Bitensky",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/8c/de/6db02e7748cf7e60f5bdaa0fa50d7eeaebd3ed1b39115a9d17c3f728d244/channels_auth_token_middlewares-1.2.0.tar.gz",
"platform": null,
"description": "# Django Channels auth token middlewares\n\n> Provides Django REST framework [token authentication](https://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication) middleware, [Simple JWT](https://django-rest-framework-simplejwt.readthedocs.io/en/latest/index.html) middleware and easily extendable middlewares to work with auth tokens placed in request headers, cookie and query string.\n\n\n## Requirements\n- Channels=4.0\n\n\n## Install\n1. `$ pip install channels-auth-token-middlewares`\n2. Add app name to `INSTALLED_APPS`\n```python\nINSTALLED_APPS = [\n # base django apps (django.contrib.auth is required)\n # other apps this one depends on (like rest_framework if it's necessary)\n 'channels_auth_token_middlewares',\n # custom apps\n]\n```\n\n## Tutorial\n[Explore](tutorial)\n\n\n## Docs\n[Explore](docs)\n\n\n## Tests\n\n### Requirements\n- Docker>=19\n\n### Usage\n\n#### Run\n`$ docker compose -f docker-compose.tests.yml up`\n\n#### Clean\n`$ docker compose -f docker-compose.tests.yml down`\n",
"bugtrack_url": null,
"license": null,
"summary": "Django Channels auth token middlewares",
"version": "1.2.0",
"project_urls": {
"Homepage": "https://github.com/YegorDB/django-channels-auth-token-middlewares"
},
"split_keywords": [
"django",
"channels",
"middleware"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "35620ad180afe1bd057c924d059c03bb2f607caf21261bf56a0995c931293c19",
"md5": "4ff7ba156b68f5d968df4073b1d48fb7",
"sha256": "2fb0babdbc102ee7c20a120c6bd604359137cca9f9b1dbbbb6eddca9b65a7d51"
},
"downloads": -1,
"filename": "channels_auth_token_middlewares-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4ff7ba156b68f5d968df4073b1d48fb7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 11073,
"upload_time": "2025-07-15T10:19:09",
"upload_time_iso_8601": "2025-07-15T10:19:09.783538Z",
"url": "https://files.pythonhosted.org/packages/35/62/0ad180afe1bd057c924d059c03bb2f607caf21261bf56a0995c931293c19/channels_auth_token_middlewares-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8cde6db02e7748cf7e60f5bdaa0fa50d7eeaebd3ed1b39115a9d17c3f728d244",
"md5": "812e67452bffbbe9bfd6544e50c5a0be",
"sha256": "04987f04a569378762533374d2573bd2417c7fb5ca64c69007107c3ddb5cea49"
},
"downloads": -1,
"filename": "channels_auth_token_middlewares-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "812e67452bffbbe9bfd6544e50c5a0be",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 8270,
"upload_time": "2025-07-15T10:19:11",
"upload_time_iso_8601": "2025-07-15T10:19:11.314456Z",
"url": "https://files.pythonhosted.org/packages/8c/de/6db02e7748cf7e60f5bdaa0fa50d7eeaebd3ed1b39115a9d17c3f728d244/channels_auth_token_middlewares-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-15 10:19:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "YegorDB",
"github_project": "django-channels-auth-token-middlewares",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "channels-auth-token-middlewares"
}