1 | <?php |
||
20 | class TokenExtractorModule extends AbstractModule |
||
21 | { |
||
22 | /** |
||
23 | * Used to detect token in header. |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | private $header = ['Authorization', '/Bearer\s+(.*)$/i']; |
||
28 | |||
29 | /** |
||
30 | * Used to detect token in cookie. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $cookie = 'token'; |
||
35 | |||
36 | /** |
||
37 | * Used to detect token in query string. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | private $queryParam = 'token'; |
||
42 | |||
43 | 16 | protected function configure() |
|
53 | } |
||
54 |