1 | <?php |
||
13 | class AuthenticationPlugin implements Plugin |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $key; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $secret; |
||
24 | |||
25 | /** |
||
26 | * AuthenticationPlugin constructor. |
||
27 | * @param string $key |
||
28 | * @param string $secret |
||
29 | */ |
||
30 | public function __construct(string $key, string $secret) |
||
35 | |||
36 | /** |
||
37 | * @param RequestInterface $request |
||
38 | * @param callable $next |
||
39 | * @param callable $first |
||
40 | * @return Promise |
||
41 | */ |
||
42 | public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise |
||
75 | } |
||
76 |