1 | <?php |
||
8 | class IntrospectionResponse extends AbstractResponseType |
||
9 | { |
||
10 | /** |
||
11 | * @var Token |
||
12 | */ |
||
13 | protected $token; |
||
14 | |||
15 | /** |
||
16 | * Set the token against the response |
||
17 | * |
||
18 | * @param Token |
||
19 | */ |
||
20 | 1 | public function setToken(Token $token) |
|
24 | |||
25 | /** |
||
26 | * Extract the introspection params from the token |
||
27 | */ |
||
28 | 5 | public function getValidIntrospectionParams() |
|
47 | |||
48 | /** |
||
49 | * @param ResponseInterface $response |
||
50 | * |
||
51 | * @return ResponseInterface |
||
52 | */ |
||
53 | public function generateHttpResponse(ResponseInterface $response) |
||
75 | |||
76 | /** |
||
77 | * Add custom fields to your Introspection response here, then set your introspection |
||
78 | * reponse in AuthorizationServer::setIntrospectionResponseType() to pull in your version of |
||
79 | * this class rather than the default. |
||
80 | * |
||
81 | * @return array |
||
82 | */ |
||
83 | protected function getExtraParams() |
||
87 | } |
||
88 |