Metadata-Version: 2.1
Name: gspot_django_auth
Version: 0.0.9
Summary: A Django app for auth.
Home-page: https://github.com/DJWOMS/GSpot
Author: Kosenko Viktor
Author-email: oxpaoff <kosenkoviktor11@gmail.com>
License: MIT License
Project-URL: Homepage, https://github.com/oxpaoff/gspot_auth
Project-URL: Bug Tracker, https://github.com/oxpaoff/gspot_auth/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE

# Overview

GSpot Auth is a Django app for GSpot project https://github.com/DJWOMS/GSpot

Quick start
-----------

1. Add "gspot_auth" to your INSTALLED_APPS setting like this:

```
INSTALLED_APPS = [
    ...
    'gspot_django_auth',
]
```

2. Define these parameters in `settings.py`

- `REDIS_ACCESS_PREFIX`
- `REDIS_ACCESS_DB`
- `REDIS_HOST`
- `REDIS_PORT`
- `REDIS_PASSWORD`
- `GET_TOKEN_FROM` - 'headers' or 'cookies'

3. Add CustomJWTAuthentication to DEFAULT_AUTHENTICATION_CLASSES in settings.py

```
REST_FRAMEWORK = {
    ...
    'DEFAULT_AUTHENTICATION_CLASSES': [
        'gspot_django_auth.authentication.CustomJWTAuthentication'
    ],
}
```
