Browse Source

[security] fix arguments error for saml logout issue (#4084)

Co-authored-by: Mohammed Tabraiz <tabraiz@cloudera.com>
Tabraiz 8 months ago
parent
commit
5b81df3846
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/libs/libsaml/src/libsaml/backend.py

+ 1 - 1
desktop/libs/libsaml/src/libsaml/backend.py

@@ -120,7 +120,7 @@ class SAML2Backend(_Saml2Backend):
 
       html = '<html><body>' \
             '<form action="%s" method="POST">' \
-            '<input name="logoutRedirect" type="hidden" value="%s">%s</form>' \
+            '<input name="logoutRedirect" type="hidden" value="%s"></form>' \
             '<script%s>document.addEventListener("DOMContentLoaded", function() { document.forms[0].submit(); });</script>' \
             '</body></html>' % (conf.CDP_LOGOUT_URL.get(), redirect_url, nonce_attribute(request))
       return HttpResponse(html)