public function auth() { try { $this->log->info("Authenticating..."); $appAuthInfo = new AppAuthInfo(); $appAuthInfo->sharedSecret = $this->sharedSecret; $appAuthInfo->applicationId = $this->applicationId; MozuConfig::$baseAppAuthUrl = $this->baseUrl; $this->log->info($this->baseUrl); $this->log->info("Base Auth Url : " . MozuConfig::$baseAppAuthUrl); $this->log->info('Authenticating...'); AppAuthenticator::initialize($appAuthInfo); $this->log->info('Authentication done...'); $appAuthenticator = AppAuthenticator::getInstance(); $this->log->info("Access Token : " . $appAuthenticator->getAccessToken()); } catch (\Exception $e) { $this->log->error("Exception : code - " . $e->getCode() . ", message - " . $e->getMessage() . ", correlationid - " . $e->getCorrelationId()); throw $e; } }