| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 3 | public function authenticate(ServerRequestInterface $request): ?IdentityInterface |
|
| 32 | { |
||
| 33 | 3 | $accessToken = $request->getQueryParams()[$this->tokenParam] ?? null; |
|
| 34 | 3 | if (is_string($accessToken)) { |
|
| 35 | 3 | return $this->identityRepository->findIdentityByToken($accessToken, get_class($this)); |
|
| 36 | } |
||
| 37 | |||
| 38 | 3 | return null; |
|
| 39 | } |
||
| 51 |