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); + } + ); }