1 | <?php |
||
14 | class JwtManager |
||
15 | { |
||
16 | /** |
||
17 | * $client Guzzle Client. |
||
18 | * |
||
19 | * @var ClientInterface |
||
20 | */ |
||
21 | protected $client; |
||
22 | |||
23 | /** |
||
24 | * $auth Authentication Strategy. |
||
25 | * |
||
26 | * @var AuthStrategyInterface |
||
27 | */ |
||
28 | protected $auth; |
||
29 | |||
30 | /** |
||
31 | * $options. |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $options; |
||
36 | |||
37 | /** |
||
38 | * $token. |
||
39 | * |
||
40 | * @var JwtToken |
||
41 | */ |
||
42 | protected $token; |
||
43 | |||
44 | /** |
||
45 | * Constructor. |
||
46 | * |
||
47 | * @param ClientInterface $client |
||
48 | * @param AuthStrategyInterface $auth |
||
49 | * @param array $options |
||
50 | */ |
||
51 | public function __construct( |
||
70 | |||
71 | /** |
||
72 | * getToken. |
||
73 | * |
||
74 | * @return JwtToken |
||
75 | */ |
||
76 | public function getJwtToken() |
||
102 | |||
103 | /** |
||
104 | * getHeaders. Return defaults header. |
||
105 | * |
||
106 | * @return array |
||
107 | */ |
||
108 | private function getDefaultHeaders() |
||
116 | } |
||
117 |