Skip to content

Commit

Permalink
Flag the json_login listener as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr committed Apr 15, 2017
1 parent 7e6c261 commit e4533f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Expand Up @@ -19,6 +19,8 @@
* JsonLoginFactory creates services for JSON login authentication.
*
* @author Kévin Dunglas <dunglas@gmail.com>
*
* @experimental in version 3.3
*/
class JsonLoginFactory extends AbstractFactory
{
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Component/Security/CHANGELOG.md
Expand Up @@ -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
-----
Expand Down
Expand Up @@ -37,6 +37,8 @@
* an authentication via a JSON document composed of a username and a password.
*
* @author Kévin Dunglas <dunglas@gmail.com>
*
* @experimental in version 3.3
*/
class UsernamePasswordJsonAuthenticationListener implements ListenerInterface
{
Expand Down
Expand Up @@ -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());
}
}

0 comments on commit e4533f8

Please sign in to comment.