Skip to content

Commit 5c6f00e

Browse files
committed
Merge pull request #18
2 parents 212cce9 + 56e7a45 commit 5c6f00e

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AutoLogin
22

3-
This library implements a Symfony2 security firewall listener to authenticate
3+
This library implements a Symfony security firewall listener to authenticate
44
users based on a single query parameter. This is useful for providing one-click
55
login functionality in email and newsletter links.
66

@@ -22,10 +22,10 @@ This library requires Symfony 2.1 or above. There is no support for Symfony 2.0.
2222
## Usage
2323

2424
This library implements authentication provider and firewall listener classes,
25-
which may be plugged into Symfony2's security component to intercept requests
25+
which may be plugged into Symfony's security component to intercept requests
2626
and automatically authenticate users based on a single request parameter.
2727

28-
To utilize this library in a full-stack Symfony2 application, you may want to
28+
To utilize this library in a full-stack Symfony application, you may want to
2929
use [JmikolaAutoLoginBundle][]. An example of registering an authentication
3030
provider and firewall listener manually may be found in the
3131
[Silex documentation][] and [Security component documentation][].
@@ -41,7 +41,7 @@ will be authenticated with an `AutoLoginToken` instance. In the context of
4141
authorization, this token satisfies `IS_AUTHENTICATED_FULLY`. Ideally, it would
4242
be possible to restrict the token to `IS_AUTHENTICATED_REMEMBERED`, but that is
4343
not yet supported. Additional information on these authorization levels may be
44-
found in Symfony2's [authorization documentation][].
44+
found in Symfony's [authorization documentation][].
4545

4646
[authorization documentation]: http://symfony.com/doc/current/components/security/authorization.html
4747

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jmikola/auto-login",
33
"type": "library",
4-
"description": "Faciliates automatic login via a single token for Symfony2's Security component.",
4+
"description": "Faciliates automatic login via a single token for Symfony's Security component.",
55
"keywords": ["authentication", "auto-login", "login", "security"],
66
"homepage": "https://github.com/jmikola/AutoLogin",
77
"license": "MIT",
@@ -11,9 +11,10 @@
1111
],
1212
"require": {
1313
"php": ">=5.3.2",
14-
"symfony/event-dispatcher": "~2.1",
15-
"symfony/http-kernel": "~2.1",
16-
"symfony/security": "~2.1"
14+
"psr/log": "^1.0",
15+
"symfony/event-dispatcher": "^2.2 || ^3.0",
16+
"symfony/http-kernel": "^2.2 || ^3.0",
17+
"symfony/security": "^2.2 || ^3.0"
1718
},
1819
"autoload": {
1920
"psr-0": { "Jmikola\\AutoLogin": "src" }

src/Jmikola/AutoLogin/Http/Firewall/AutoLoginListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
use Jmikola\AutoLogin\AutoLoginEvents;
66
use Jmikola\AutoLogin\Authentication\Token\AutoLoginToken;
77
use Jmikola\AutoLogin\Event\AlreadyAuthenticatedEvent;
8+
use Psr\Log\LoggerInterface;
89
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
910
use Symfony\Component\HttpFoundation\Request;
1011
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
11-
use Symfony\Component\HttpKernel\Log\LoggerInterface;
1212
use Symfony\Component\Security\Core\SecurityContextInterface;
1313
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
1414
use Symfony\Component\Security\Core\Authentication\AuthenticationManagerInterface;
@@ -113,7 +113,7 @@ public function handle(GetResponseEvent $event)
113113
}
114114
} catch (AuthenticationException $e) {
115115
if (null !== $this->logger) {
116-
$this->logger->warn(
116+
$this->logger->warning(
117117
'SecurityContext not populated with auto-login token as the '.
118118
'AuthenticationManager rejected the auto-login token created '.
119119
'by AutoLoginListener: '.$e->getMessage()

0 commit comments

Comments
 (0)