1 | <?php |
||
17 | class ApiKeyAuthenticator extends AbstractGuardAuthenticator |
||
18 | { |
||
19 | /** |
||
20 | * @var ManagerRegistry |
||
21 | */ |
||
22 | private $registry; |
||
23 | /** |
||
24 | * @var Logger |
||
25 | */ |
||
26 | private $logger; |
||
27 | |||
28 | 104 | public function __construct(ManagerRegistry $registry, Logger $logger) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 26 | public function getCredentials(Request $request) |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 20 | public function getUser($credentials, UserProviderInterface $userProvider) |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 13 | public function checkCredentials($credentials, UserInterface $user) |
|
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | 13 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
|
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | 8 | public function onAuthenticationFailure(Request $request, AuthenticationException $exception) |
|
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | 6 | public function start(Request $request, AuthenticationException $authException = null) |
|
120 | |||
121 | /** |
||
122 | * {@inheritdoc} |
||
123 | */ |
||
124 | public function supportsRememberMe() |
||
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | 8 | private function writeLogger($client) |
|
138 | } |
||
139 |