Example #1
0
 /**
  * Get a new request & update with some settings (host, init key, secret key)
  * 
  * @return \DuoAuth\Request object
  */
 public function getRequest()
 {
     $request = new \DuoAuth\Request($this->getClient());
     $request->setHostname($this->getHostname())->setIntKey($this->getIntegration())->setSecretKey($this->getSecret());
     // add the timestamp to the hash options
     $request->setHashOptions(array('date' => date('r')));
     return $request;
 }
Example #2
0
 /**
  * Get a new request & update with some settings (host, init key, secret key)
  * 
  * @return \DuoAuth\Request object
  */
 public function getRequest()
 {
     $request = new \DuoAuth\Request($this->getClient());
     $request->setHostname($this->getHostname())->setIntKey($this->getIntegration())->setSecretKey($this->getSecret());
     return $request;
 }