From a00802a0aec944cd9d043230c8971040052e5246 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dominik=20Franti=C5=A1ek=20Bu=C4=8D=C3=ADk?=
 <bucik@ics.muni.cz>
Date: Fri, 16 Dec 2022 13:42:03 +0100
Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20ACR=20processing=20?=
 =?UTF-8?q?using=20authSwitcher?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/Disco.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/Disco.php b/lib/Disco.php
index 0556729..fc8d486 100644
--- a/lib/Disco.php
+++ b/lib/Disco.php
@@ -7,6 +7,7 @@ namespace SimpleSAML\Module\elixir;
 use SimpleSAML\Auth\State;
 use SimpleSAML\Configuration;
 use SimpleSAML\Logger;
+use SimpleSAML\Module\authswitcher\DiscoUtils;
 use SimpleSAML\Module\discopower\PowerIdPDisco;
 use SimpleSAML\Module\elixir\discowarning\WarningConfiguration;
 use SimpleSAML\Utils\HTTP;
@@ -99,6 +100,7 @@ class Disco extends PowerIdPDisco
                     $this->originalAuthnContextClassRef =
                         $state[self::SAML_REQUESTED_AUTHN_CONTEXT][self::AUTHN_CONTEXT_CLASS_REF];
                     $this->removeAuthContextClassRefWithPrefixes($state);
+                    DiscoUtils::setUpstreamRequestedAuthnContext($state);
                     State::saveState($state, self::SAML_SP_SSO);
                 }
             }
-- 
GitLab