summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2013-05-05 18:58:35 +0200
committerJordi Boggiano <j.boggiano@seld.be>2013-05-08 15:02:48 +0200
commita17191f515bb098f083cb02ac280ed96bd5e0b72 (patch)
tree520be125578141a8420cb81ef182fabe2cc630d5
parent5bc6c9f81d2650c6d5ed123ddb8afde33f57bdcf (diff)
downloadsymfony-security-a17191f515bb098f083cb02ac280ed96bd5e0b72.zip
symfony-security-a17191f515bb098f083cb02ac280ed96bd5e0b72.tar.gz
symfony-security-a17191f515bb098f083cb02ac280ed96bd5e0b72.tar.bz2
moved the simple HTTP authenticator to a pre-auth one
-rw-r--r--Core/Authentication/SimplePreAuthenticatorInterface.php (renamed from Core/Authentication/SimpleHttpAuthenticatorInterface.php)2
-rw-r--r--Http/Firewall/SimplePreAuthenticationListener.php (renamed from Http/Firewall/SimpleHttpAuthenticationListener.php)12
2 files changed, 7 insertions, 7 deletions
diff --git a/Core/Authentication/SimpleHttpAuthenticatorInterface.php b/Core/Authentication/SimplePreAuthenticatorInterface.php
index b64aad9..6164e7d 100644
--- a/Core/Authentication/SimpleHttpAuthenticatorInterface.php
+++ b/Core/Authentication/SimplePreAuthenticatorInterface.php
@@ -16,7 +16,7 @@ use Symfony\Component\HttpFoundation\Request;
/**
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
-interface SimpleHttpAuthenticatorInterface extends SimpleAuthenticatorInterface
+interface SimplePreAuthenticatorInterface extends SimpleAuthenticatorInterface
{
public function createToken(Request $request, $providerKey);
}
diff --git a/Http/Firewall/SimpleHttpAuthenticationListener.php b/Http/Firewall/SimplePreAuthenticationListener.php
index ab49b14..80b35a5 100644
--- a/Http/Firewall/SimpleHttpAuthenticationListener.php
+++ b/Http/Firewall/SimplePreAuthenticationListener.php
@@ -17,18 +17,18 @@ use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpFoundation\Response;
-use Symfony\Component\Security\Core\Authentication\SimpleHttpAuthenticatorInterface;
+use Symfony\Component\Security\Core\Authentication\SimplePreAuthenticatorInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface;
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface;
/**
- * SimpleHttpListener implements simple proxying to an authenticator.
+ * SimplePreAuthenticationListener implements simple proxying to an authenticator.
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
-class SimpleHttpAuthenticationListener implements ListenerInterface
+class SimplePreAuthenticationListener implements ListenerInterface
{
private $securityContext;
private $authenticationManager;
@@ -42,10 +42,10 @@ class SimpleHttpAuthenticationListener implements ListenerInterface
* @param SecurityContextInterface $securityContext A SecurityContext instance
* @param AuthenticationManagerInterface $authenticationManager An AuthenticationManagerInterface instance
* @param string $providerKey
- * @param SimpleHttpAuthenticatorInterface $simpleAuthenticator A SimpleHttpAuthenticatorInterface instance
+ * @param SimplePreAuthenticatorInterface $simpleAuthenticator A SimplePreAuthenticatorInterface instance
* @param LoggerInterface $logger A LoggerInterface instance
*/
- public function __construct(SecurityContextInterface $securityContext, AuthenticationManagerInterface $authenticationManager, $providerKey, SimpleHttpAuthenticatorInterface $simpleAuthenticator, LoggerInterface $logger = null)
+ public function __construct(SecurityContextInterface $securityContext, AuthenticationManagerInterface $authenticationManager, $providerKey, SimplePreAuthenticatorInterface $simpleAuthenticator, LoggerInterface $logger = null)
{
if (empty($providerKey)) {
throw new \InvalidArgumentException('$providerKey must not be empty.');
@@ -68,7 +68,7 @@ class SimpleHttpAuthenticationListener implements ListenerInterface
$request = $event->getRequest();
if (null !== $this->logger) {
- $this->logger->info(sprintf('Attempting simple http authorization %s', $this->providerKey));
+ $this->logger->info(sprintf('Attempting simple pre-authorization %s', $this->providerKey));
}
try {