flask-oidc
OpenID Connect extension for Flask
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. It is well-tested with 100% coverage and supports current Python versions. Install it if you need OIDC authentication in Flask and are using a standards-compliant provider.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a pure-Python wheel.
- Actively maintained with last commit on 2026-07-28 and 100% test coverage.
- Four runtime dependencies (authlib, blinker, flask, requests) are all well-established.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you include the license text.
last release 2025-06-16 (424 days) · last repo commit 2026-07-28 · 40 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 868,192 downloads/mo, #4,853 on PyPI
Alternatives
Verify before relying
pip install flask-oidc
from flask import Flask
from flask_oidc import OpenIDConnect
app = Flask(__name__)
oidc = OpenIDConnect(app)- Whether the package works with all standards-compliant OIDC providers beyond the documented Ipsilon test case.
- Scope and frequency of active development beyond the most recent commit.
What it is and what it does
flask-oidc is a Flask extension that integrates OpenID Connect authentication into your web application. It handles the OIDC protocol flow—redirecting users to an identity provider, validating tokens, and managing sessions—so you don't have to implement those details yourself. The library is designed to work with any standards-compliant OpenID Connect provider, making it a general-purpose authentication layer rather than one tied to a specific service.
The package depends on authlib, flask, requests, and blinker. It supports Python 3.8 through 3.13 and has been actively maintained with 100% test coverage, indicating a stable, well-tested codebase suitable for production use.
Use it for
- Add single sign-on (SSO) to a Flask app using an existing corporate or institutional OpenID Connect provider.
- Integrate user authentication without building your own login form or token validation logic.
- Delegate identity management to a standards-compliant OIDC provider.
- Protect Flask routes by requiring users to authenticate through an external identity provider.
- Build multi-tenant or federated authentication systems that rely on OIDC standards.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. It is well-tested with 100% coverage and supports current Python versions. Install it if you need OIDC authentication in Flask and are using a standards-compliant provider.
Install
flask-oidc on PyPI
Before you install
Low install friction with a pure-Python wheel. Actively maintained with last commit on 2026-07-28 and 100% test coverage. Four runtime dependencies (authlib, blinker, flask, requests) are all well-established.
License in practice
BSD-2-Clause is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you include the license text.
Quickstart
pip install flask-oidc
from flask import Flask
from flask_oidc import OpenIDConnect
app = Flask(__name__)
oidc = OpenIDConnect(app)
Verify before relying
- Whether the package works with all standards-compliant OIDC providers beyond the documented Ipsilon test case.
- Scope and frequency of active development beyond the most recent commit.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesauthlibblinkerflaskrequests |
| Maintenance | Actively maintained 424 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 868,192 / month, #4,853 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: Web EnvironmentFramework :: FlaskIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python Modules |
Evidence: flask_oidc-2.4.0-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 › “openid connect flask”
- flask-oidcAdds OpenID Connect authentication support to Flask applications,…
- Flask-OpenIDAdds OpenID authentication support to Flask web applications,…
- AuthlibAuthlib provides a complete implementation of OAuth 1.0, OAuth 2.0,…
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 dash-auth · django-oidc-provider · Flask-Dance · Flask-OpenID · PyLTI1p3 · oidc-provider-mock · pyop · mozilla-django-oidc · python-openid · oic