A Django app for auth.
Project description
Overview
GSpot Auth is a Django app for GSpot project https://github.com/DJWOMS/GSpot
Installation
$ pip install gspot-django-auth
Quick start
- Add "gspot_auth" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'gspot_django_auth',
]
- Define these parameters in
settings.py
REDIS_ACCESS_PREFIX
REDIS_ACCESS_DB
REDIS_HOST
REDIS_PORT
REDIS_PASSWORD
GET_TOKEN_FROM
- 'headers' or 'cookies'
- Add CustomJWTAuthentication to DEFAULT_AUTHENTICATION_CLASSES in settings.py
REST_FRAMEWORK = {
...
'DEFAULT_AUTHENTICATION_CLASSES': [
'gspot_django_auth.authentication.CustomJWTAuthentication'
],
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gspot_django_auth-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f192ebd3530dbd7482790021043cf0b4e69cb17442aa20e4548e05b364d88d3 |
|
MD5 | bbac016976c057e541d6c392578b720a |
|
BLAKE2b-256 | 9d22c92b544d407b128bdb70f9f4f6455059219367953e3c9df4929949d1ef86 |