<?php
namespace App\Security;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Guard\Token\GuardTokenInterface;
class ApiAuthenticator implements \Symfony\Component\Security\Guard\AuthenticatorInterface
{
/**
* @inheritDoc
*/
public function start(Request $request, AuthenticationException $authException = null)
{
return new Response('', Response::HTTP_UNAUTHORIZED);
}
/**
* @inheritDoc
*/
public function supports(Request $request)
{
return false;
}
/**
* @inheritDoc
*/
public function getCredentials(Request $request)
{
// TODO: Implement getCredentials() method.
}
/**
* @inheritDoc
*/
public function getUser($credentials, UserProviderInterface $userProvider)
{
// TODO: Implement getUser() method.
}
/**
* @inheritDoc
*/
public function checkCredentials($credentials, UserInterface $user)
{
// TODO: Implement checkCredentials() method.
}
/**
* @inheritDoc
*/
public function createAuthenticatedToken(UserInterface $user, $providerKey)
{
// TODO: Implement createAuthenticatedToken() method.
}
/**
* @inheritDoc
*/
public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
{
// TODO: Implement onAuthenticationFailure() method.
}
/**
* @inheritDoc
*/
public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey)
{
// TODO: Implement onAuthenticationSuccess() method.
}
/**
* @inheritDoc
*/
public function supportsRememberMe()
{
// TODO: Implement supportsRememberMe() method.
}
}