Skip to main content

Django Rapyd ModernAuth

This package provides a custom User model where the username is the email address.

Inspiration

Users today expect to use their email address as the username during authentication. This works well because:

  • Users already know their email addresses by heart.
  • Since email addresses are unique, users don't need to remember yet another item when either signing up or logging into web applications. IMHO this is a significant factor that plays a vital role in user adoption.
  • This is a time tested model and many web applications today follow this.

However, Django's default approach for authentication requires a user provide both a username and an email address during sign up and then just use the username during login.

Usage

Note: Django recommends you do this right at the beginning of the project. Making this change mid-project becomes significantly harder.

Install the package with:

pip install django-rapyd-modernauth

Add modernauth to INSTALLED_APPS.

INSTALLED_APPS = [
..
..
"modernauth"
]

Set modernauth.User as the AUTH_USER_MODEL.

AUTH_USER_MODEL = "modernauth.User"

Create models with:

./manage.py migrate

Metadata

Release files for django-rapyd-modernauth 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-rapyd-modernauth 0.0.5
File Size Uploaded Provenance Actions
django_rapyd_modernauth-0.0.5.tar.gz 10.5 kB Without provenance Details for django_rapyd_modernauth-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-rapyd-modernauth 0.0.5
File Interpreter ABI Platform Actions
django_rapyd_modernauth-0.0.5-py3-none-any.whl Python 3 none any Details for django_rapyd_modernauth-0.0.5-py3-none-any.whl

Total release size: 24.4 kB

Release files / django_rapyd_modernauth-0.0.5.tar.gz

Download URL django_rapyd_modernauth-0.0.5.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c8722de1c03c7f616bf3147b697f5f02dca5f54cfce9c8108a520769573e536c
BLAKE2b-256 checksum
How to use checksums
9dbaaafb8bde1e8d7b79a4c359850c14a7a901da26268149f9bad1ec833ff8be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.4

Release files / django_rapyd_modernauth-0.0.5-py3-none-any.whl

Download URL django_rapyd_modernauth-0.0.5-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a85115291cf974b4ab051d83ef2e91c6e4f637771e7735f67a557c23e57c553
BLAKE2b-256 checksum
How to use checksums
b172b1af9c79f2273fb011455adf6482fba5dc987323218148246a95a4f4db31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.4

Security for django-rapyd-modernauth 0.0.5

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.

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page