Skip to content
Snippets Groups Projects
Verified Commit 13ba531f authored by Jan Pavlíček's avatar Jan Pavlíček
Browse files

fix: check_saml totp form detection, response message with --skip_logout_check argument

parent 227b8eee
No related branches found
No related tags found
1 merge request!42fix: check_saml totp form detection, response message with --skip_logout_check argument
Pipeline #311908 passed
......@@ -315,7 +315,7 @@ class SAMLChecker:
print(response_html)
# MFA
if "TOTP" in response_html or "privacyIDEA" in response_html:
if "totp" in response_html.lower() or "privacyidea" in response_html.lower():
if self.args.verbose >= 1:
print("MFA is required")
totp_form_action, totp_form_data = parse_form(response_html)
......@@ -521,11 +521,11 @@ class SAMLChecker:
"CRITICAL",
)
self.finish(
"Authentication took {:.2f} seconds".format(elapsed_seconds),
status,
auth_time=elapsed_seconds,
)
self.finish(
"Authentication took {:.2f} seconds".format(elapsed_seconds),
status,
auth_time=elapsed_seconds,
)
def __init__(self, args):
self.args = args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment