Skip to content
Snippets Groups Projects
Commit 62e112ea authored by Thomas Schneider's avatar Thomas Schneider
Browse files

auth: Exempt SAML ACS view from CSRF

parent a551fe03
1 merge request!5Auth
......@@ -33,6 +33,10 @@ def create_app():
multipass.identity_handler(identity_handler)
multipass.init_app(app)
for k, v in app.view_functions.items():
if k.startswith("_flaskmultipass_saml_acs_"):
csrf.exempt(v)
app.config.update(
{
"WEBPACK_LOADER": {
......
......@@ -101,6 +101,7 @@ def identity_handler(identity_info: IdentityInfo):
data=identity_info.data,
)
def require_login():
if "identity" not in session:
return redirect(url_for("login"))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment