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.1.0.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

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