| Conditions | 5 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function findJWK(array $header) |
||
| 22 | { |
||
| 23 | if (!isset($header['jku'])) { |
||
| 24 | return; |
||
| 25 | } |
||
| 26 | |||
| 27 | $content = $this->downloadContent($header['jku']); |
||
| 28 | if (null === $content) { |
||
| 29 | return; |
||
| 30 | } |
||
| 31 | $content = json_decode($content, true); |
||
| 32 | if (!is_array($content) || !array_key_exists('keys', $content)) { |
||
| 33 | return; |
||
| 34 | } |
||
| 35 | |||
| 36 | return $content; |
||
| 37 | } |
||
| 38 | |||
| 64 |