| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | final class Authenticator extends AbstractAuthenticator |
||
| 17 | { |
||
| 18 | private $tokenParser; |
||
| 19 | private $identityClaim; |
||
| 20 | |||
| 21 | public function __construct(Extractor $extractor, ResponseFactory $response, TokenParser $tokenParser, string $identityClaim = null) |
||
| 27 | } |
||
| 28 | |||
| 29 | public function checkCredentials($credentials, UserInterface $user): bool |
||
| 30 | { |
||
| 31 | return $this->tokenParser->isValid($credentials); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getUser($credentials, UserProviderInterface $userProvider): UserInterface |
||
| 43 | } |
||
| 44 | } |
||
| 45 |