1 | <?php |
||
15 | class JwtBearer extends GrantTypeBase |
||
16 | { |
||
17 | protected $grantType = 'urn:ietf:params:oauth:grant-type:jwt-bearer'; |
||
18 | |||
19 | /** |
||
20 | * @param ClientInterface $client |
||
21 | * @param array $config |
||
22 | */ |
||
23 | 3 | public function __construct(ClientInterface $client, array $config = []) |
|
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | 3 | protected function getRequired() |
|
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | 1 | protected function getAdditionalOptions() |
|
51 | |||
52 | /** |
||
53 | * Compute JWT, signing with provided private key |
||
54 | */ |
||
55 | 1 | protected function computeJwt() |
|
66 | |||
67 | /** |
||
68 | * Read private key |
||
69 | * |
||
70 | * @param SplFileObject $privateKey |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | 1 | protected function readPrivateKey(SplFileObject $privateKey) |
|
82 | } |
||
83 |