Skip to main content

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)

Source distribution for Flask-AA 0.1.0
File Size Uploaded
flask_aa-0.1.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Flask-AA 0.1.0
File Interpreter ABI Platform
flask_aa-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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