feature: completed api part
This commit is contained in:
parent
2380c13c37
commit
7311f038e9
@ -1,44 +0,0 @@
|
|||||||
<?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\Http\Authenticator\AbstractAuthenticator;
|
|
||||||
use Symfony\Component\Security\Http\Authenticator\Passport\Passport;
|
|
||||||
|
|
||||||
class PrinterAuthenticator extends AbstractAuthenticator
|
|
||||||
{
|
|
||||||
public function supports(Request $request): ?bool
|
|
||||||
{
|
|
||||||
// TODO: Implement supports() method.
|
|
||||||
}
|
|
||||||
|
|
||||||
public function authenticate(Request $request): Passport
|
|
||||||
{
|
|
||||||
// TODO: Implement authenticate() method.
|
|
||||||
}
|
|
||||||
|
|
||||||
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
|
|
||||||
{
|
|
||||||
// TODO: Implement onAuthenticationSuccess() method.
|
|
||||||
}
|
|
||||||
|
|
||||||
public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response
|
|
||||||
{
|
|
||||||
// TODO: Implement onAuthenticationFailure() method.
|
|
||||||
}
|
|
||||||
|
|
||||||
// public function start(Request $request, AuthenticationException $authException = null): Response
|
|
||||||
// {
|
|
||||||
// /*
|
|
||||||
// * If you would like this class to control what happens when an anonymous user accesses a
|
|
||||||
// * protected page (e.g. redirect to /login), uncomment this method and make this class
|
|
||||||
// * implement Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface.
|
|
||||||
// *
|
|
||||||
// * For more details, see https://symfony.com/doc/current/security/experimental_authenticators.html#configuring-the-authentication-entry-point
|
|
||||||
// */
|
|
||||||
// }
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user