Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class QueryParam implements AuthInterface |
||
17 | { |
||
18 | private const TOKEN_PARAM = 'access-token'; |
||
19 | /** |
||
20 | * @var string the parameter name for passing the access token |
||
21 | */ |
||
22 | private string $tokenParam = self::TOKEN_PARAM; |
||
23 | |||
24 | private IdentityRepositoryInterface $identityRepository; |
||
25 | |||
26 | 9 | public function __construct(IdentityRepositoryInterface $identityRepository) |
|
29 | 9 | } |
|
30 | |||
31 | 7 | public function authenticate(ServerRequestInterface $request): ?IdentityInterface |
|
39 | } |
||
40 | |||
41 | 2 | public function challenge(ResponseInterface $response): ResponseInterface |
|
44 | } |
||
45 | |||
46 | 1 | public function setTokenParam(string $param): void |
|
51 |