Skip to content

extentsion to django_restframework Token Authentication with expiry, and separate refresh token

Notifications You must be signed in to change notification settings

neel-bp/rest_framework-refreshtoken-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


this package adds some extra features to djangorestframework's Token Authentication like refresh token, lifetime for refresh token and authorization token.

requirements

  • django
  • djagnorestframework

installation

pip install git+https://github.com/neel-bp/rest_framework-refreshtoken-auth.git

instructions

add refreshing_token to INSTALLED_APPS in settings.py

INSTALLED_APPS = [
    ...
    'rest_framework',
    'refreshing_token'
    ...
]

add refreshing_token.expiring_token.ExpiringTokenAuthentication to the list of authentication classes

REST_FRAMEWORK = {
    ...
    'DEFAULT_AUTHENTICATION_CLASSES': (
        ...
        'refreshing_token.expiring_token.ExpiringTokenAuthentication',
    )
    ...
}

finally run python manage.py migrate in your django project

About

extentsion to django_restframework Token Authentication with expiry, and separate refresh token

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages