--- id: flask-oidc version: "2.4.0" license: BSD-2-Clause license_treatment: permissive maintenance: active --- # flask-oidc — OpenID Connect extension for Flask License: permissive · Maintenance: active · Downloads: 868.2K/mo ## 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 above — verify before relying. Adds OpenID Connect authentication support to Flask applications, enabling secure user login through standards-compliant OpenID Connect providers. 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 pip install flask-oidc uv add flask-oidc poetry add flask-oidc ## Installing flask-oidc 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_current - Install friction: low - Maintenance: active - Downloads: 868.2K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags openid connect flask, oidc authentication flask, flask single sign-on, flask oauth identity, openid provider integration, flask user authentication, oidc flask extension, authentication, openid-connect, single-sign-on [View on SkillFed](https://skillfed.io/packages/flask-oidc) · [View on PyPI](https://pypi.org/project/flask-oidc/)