Esempio n. 1
0
 /**
  * Validates a given API request as being sent from origin via request signature
  *
  * @param string $body
  *
  * @return void
  */
 private function validateRequest($request)
 {
     $token = $request['requestToken'];
     unset($request['requestToken']);
     if ($token === OriginAPI::generateSignedRequest(http_build_query($request))) {
         return;
     }
     Output::render404();
 }