Adds two factor authentication to django-allauth
Project description
django-allauth-2fa adds two-factor authentication to django-allauth. django-allauth is a set of Django applications which help with authentication, registration, and other account management tasks.
- Source code
- Documentation
Features
Adds two-factor authentication views and workflow to django-allauth.
Supports Authenticator apps via a QR code when enabling 2FA.
Supports single-use back-up codes.
Compatibility
django-allauth-2fa attempts to maintain compatibility with supported versions of Django, django-allauth, and django-otp.
Current versions supported together is:
Django |
django-allauth |
django-otp |
Python |
---|---|---|---|
3.2 |
0.53.0 |
1.1 |
3.7, 3.8, 3.9, 3.10 |
4.0 |
0.53.0 |
1.1 |
3.8, 3.9, 3.10, 3.11 |
4.1 |
0.53.0 |
1.1 |
3.8, 3.9, 3.10, 3.11 |
4.2 |
0.53.0 |
1.1 |
3.8, 3.9, 3.10, 3.11 |
Contributing
django-allauth-2fa was initially created by Víðir Valberg Guðmundsson (@valberg), was maintained by Percipient Networks for many years, and is now maintained by Valohai. Please feel free to contribute if you find django-allauth-2fa useful!
Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
If you feel uncomfortable or uncertain about an issue or your changes, feel free to email support@percipientnetworks.com and we will happily help you.
Fork the repository on GitHub to start making your changes to the main branch (or branch off of it).
Write a test which shows that the bug was fixed or that the feature works as expected.
Send a pull request and bug the maintainer until it gets merged and published.
Running tests
Tests can be run using [pytest](https://docs.pytest.org/en/6.2.x/).
pip install -r requirements-test.txt
py.test
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.settings python manage.py migrate
# Run the server with debug.
DJANGO_SETTINGS_MODULE=tests.settings python manage.py runserver_plus
# Run the shell.
DJANGO_SETTINGS_MODULE=tests.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 Distribution
Built Distribution
Hashes for django_allauth_2fa-0.11.0rc0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bd1831986f9f5beaebb72b0de87d215fe6c2372c1a7dce2ee856914d7f62677 |
|
MD5 | 5a7eb15a36ec4fb823ae2f3e466da550 |
|
BLAKE2b-256 | 7b42532d5d1ffe3295e194d231c68852a764dbf6ce5192fab85261da90485d25 |
Hashes for django_allauth_2fa-0.11.0rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c279483ec7bbf401e5878537f212a25be0063f257bc887e80dd1ce6b34224de5 |
|
MD5 | 6eeef9f14d18bb554b236d77ff1bb78f |
|
BLAKE2b-256 | ee1f75e38717c86def262e39bc1995f9b1c95c77e24721464a4b7a72e99652ec |