diff --git a/lib/AuthnContextHelper.php b/lib/AuthnContextHelper.php
index 5af97fe0ff610f58c1d4e03f35f42bd2d8c0bc70..5fabf83e5eaebc5b1ee4a27398ad282e530b23b9 100644
--- a/lib/AuthnContextHelper.php
+++ b/lib/AuthnContextHelper.php
@@ -66,7 +66,7 @@ class AuthnContextHelper
             !self::testComparison(
                 $usersCapabilities,
                 $supportedRequestedContexts,
-                $state['saml:RequestedAuthnContext']['Comparison'],
+                $state['saml:RequestedAuthnContext']['Comparison'] ?? Constants::COMPARISON_EXACT,
                 $upstreamContext,
                 $mfaEnforced
             )