From bd92c5946c4df0aec689ffa101d7eb26a4e64399 Mon Sep 17 00:00:00 2001 From: Veovis Date: Tue, 12 Apr 2022 16:50:16 +0200 Subject: [PATCH] Fix broken SAML login from 9c00e48f --- powerdnsadmin/routes/index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/powerdnsadmin/routes/index.py b/powerdnsadmin/routes/index.py index f2c839d..8e6d0c1 100644 --- a/powerdnsadmin/routes/index.py +++ b/powerdnsadmin/routes/index.py @@ -965,6 +965,7 @@ def saml_authorized(): if not current_app.config.get('SAML_ENABLED'): current_app.logger.error("SAML authentication is disabled.") abort(400) + from onelogin.saml2.utils import OneLogin_Saml2_Utils req = saml.prepare_flask_request(request) auth = saml.init_saml_auth(req) auth.process_response()