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

  • Python>=3.6
  • Channels>=3

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
  • 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


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.0.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for channels_auth_token_middlewares-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cd04d7d2e63d22ad34b5b9560cb584203a9632e71b588a82440049c0c9d054c0
MD5 3b0af70f4846130c6abe23f5fe35c99f
BLAKE2b-256 00f0e10dc4ecca9e87878325ed88becfc8300b28f02a92f916f9b539630b005c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for channels_auth_token_middlewares-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 483f1942a2c5d01185b3a6b3f1e92956319cf388e707ee632e6861be2820cd27
MD5 7c0f04d33af80c2eeaed7db9cdc23013
BLAKE2b-256 a73e041f1e33fddbc170a879afdb87ae41864e241c0c5f7ab2d6a1549520181c

See more details on using hashes here.

Supported by

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