summaryrefslogtreecommitdiffstats
path: root/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2013-11-26 17:43:09 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2013-11-26 17:43:09 +0100
commit320cb8cd71bedcd58b7c83ab8a65a240c48faf2b (patch)
tree41e29a714a0942deb68a6fc07d26b396529deb2c /Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
parent9062ccc6c49e848d15ec68b1be22f4ea1905d3b8 (diff)
parentad591f170365bef1a963e9c876aa48adbf4c312c (diff)
downloadsymfony-security-320cb8cd71bedcd58b7c83ab8a65a240c48faf2b.zip
symfony-security-320cb8cd71bedcd58b7c83ab8a65a240c48faf2b.tar.gz
symfony-security-320cb8cd71bedcd58b7c83ab8a65a240c48faf2b.tar.bz2
minor #9594 [Security] Fixed typos/CS/PHPDoc (pborreli)
This PR was merged into the master branch. Discussion ---------- [Security] Fixed typos/CS/PHPDoc Commits ------- e1110de Fixed typos/CS/PHPDoc
Diffstat (limited to 'Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php')
-rw-r--r--Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php21
1 files changed, 10 insertions, 11 deletions
diff --git a/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php b/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
index 3affd78..f4d0959 100644
--- a/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
+++ b/Core/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
@@ -47,23 +47,22 @@ class PreAuthenticatedAuthenticationProvider implements AuthenticationProviderIn
$this->providerKey = $providerKey;
}
- /**
- * {@inheritdoc}
- */
- public function authenticate(TokenInterface $token)
- {
- if (!$this->supports($token)) {
- return null;
- }
-
+ /**
+ * {@inheritdoc}
+ */
+ public function authenticate(TokenInterface $token)
+ {
+ if (!$this->supports($token)) {
+ return null;
+ }
if (!$user = $token->getUser()) {
throw new BadCredentialsException('No pre-authenticated principal found in request.');
}
-/*
+ /*
if (null === $token->getCredentials()) {
throw new BadCredentialsException('No pre-authenticated credentials found in request.');
}
-*/
+ */
$user = $this->userProvider->loadUserByUsername($user);
$this->userChecker->checkPostAuth($user);