Flask-AA
Flask extension for authentication and authorization.
It can be used as an alternative for Flask-Login.
Apart from base functionality for user session management it provides also routes for login (it renders auth/login.html template) and logout.
Users can be checked against external TACACS+ server (the Flask app config should have TACACS_SERVER and TACACS_SECRET_KEY keys).
There is also a UserMixin model class with the following fields (username, remote, password_hash, first_name, last_name, email, active, admin, created, last_login).
Installation
$ pip install Flask-AA
Usage
First create the auth object:
from flask_auth import Auth
auth = Auth()
Then initialize it using init_app method:
auth.init_app(app, db, User, wtf)
# app is your Flask app instance
# db is your Flask-Alchemist instance
# User is your User model
# wtf is your Flask-Formist instance for handling forms
License
Flask-AA was created by Rafal Padkowski. It is licensed under the terms
of the MIT license.
Metadata
Release files for Flask-AA 0.1.0
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 |
|---|---|---|---|---|
| flask_aa-0.1.0.tar.gz | 5.1 kB | Without provenance | Details for flask_aa-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flask_aa-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for flask_aa-0.1.0-py3-none-any.whl |
Total release size: 12.1 kB
Release files / flask_aa-0.1.0.tar.gz
| Download URL | flask_aa-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b79571612648f5fe160b1887d65012daec683ff0a852c92796e1297f5a98c2a7
|
|
BLAKE2b-256 checksum How to use checksums |
17bbaeda461d4db23281f3a6d1550ff1e7f05e90940a6a7d45052aa665ed11e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/5.15.0-79-generic
|
Release files / flask_aa-0.1.0-py3-none-any.whl
| Download URL | flask_aa-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54fd6f1e3dd101d841ce01b4be981a0d9c513ea111a0adbe9a1d4fc407695d27
|
|
BLAKE2b-256 checksum How to use checksums |
6a33f4fbe840a3e6fd970a7759507f0ea7c4d4dea03254b7e4dd153039d8b659
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/5.15.0-79-generic
|
Security for Flask-AA 0.1.0
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.