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 | * Constructor. |
||
39 | * |
||
40 | * @param ClientInterface $client |
||
41 | * @param AuthStrategyInterface $auth |
||
42 | * @param array $options |
||
43 | */ |
||
44 | public function __construct( |
||
62 | |||
63 | /** |
||
64 | * getToken. |
||
65 | * |
||
66 | * @return JwtToken |
||
67 | */ |
||
68 | public function getJwtToken() |
||
82 | |||
83 | /** |
||
84 | * getHeaders. Return defaults header. |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | private function getDefautHeaders() |
||
96 | } |
||
97 |