Flask-AWSCognito
Authenticate users with AWS Cognito
Decision gist · record as of 2026-08-14
No. The package is abandoned (last commit 2021-04-29) and will not receive updates for new Flask versions, modern dependency versions, or changes to AWS Cognito's token formats. For new projects, use a maintained alternative. For existing projects still on older Flask versions with frozen dependencies, it may work, but you assume all maintenance risk.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires AWS Cognito user pool credentials (region, pool ID, client ID, client secret) configured via Flask app.config.
- Low install friction with three common dependencies.
- However, the package is abandoned—last release was 2019-12-16 and last commit 2021-04-29—so it will not receive security updates or bug fixes for new Flask or dependency versions.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you may use, modify, and distribute the package freely with minimal restrictions, though you must retain the license notice.
last release 2019-12-16 (2433 days) · last repo commit 2021-04-29 · 28 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 80,526 downloads/mo, #14,287 on PyPI
Alternatives
Verify before relying
pip install Flask-AWSCognito
from flask import Flask
from flask_awscognito import AWSCognitoAuthentication
app = Flask(__name__)
app.config['AWS_DEFAULT_REGION'] = 'eu-west-1'
app.config['AWS_COGNITO_USER_POOL_ID'] = 'eu-west-1_XXX'
app.config['AWS_COGNITO_USER_POOL_CLIENT_ID'] = 'YYY'
aws_auth = AWSCognitoAuthentication(app)
@app.route('/')
@aws_auth.authentication_required
def index():
return {'claims': aws_auth.claims}- Whether the package works with recent Flask versions given its 2021 last commit date.
- Current compatibility with modern python-jose and requests versions.
- Whether JWT validation logic matches current AWS Cognito token formats and signing practices.
What it is and what it does
Flask-AWSCognito is a Flask extension that wraps AWS Cognito authentication into decorators and helper methods. It handles the OAuth redirect flow with Cognito, retrieves and validates access tokens, and exposes user claims to route handlers. The package depends on Flask, python-jose for JWT validation, and requests for HTTP calls to Cognito endpoints.
The extension is configured via Flask's app.config with your Cognito domain, user pool ID, and client credentials. Routes are protected with the @authentication_required decorator, which enforces that a valid token is present before the handler runs. Claims are then available as aws_auth.claims or via Flask's g object. However, the package has been abandoned since its last commit on 2021-04-29 and will not track changes to Flask, AWS Cognito's token formats, or its dependencies.
Use it for
- Protect Flask routes with AWS Cognito user authentication without building OAuth redirect flow logic from scratch.
- Extract and validate JWT claims from Cognito tokens to authorize requests based on user attributes.
- Implement sign-in redirects and token exchange callbacks in a Flask app backed by a Cognito user pool.
- Add role or group-based access control by inspecting Cognito claims in protected route handlers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last commit 2021-04-29) and will not receive updates for new Flask versions, modern dependency versions, or changes to AWS Cognito's token formats. For new projects, use a maintained alternative. For existing projects still on older Flask versions with frozen dependencies, it may work, but you assume all maintenance risk.
Install
flask-awscognito on PyPI
Before you install
Low install friction with three common dependencies. However, the package is abandoned—last release was 2019-12-16 and last commit 2021-04-29—so it will not receive security updates or bug fixes for new Flask or dependency versions.
Requires AWS Cognito user pool credentials (region, pool ID, client ID, client secret) configured via Flask app.config.
License in practice
MIT license is permissive; you may use, modify, and distribute the package freely with minimal restrictions, though you must retain the license notice.
Quickstart
pip install Flask-AWSCognito
from flask import Flask
from flask_awscognito import AWSCognitoAuthentication
app = Flask(__name__)
app.config['AWS_DEFAULT_REGION'] = 'eu-west-1'
app.config['AWS_COGNITO_USER_POOL_ID'] = 'eu-west-1_XXX'
app.config['AWS_COGNITO_USER_POOL_CLIENT_ID'] = 'YYY'
aws_auth = AWSCognitoAuthentication(app)
@app.route('/')
@aws_auth.authentication_required
def index():
return {'claims': aws_auth.claims}
Verify before relying
- Whether the package works with recent Flask versions given its 2021 last commit date.
- Current compatibility with modern python-jose and requests versions.
- Whether JWT validation logic matches current AWS Cognito token formats and signing practices.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesFlaskpython-joserequests |
| Maintenance | Abandoned 2,433 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 80,526 / month, #14,287 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python Modules |
Evidence: Flask_AWSCognito-1.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “flask cognito authentication”
- Flask-AWSCognitoIntegrates AWS Cognito user authentication into Flask applications,…
- Flask-CognitoFlask-Cognito integrates AWS Cognito JWT authentication into Flask…
- cognitojwtDecodes and verifies Amazon Cognito JWT tokens in both synchronous…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also Flask-Cognito · Flask-HTTPAuth · pycognito · warrant · aws-wsgi · Flask-Paranoid · Flask-JWT-Extended · fastapi-cloudauth · fastapi-cognito · cognitojwt