Skip to main content

A premade django package for authentication with JWT

Project description

Rememeber to add these settings to your settings.py

REST_FRAMEWORK

REST_FRAMEWORK = { 'EXCEPTION_HANDLER': 'accounts.exceptions.core_exception_handler', 'NON_FIELD_ERRORS_KEY': 'error', 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_simplejwt.authentication.JWTAuthentication',), }

DEFAULT USER MODEL

AUTH_USER_MODEL = 'accounts.User'

CORS

CORS_ALLOWED_ORIGINS = config('CORS_ALLOWED_ORIGINS', default='http://127.0.0.1:5173,http://localhost:5173', cast=Csv())

db_from_env = dj_database_url.config(conn_max_age=500) DATABASES['default'].update(db_from_env)

DEFAULT USER MODEL

AUTH_USER_MODEL = 'accounts.User'

In your installed_apps, add:

Third-Party Apps

'rest_framework', 'rest_framework_simplejwt.token_blacklist', 'corsheaders',

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

ss_djangoeasyauth-0.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ss_djangoeasyauth-0.0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file ss_djangoeasyauth-0.0.1.tar.gz.

File metadata

  • Download URL: ss_djangoeasyauth-0.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for ss_djangoeasyauth-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c5d678d3d14b8be212fd0759bb694caf22df5cd8633acae0fb28504e22b63be5
MD5 5a2b9ca66c7dcf19af781718077353d8
BLAKE2b-256 2ef4435ea104f7ea71bb03e4a9e89b8aade0d5e4213aaa7e9c8a5eaed24afd4c

See more details on using hashes here.

File details

Details for the file ss_djangoeasyauth-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ss_djangoeasyauth-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66e7e0896b1f3a9f2eaea3d6769637b9b1c3a873e9205daa381fbed2ec19ffed
MD5 a8dafa9209acec1041c5d27ebc196f96
BLAKE2b-256 7e2b32642b6250d28fd7b5704b469a97834b08ac964c515b99a5c7f7b19567bc

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