Flask-SAML2 is a library for adding SAML 2.0 authentication to Flask applications, supporting both Identity Provider (IdP) and Service Provider (SP) roles. The current version is 0.3.0, released sporadically with infrequent updates.
pip install flask-saml2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal Flask app with SAML SP, referencing IdP metadata URL.
Use a server-side session extension like Flask-Session with Redis or filesystem.
Pre-fetch and cache metadata locally, or wrap initialization with error handling.
Call `app.register_blueprint(sp.blueprint)` after creating the SP instance.