| @@ 100-113 (lines=14) @@ | ||
| 97 | ] |
|
| 98 | ); |
|
| 99 | ||
| 100 | if (!$this->options['disable_token_endpoint']) { |
|
| 101 | $service->post( |
|
| 102 | $this->options['route_prefix'].'/token', |
|
| 103 | function (Request $request, UserInfoInterface $userInfo = null) { |
|
| 104 | return $this->server->postToken($request, $userInfo); |
|
| 105 | }, |
|
| 106 | [ |
|
| 107 | 'fkooman\Rest\Plugin\Authentication\AuthenticationPlugin' => [ |
|
| 108 | 'activate' => ['client'], |
|
| 109 | 'require' => false, |
|
| 110 | ], |
|
| 111 | ] |
|
| 112 | ); |
|
| 113 | } |
|
| 114 | ||
| 115 | if (!$this->options['disable_introspect_endpoint']) { |
|
| 116 | $service->post( |
|
| @@ 102-115 (lines=14) @@ | ||
| 99 | ] |
|
| 100 | ); |
|
| 101 | ||
| 102 | if (!$this->options['disable_token_endpoint']) { |
|
| 103 | $this->post( |
|
| 104 | $this->options['route_prefix'].'/token', |
|
| 105 | function (Request $request, UserInfoInterface $userInfo = null) { |
|
| 106 | return $this->server->postToken($request, $userInfo); |
|
| 107 | }, |
|
| 108 | [ |
|
| 109 | 'fkooman\Rest\Plugin\Authentication\AuthenticationPlugin' => [ |
|
| 110 | 'activate' => ['client'], |
|
| 111 | 'require' => false, |
|
| 112 | ], |
|
| 113 | ] |
|
| 114 | ); |
|
| 115 | } |
|
| 116 | ||
| 117 | if (!$this->options['disable_introspect_endpoint']) { |
|
| 118 | $this->post( |
|