A token based User model package with support for Cookies and API token authentication
Project description
User Authentication with Token and/or Cookie Support
This is an initial readme. Check out PYPI: https://pypi.org/project/user-authentication-jr/
Add this to your settings:
- add to
INSTALLED_APPS
INSTALLED_APPS = [
...,
'authentication',
]
- to use the User model
AUTH_USER_MODEL = 'authentication.User'
- add authentication class
DEFAULT_AUTHENTICATION_CLASSES = [...., 'authentication.utils.token.ExpiringTokenAuthentication']
REST_FRAMEWORK_TOKEN_SECONDS_EXPIRY = 3600
- add url entry for module to your urls.py
path('auth/', include('authentication.urls')),
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 user-authentication-jr-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e08f90aa7c3e27b33071aace020ac5f7e8bb42356f6de8120b78a3e53cc1d005 |
|
MD5 | 1d6e993f08f220c83245fc22c51204ba |
|
BLAKE2b-256 | bcf9a8db559991146c6bb6853abd7906e410d70d0d782ed6ed011e8e22fe2c2d |
Close
Hashes for user_authentication_jr-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eacfa2333996a2f15f545395a3ad2ec1288072970b9ef6246b7f865f195fb5a |
|
MD5 | 704e462e18e93c977f5014873f4550c6 |
|
BLAKE2b-256 | 55db07355328cdb0363fabc6155eac6e78c9123e08c7c5c6002f4db1a68f7a0c |