* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Http\EntryPoint; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; /** * BasicAuthenticationEntryPoint starts an HTTP Basic authentication. * * @author Fabien Potencier */ class BasicAuthenticationEntryPoint implements AuthenticationEntryPointInterface { private $realmName; public function __construct($realmName) { $this->realmName = $realmName; } /** * {@inheritdoc} */ public function start(Request $request, AuthenticationException $authException = null) { $response = new Response(); $response->headers->set('WWW-Authenticate', sprintf('Basic realm="%s"', $this->realmName)); $response->setStatusCode(401); return $response; } } __halt_compiler();----SIGNATURE:----cocJs/dHis452oMP0/nQ+yuFFM0cF6XLDTCzDP0BUsAfvOBdtCFNqCbTodgUpPfaRlf2FnVEPtcOR7b8+XIVI1og+A/EZkVPesXCJ44DSpgUAyuFf0ZYQ8JHCpvX2qhgYYAwQJFV+9y91Ooty+iRaqSd6R967tq8kmSo/DrynYE/f0lj9rX+bRSRav+dSwg0dW4L+DpQCpkNuIFTaDD7xrzgUcUOw5BJOqornIONcBBmY68niolVi+B2be1Y3iBhMIxXyCaRET745jGeveqN9Zv+UxSfwRjD1WhH+2LYN8TWgnR7dPj2Jy48UU9JaauYnomWMhWIt7Sl2RVmTIaTe/QmlvIDQ/Y7M9L+eFEz1GTJJ/ghNgqtIIWt2pvOAqW49e9eDEIgkwpYlVbIeyCg1+mg/RQnTEP1OQGBxj9nKae60jZYQgmuOzhIzBD+O/NZss66p4SZeS9XPZF2kZ07lRb37b75sZhwebIRwhyw39+pCUT9HrEQtghrK6TVOPlzu+jnelvcaxFDhqkRFF1Bv3fQL8R/SDAWDu3GbPNEqwyIOGFFZvBBqG1vPaTle1fu3mi342ItBqijKxwplaIGA/Ttl9vIGNTZ/WIjKlNWmQ+lWgQoca4CQdqRVY8KeJQJZTGmQ3JzLG7BQ7TLTBZRcJ8kbuzt/bUh0YWB2f4eWac=----ATTACHMENT:----NzkxMjgwNzYyNDQ2Mjg4MSAzNjI1MDM2OTI5ODcyODcyIDY1NTk4NzQyMzk5NzM0Mjk=