From f7c8fc768c4a989f523da77777cc4b28b210786f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= <brousek@ics.muni.cz>
Date: Tue, 9 Jan 2024 16:36:19 +0100
Subject: [PATCH] fix(check_saml): follow all redirects on ProxyIdP

---
 perun/proxy/utils/nagios/check_saml.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/perun/proxy/utils/nagios/check_saml.py b/perun/proxy/utils/nagios/check_saml.py
index 9c3995b..8523189 100755
--- a/perun/proxy/utils/nagios/check_saml.py
+++ b/perun/proxy/utils/nagios/check_saml.py
@@ -284,6 +284,7 @@ class SAMLChecker:
     def js_form_redirect(self, html, url, force=False):
         if (
             force
+            or "document.getElementsByTagName('input')[0].click();" in html
             or "document.forms[0].submit()" in html
             or "javascript:DoSubmit();" in html
         ):
-- 
GitLab