From 58dc54a7161c25fe80a78db3cf6b8060d48770a6 Mon Sep 17 00:00:00 2001 From: gmartinez95 <93657411+gmartinez95@users.noreply.github.com> Date: Mon, 18 Dec 2023 19:25:54 -0300 Subject: [PATCH] Improve logs in AssertionConsumer --- flask_saml2/sp/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flask_saml2/sp/views.py b/flask_saml2/sp/views.py index 2375349..521843b 100644 --- a/flask_saml2/sp/views.py +++ b/flask_saml2/sp/views.py @@ -90,6 +90,9 @@ def post(self): continue except UserNotAuthorized: return self.sp.render_template('flask_saml2_sp/user_not_authorized.html') + logger.error("Couldn't handle assertion. Check the assertion config in the service provider and identity " + "provider") + return Response(status=400) class Metadata(SAML2View):