private function checkInputs()
    {
        if (!$this->disableInputCheck && !($this->requestId && $this->connectId)) {
            throw new EndpointException("No request ID or connect ID were provided");
        }
        
        $requestId = $this->getParam("request_id");
        $connectId = $this->getParam("connect_id");
        $code = $this->getParam("code");
        $signature = $this->getParam("signature");
        $status = $this->getParam("result");
        
        if (!$this->disableInputCheck) {
          if ($this->requestId != $requestId) {
              throw new EndpointException("Invalid request ID");
          }

          if ($this->connectId != $connectId) {
              throw new EndpointException("Invalid connect ID");
          }
        }
        
        if ($status == self::STATUS_AUTHORIZED) {
          if (!$code) {
            throw new EndpointException("No auth code");
          }
        }
        
        $this->checkSignature(base64_decode($signature, true), $status, $code);
        
        return ($status == self::STATUS_AUTHORIZED);
    }