diff --git a/service-api/app/test/AppTest/Service/Authentication/OneLoginAuthorisationRequestServiceTest.php b/service-api/app/test/AppTest/Service/Authentication/OneLoginAuthorisationRequestServiceTest.php index 522de4ee39..4b0bcb283d 100644 --- a/service-api/app/test/AppTest/Service/Authentication/OneLoginAuthorisationRequestServiceTest.php +++ b/service-api/app/test/AppTest/Service/Authentication/OneLoginAuthorisationRequestServiceTest.php @@ -60,8 +60,11 @@ public function create_authorisation_request(): void $authorisationRequestUrl = $authorisationRequest['url']; $this->assertStringContainsString('client_id=client-id', $authorisationRequestUrl); $this->assertStringContainsString('scope=openid+email', $authorisationRequestUrl); - $this->assertStringContainsString('vtr=%5B%22Cl.Cm.P2%22%5D', $authorisationRequestUrl); + $this->assertStringContainsString('vtr=["Cl.Cm.P2"]', urldecode($authorisationRequestUrl)); $this->assertStringContainsString('ui_locales=en', $authorisationRequestUrl); - $this->assertStringContainsString('redirect_uri=%2Flpa%2Fdashboard', $authorisationRequestUrl); + $this->assertStringContainsString( + 'redirect_uri=http://localhost:9002/auth/redirect', + urldecode($authorisationRequestUrl) + ); } } diff --git a/service-front/app/test/ActorTest/Form/OneLoginFormTest.php b/service-front/app/test/ActorTest/Form/OneLoginFormTest.php new file mode 100644 index 0000000000..f374af6f6b --- /dev/null +++ b/service-front/app/test/ActorTest/Form/OneLoginFormTest.php @@ -0,0 +1,38 @@ +form; + } + + public function getFormName(): string + { + return 'one_login'; + } + + public function getFormElements(): array + { + return [ + '__csrf' => Csrf::class, + ]; + } +}