diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2012-05-21 16:05:28 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2012-05-21 16:05:28 +0200 |
commit | 02d2a6142ad1ab2e5f45bbf44263185da9b31d07 (patch) | |
tree | c2d87d26df64aa5204a6daf7884ec74e60813bd4 /Http | |
parent | b59720b156f9667f240edeb2ed6b6d2e99767495 (diff) | |
parent | cf637c36c71c53998e908cdd2eaf0c8e0dc6d689 (diff) | |
download | symfony-security-02d2a6142ad1ab2e5f45bbf44263185da9b31d07.zip symfony-security-02d2a6142ad1ab2e5f45bbf44263185da9b31d07.tar.gz symfony-security-02d2a6142ad1ab2e5f45bbf44263185da9b31d07.tar.bz2 |
merged 2.0
Diffstat (limited to 'Http')
-rw-r--r-- | Http/Firewall/BasicAuthenticationListener.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/Firewall/BasicAuthenticationListener.php b/Http/Firewall/BasicAuthenticationListener.php index 9669853..e331179 100644 --- a/Http/Firewall/BasicAuthenticationListener.php +++ b/Http/Firewall/BasicAuthenticationListener.php @@ -56,7 +56,7 @@ class BasicAuthenticationListener implements ListenerInterface { $request = $event->getRequest(); - if (false === $username = $request->server->get('PHP_AUTH_USER', false)) { + if (false === $username = $request->headers->get('PHP_AUTH_USER', false)) { return; } @@ -71,7 +71,7 @@ class BasicAuthenticationListener implements ListenerInterface } try { - $token = $this->authenticationManager->authenticate(new UsernamePasswordToken($username, $request->server->get('PHP_AUTH_PW'), $this->providerKey)); + $token = $this->authenticationManager->authenticate(new UsernamePasswordToken($username, $request->headers->get('PHP_AUTH_PW'), $this->providerKey)); $this->securityContext->setToken($token); } catch (AuthenticationException $failed) { $this->securityContext->setToken(null); |