Adds two factor authentication to django-allauth.
Project description
django-allauth-2f2a is a port of django-allauth-2fa that adds two-factor authentication to django-allauth and intends to continue active development of the code. The current goals include generating SVG codes as files to allow stricter content security policies, configuration of form classes used by the app to allow subclassing forms for use with django-crispy-forms, and improved CI and testing.
Features
Add two-factor authentication views and workflow to django-allauth.
Support single-use back-up codes.
Compatibility
django-allauth-2f2a will only maintain compatibility with supported versions of Django and python and recent, secure versions of django-allauth, and django-otp, currently:
Python 3.6-3.9.
Django 2.2, 3.2.
django-allauth 0.44.0 and newer.
django-otp 1.0.0 and newer.
Running Tests
Currently, tests can be run using the standard Django testing facility:
python manage.py test
Project tests will be moved to pytest in the future.
Running the Test Project
The test project can also be used as a minimal example using the following:
# Migrate the SQLite database first.
DJANGO_SETTINGS_MODULE=tests.run_settings python manage.py migrate
# Run the server with debug.
DJANGO_SETTINGS_MODULE=tests.run_settings python manage.py runserver_plus
# Run the shell.
DJANGO_SETTINGS_MODULE=tests.run_settings python manage.py shell_plus
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 Distributions
Built Distribution
Hashes for django_allauth_2f2a-0.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f42c46633f7815341cfc986dcef8efe2907f19c630b77a5ae971d4249cf31618 |
|
MD5 | a9d3a11b3ad69106d9c2820e3a764277 |
|
BLAKE2b-256 | ee4e38a043187b49612c011a916f1f4ff14638540fa093c4b85b0b88be5cf2a9 |