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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b65abdc021ebb4800cf5a5f529021554ef2e74802d79740215f30ae8ceeabe0 |
|
MD5 | 376140237a2cc6402ca2c62fba6a926e |
|
BLAKE2b-256 | 7190885834c6b6ce7f19fa16e5ce4e5dbe203ec2cfe555675d5a9115c9096571 |
Close
Hashes for user_authentication_jr-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 722ca6722abb781848f528f76ccb2aa2dccbae3da5363dd5a3ab65426cd04064 |
|
MD5 | d5648ddd8be9b81fe97410127caabf14 |
|
BLAKE2b-256 | ee241e4009cd207abeb9bf5e90c9d51aaaa912d56fff5e9029d4161dfc30c4e4 |