django-simple-authentication
Django’s auth.User model uses a username field to uniquely identify a user. django-simple-authentication uniquely identifies users with an email address instead, removing the username field altogether.
Additionally, django-simple-authentication offers a feature that forces users to change their password the next time they log in. This can be done by setting simple_authentication.User.force_password_change to True. The ForcePasswordChangeMiddleware must be installed for this feature to work properly.
Quick-start
Install: pip install django-simple-authentication.
Add: simple_authentication to INSTALLED_APPS.
Add: AUTH_USER_MODEL = 'simple_authentication'.
Add: simple_authentication.middleware.ForcePasswordChanceMiddleware to MIDDLEWARE.
Make migrations: python manage.py makemigrations simple_authentication.
Apply migrations: python manage.py migrate simple_authentication.
Compatibility
django_simple_authentication has been tested on Django versions >= 2.0. It may work without issue on earlier versions of Django (or Python), but this is not officially supported.
Changelog
Version |
Description |
|---|---|
0.1.2 |
Improved unit test coverage (up to 76%). |
0.1.1 |
Ensure migrations are excluded from the PyPI distribution. |
0.1 |
Initial version. |
Metadata
Release files for django-simple-authentication 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-simple-authentication-0.1.2.tar.gz | 8.4 kB | Without provenance | Details for django-simple-authentication-0.1.2.tar.gz |
Release files / django-simple-authentication-0.1.2.tar.gz
| Download URL | django-simple-authentication-0.1.2.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58ad79c15eb917f023a71046dba509645a999f71012c58d98dba72201501a92d
|
|
BLAKE2b-256 checksum How to use checksums |
cd7b0507283cc096836d8765c34188f3be16ff04167b0317a9eb846f9372b3ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for django-simple-authentication 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.