Skip to content

Instantly share code, notes, and snippets.

View ThomasLomas's full-sized avatar

Thomas Lomas ThomasLomas

View GitHub Profile
@schmittjoh
schmittjoh / AjaxFailureHandler.php
Created June 12, 2011 09:48
Twitter Anywhere Authentication
<?php
namespace Security\Authentication;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface;
class AjaxFailureHandler implements AuthenticationFailureHandlerInterface