* * 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:----sUvfJyOL/rcBmjmTY5yM+lmki0TzRE64dvl4FtaxlWu3Kbzd4X3Z89PwDLMPl+VwapcAVbXrc/7dpvFv2V3nzmWCgK7orJMZtFrgJSl1frptgJmXZlfNuaky3LpE538ajV4wT/2tU5KwuOpjugvsLqF1c5+Pi+8A87t7YpE6KnXx1dIY0g+bAKI44wuIluNvfnfIsSFWkuTBuWvQtHC5tpcRXHNsZ2ZrSRRd4OtjWPH8Zk75xR5KZ7jf6VV9g7RgcQBnq6CVXbI95J+Kz4NNLTU1A6AUKmT/Te+GfXsvV0vovDQtCB98qtvk5l8bgnkq/iO+pmvH+eOitjX4uHizL018J7gJkAsSiSxT6CUY17RhJZWoMyMJGgcVqXYiBgMD1oYwuTw9w7k4A4p8zdxkgOhCrmpw1MdRRk3fn3fkhEmE8cZzNzWMSLIgUr5TA/jWxeL1VzV1ulBZq+Xdr/3pxskR9uEBNkES3iO8ab+1uwCegpATu+0dtKgkot6+SnQVJ7qWSWMX7Q/Sb97kCHUARC3mCzlTZBf3UElTdngMFc1zUrh/c2FyjAR7W1z2HFq3212/eyAfiYSDWjVOcEMB9kMO9NWwxFxlJS6dln/NwS2XFYqZWplUjnyn1whymlBTI5zXzI/Z0I5rXJ9+989cN54z4/nmtHuYQ64ALwbiTxY=----ATTACHMENT:----OTU5NzA3OTMxNTI5MDk3MSA1OTA0MzI3NTI1NTMyNjY0IDY0MTI0NTAxNTUxMjU3OTI=