A Flask extension for handling user authentication.
Project description
FlaskAuth2FA Package
This package provides a Flask extension for handling user authentication.
Installation
To install FlaskAuth2FA, run:
pip install FlaskAuth2FA
Usage
To use FlaskAuth2FA in your Flask application, register the authentication Blueprint:
from flask_auth import auth
app.register_blueprint(auth, url_prefix='/auth')
Next, specify where to redirect the user after successful logins:
# Set a default or specific success URL for each project
app.config['LOGIN_SUCCESS_URL'] = 'dashboard' # Use the endpoint name here
- !!Note!! This should be a route that actually routes to something in your project. Otherwise, you will get a 500 or 404.
See the documentation for more details.
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
FlaskAuth2FA-1.7.5.tar.gz
(9.0 kB
view details)
Built Distribution
File details
Details for the file FlaskAuth2FA-1.7.5.tar.gz
.
File metadata
- Download URL: FlaskAuth2FA-1.7.5.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d59491cf5f0f3df2ba1701b2b6cb2660651ab2352ddaddbdfd6abc55d6e4bf7c |
|
MD5 | 43943fd53361098f249c602d0b4d6258 |
|
BLAKE2b-256 | 64f8e3d496a42610269cefa658288ef04128f72d240afc1e4d320e3c62f1d860 |
File details
Details for the file FlaskAuth2FA-1.7.5-py3-none-any.whl
.
File metadata
- Download URL: FlaskAuth2FA-1.7.5-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b76b2c0edf7edb1ed92bcd8cd86f430091a2301572812e4639890abad5250b17 |
|
MD5 | e74d80e03cca05853948d5bf7353fac0 |
|
BLAKE2b-256 | a825be252ca9e61c62710038497447e80aaf086a094886ae3b07a493146a82f8 |