diff --git a/src/OpenConext/EngineBlockFunctionalTestingBundle/Controllers/IdentityProviderController.php b/src/OpenConext/EngineBlockFunctionalTestingBundle/Controllers/IdentityProviderController.php index 1a802fbe8..707696584 100644 --- a/src/OpenConext/EngineBlockFunctionalTestingBundle/Controllers/IdentityProviderController.php +++ b/src/OpenConext/EngineBlockFunctionalTestingBundle/Controllers/IdentityProviderController.php @@ -99,6 +99,10 @@ public function singleSignOnAction(Request $request, $idpName) $destination = ($authnRequest->getAssertionConsumerServiceURL() ? $authnRequest->getAssertionConsumerServiceURL() : $response->getDestination()); + $response->getDestination()); + + /* set the destination element of the response to the ACS URL */ + $response->setDestination($destination); if ($mockIdp->mustUseHttpRedirect()) { $redirect = new HTTPRedirect();