| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 2 | protected function validIntrospectionResponse() |
|
| 16 | { |
||
| 17 | 2 | $token = $this->getTokenFromRequest(); |
|
| 18 | |||
| 19 | $responseParams = [ |
||
| 20 | 2 | 'active' => true, |
|
| 21 | 2 | 'token_type' => 'access_token', |
|
| 22 | 2 | 'scope' => $token->getClaim('scopes', ''), |
|
| 23 | 2 | 'client_id' => $token->getClaim('aud'), |
|
| 24 | 2 | 'exp' => $token->getClaim('exp'), |
|
| 25 | 2 | 'iat' => $token->getClaim('iat'), |
|
| 26 | 2 | 'sub' => $token->getClaim('sub'), |
|
| 27 | 2 | 'jti' => $token->getClaim('jti'), |
|
| 28 | ]; |
||
| 29 | |||
| 30 | 2 | return array_merge($this->getExtraParams(), $responseParams); |
|
| 31 | } |
||
| 32 | |||
| 46 |