Skip to main content

A Django package that allows multi token authentication for Django Rest Framework(DRF)

Project description

django-multi-auth-token

This package allows multi token authentication for Django Rest Framework(DRF)

Quick start

1. Add “multi_auth_token” to your INSTALLED_APPS setting like this:: `` INSTALLED_APPS = [ … ‘multi_auth_token’, ] ``

2. Add “multi_auth_token.authentication.MultiTokenAuthentication” to “DEFAULT_AUTHENTICATION_CLASSES” like this: `` REST_FRAMWORK = { ‘DEFAULT_AUTHENTICATION_CLASSES’: [ ‘multi_auth_token.authentication.MultiTokenAuthentication’, … ] } ``

3. Migrate `` python manage.py migrate ``

IMPORTANT

  1. DO NOT add “rest_framework.authtoken” to your INSTALLED_APPS.

  2. DO NOT add “rest_framework.authentication.TokenAuthentication” to DEFAULT_AUTHENTICATION_CLASSES

TODO

Changelog

1.0.0 - 2023-03-01 Arindam Dutta - First release

Copyright(c) 2023 Arindam Dutta

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

django-multi-auth-token-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file django-multi-auth-token-1.0.0.tar.gz.

File metadata

  • Download URL: django-multi-auth-token-1.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for django-multi-auth-token-1.0.0.tar.gz
Algorithm Hash digest
SHA256 05bc494cc3c70c5483d0e24c7fc72caef4629dc82cb0bcb5d51f757fbff98bd1
MD5 5429c85e686585285a453dca322e14e7
BLAKE2b-256 6c0ccb6090bc7bc9c9df9cf342b2eebcda20ac83e463d2fd46628fc3829d41f1

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