| @@ 115-127 (lines=13) @@ | ||
| 112 | ); |
|
| 113 | } |
|
| 114 | ||
| 115 | if (!$this->options['disable_introspect_endpoint']) { |
|
| 116 | $service->post( |
|
| 117 | $this->options['route_prefix'].'/introspect', |
|
| 118 | function (Request $request, UserInfoInterface $userInfo) { |
|
| 119 | return $this->server->postIntrospect($request, $userInfo); |
|
| 120 | }, |
|
| 121 | [ |
|
| 122 | 'fkooman\Rest\Plugin\Authentication\AuthenticationPlugin' => [ |
|
| 123 | 'activate' => ['resource_server'], |
|
| 124 | ], |
|
| 125 | ] |
|
| 126 | ); |
|
| 127 | } |
|
| 128 | } |
|
| 129 | } |
|
| 130 | ||
| @@ 117-129 (lines=13) @@ | ||
| 114 | ); |
|
| 115 | } |
|
| 116 | ||
| 117 | if (!$this->options['disable_introspect_endpoint']) { |
|
| 118 | $this->post( |
|
| 119 | $this->options['route_prefix'].'/introspect', |
|
| 120 | function (Request $request, UserInfoInterface $userInfo) { |
|
| 121 | return $this->server->postIntrospect($request, $userInfo); |
|
| 122 | }, |
|
| 123 | [ |
|
| 124 | 'fkooman\Rest\Plugin\Authentication\AuthenticationPlugin' => [ |
|
| 125 | 'activate' => ['resource_server'], |
|
| 126 | ], |
|
| 127 | ] |
|
| 128 | ); |
|
| 129 | } |
|
| 130 | } |
|
| 131 | } |
|
| 132 | ||