Skip to main content

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

  1. $ pip install channels-auth-token-middlewares
  2. 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

Explore

Docs

Explore

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

channels_auth_token_middlewares-1.3.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file channels_auth_token_middlewares-1.3.1.tar.gz.

File metadata

File hashes

Hashes for channels_auth_token_middlewares-1.3.1.tar.gz
Algorithm Hash digest
SHA256 41e341858584de80b262508140ae7c783f61d84d548757fd01894e4da949bb5c
MD5 7b54581b678c3845f92e44f01796f404
BLAKE2b-256 46103df99b809186ceb7adb1bdc16a156218283617c47754c058a4fbcbe892a9

See more details on using hashes here.

File details

Details for the file channels_auth_token_middlewares-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for channels_auth_token_middlewares-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8775fc3ca222e0c2087d9710722d36ebd36225c14f5cc5c1d2dd3c781c591d23
MD5 9366cbe6083a9d89494ba16d005b1575
BLAKE2b-256 8012e7941c8d7bc26e62d0171ffa11440cf54edc0fa171475ca837896b67fda1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page