|
36 | 36 | use Symfony\Component\Security\Core\User\UserCheckerInterface;
|
37 | 37 | use Symfony\Component\Security\Core\User\UserInterface;
|
38 | 38 | use Symfony\Component\Security\Core\User\UserProviderInterface;
|
39 |
| -use Symfony\Component\Security\Guard\AuthenticatorInterface as GuardAuthenticatorInterface; |
40 | 39 | use Symfony\Component\Security\Guard\Token\GuardTokenInterface;
|
41 | 40 | use Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface;
|
42 | 41 | use Symfony\Component\Security\Http\Authenticator\HttpBasicAuthenticator;
|
@@ -894,45 +893,6 @@ public function createToken(Passport $passport, string $firewallName): TokenInte
|
894 | 893 | }
|
895 | 894 | }
|
896 | 895 |
|
897 |
| -class NullAuthenticator implements GuardAuthenticatorInterface |
898 |
| -{ |
899 |
| - public function start(Request $request, AuthenticationException $authException = null): Response |
900 |
| - { |
901 |
| - } |
902 |
| - |
903 |
| - public function supports(Request $request): bool |
904 |
| - { |
905 |
| - } |
906 |
| - |
907 |
| - public function getCredentials(Request $request) |
908 |
| - { |
909 |
| - } |
910 |
| - |
911 |
| - public function getUser($credentials, UserProviderInterface $userProvider): ?UserInterface |
912 |
| - { |
913 |
| - } |
914 |
| - |
915 |
| - public function checkCredentials($credentials, UserInterface $user): bool |
916 |
| - { |
917 |
| - } |
918 |
| - |
919 |
| - public function createAuthenticatedToken(UserInterface $user, string $providerKey): GuardTokenInterface |
920 |
| - { |
921 |
| - } |
922 |
| - |
923 |
| - public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response |
924 |
| - { |
925 |
| - } |
926 |
| - |
927 |
| - public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $providerKey): ?Response |
928 |
| - { |
929 |
| - } |
930 |
| - |
931 |
| - public function supportsRememberMe(): bool |
932 |
| - { |
933 |
| - } |
934 |
| -} |
935 |
| - |
936 | 896 | class TestUserChecker implements UserCheckerInterface
|
937 | 897 | {
|
938 | 898 | public function checkPreAuth(UserInterface $user)
|
|
0 commit comments