From 59368e58fc5548e8b6bb75c102c5a3242722e22b Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sun, 26 Nov 2023 10:54:31 +0100 Subject: [PATCH] Fix #15 --- src/IdP/ADFS.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/IdP/ADFS.php b/src/IdP/ADFS.php index 3442d5c..c3fb2b9 100644 --- a/src/IdP/ADFS.php +++ b/src/IdP/ADFS.php @@ -52,7 +52,11 @@ public static function receiveAuthnRequest(Request $request, IdP $idp): Streamed $state['adfs:wreply'] = $httpUtils->checkURLAllowed($query['wreply']); } - return new StreamedResponse([$idp, 'handleAuthenticationRequest'], [&$state]); + return new StreamedResponse( + function () use ($idp, $state) { + $idp->handleAuthenticationRequest($state); + } + ); }