private function setAuthIfNotSet(IRequest $request)
    {
        // If the 'auth' parameter is not set in the request we try to get it from the Pushwoosh client
        if ($request->getAuth() === null) {
            // The 'auth' parameter is expected here
            if (!isset($this->auth)) {
                throw new PushwooshException('The \'auth\' parameter is not set !');

                // Use the 'auth' parameter defined in the Pushwoosh client
            } else {
                $request->setAuth($this->auth);
            }
        }
    }