diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/JsonLoginFactory.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/JsonLoginFactory.php index c1d3bcad34cf..f7da4aa4a65c 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/JsonLoginFactory.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/JsonLoginFactory.php @@ -19,6 +19,8 @@ * JsonLoginFactory creates services for JSON login authentication. * * @author Kévin Dunglas + * + * @experimental in version 3.3 */ class JsonLoginFactory extends AbstractFactory { diff --git a/src/Symfony/Component/Security/CHANGELOG.md b/src/Symfony/Component/Security/CHANGELOG.md index afc48f927d3a..69cdd285282f 100644 --- a/src/Symfony/Component/Security/CHANGELOG.md +++ b/src/Symfony/Component/Security/CHANGELOG.md @@ -6,6 +6,7 @@ CHANGELOG * deprecated `AccessDecisionManager::setVoters()` in favor of passing the voters to the constructor. + * [EXPERIMENTAL] added a `json_login` listener for stateless authentication 3.2.0 ----- diff --git a/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php b/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php index f66bf9656342..2cfd4d9d236e 100644 --- a/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordJsonAuthenticationListener.php @@ -37,6 +37,8 @@ * an authentication via a JSON document composed of a username and a password. * * @author Kévin Dunglas + * + * @experimental in version 3.3 */ class UsernamePasswordJsonAuthenticationListener implements ListenerInterface { diff --git a/src/Symfony/Component/Security/Http/Tests/Firewall/UsernamePasswordJsonAuthenticationListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/UsernamePasswordJsonAuthenticationListenerTest.php index c687ea5a3176..634d281a7ad9 100644 --- a/src/Symfony/Component/Security/Http/Tests/Firewall/UsernamePasswordJsonAuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/UsernamePasswordJsonAuthenticationListenerTest.php @@ -162,6 +162,6 @@ public function testAttemptAuthenticationIfRequestPathMatchesCheckPath() $event = new GetResponseEvent($this->getMockBuilder(KernelInterface::class)->getMock(), $request, KernelInterface::MASTER_REQUEST); $this->listener->handle($event); - $this->assertEquals('ok', $event->getResponse()->getContent()); + $this->assertSame('ok', $event->getResponse()->getContent()); } }