public function resourceRequest(Request $Request, Response $Response): Request
    {
        try { // Authenticate resource request.
            $ResourceServer = $this->resourceServer();
            return $Request = $ResourceServer->validateAuthenticatedRequest($Request);
            //
        } catch (OAuthServerException $Exception) {
            $Response = $Exception->generateHttpResponse($Response);
            $Response->output(['exit' => true]);
            //
        } catch (\Throwable $Exception) {
            $Exception = new OAuthServerException($Exception->getMessage(), 0, 'unknown', 500);
            $Response  = $Exception->generateHttpResponse($Response);
            $Response->output(['exit' => true]);
        }
    }