/** @return boolean */ public function isSigned() { return false; //@todo pro oauth try { if ($this->isSigned === null) { Logger::debug("login", "signed je null"); $di = $this->getDI(); $request = $di->getHttpRequest(); $signed = $request->isSigned(); Logger::debug("login", "api controler signed je " . var_export($signed, true)); $this->isSigned = $signed; } Logger::debug("login", "api controler isSigned je " . var_export($this->isSigned, true)); return $this->isSigned; } catch (\Exception $e) { throw $e; } }
/** * @return bool */ public function isSigned() { Logger::debug("login", "http: isSigned:start"); if ($this->getParam('oauth_signature')) { return true; } Logger::debug("login", "http: neni oauth_signature"); $hs = $this->request->getHeaders(); $signed = isset($hs['Authorization']) && strpos($hs['Authorization'], 'oauth_signature') !== false; Logger::debug("login", "http: signed je " . var_export($signed, true)); return $signed; }