From c0d8aa2303e2f173a5f5c98148dd44969a3c1c73 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 24 Jun 2020 13:12:34 +0200 Subject: [PATCH] sources/saml: fix SAMLRequest not being encoded properly for Redirect bindings --- passbook/providers/saml/utils/encoding.py | 2 +- passbook/sources/saml/templates/saml/sp/login.html | 2 +- passbook/sources/saml/views.py | 14 ++++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/passbook/providers/saml/utils/encoding.py b/passbook/providers/saml/utils/encoding.py index 9aac5246a..3445024b4 100644 --- a/passbook/providers/saml/utils/encoding.py +++ b/passbook/providers/saml/utils/encoding.py @@ -20,5 +20,5 @@ def deflate_and_base64_encode(inflated: bytes, encoding="utf-8"): def nice64(src): - """ Returns src base64-encoded and formatted nicely for our XML. """ + """Returns src base64-encoded and formatted nicely for our XML. """ return base64.b64encode(src).decode("utf-8").replace("\n", "") diff --git a/passbook/sources/saml/templates/saml/sp/login.html b/passbook/sources/saml/templates/saml/sp/login.html index 4a47376ac..89dcfa19b 100644 --- a/passbook/sources/saml/templates/saml/sp/login.html +++ b/passbook/sources/saml/templates/saml/sp/login.html @@ -14,7 +14,7 @@
{% csrf_token %} - +