private function OAuthServer::check_nonce in OAuth 1.0 6
Same name and namespace in other branches
- 6.3 lib/OAuth.php \OAuthServer::check_nonce()
- 7.3 lib/OAuth.php \OAuthServer::check_nonce()
check that the nonce is not repeated
1 call to OAuthServer::check_nonce()
- OAuthServer::check_signature in ./
OAuth.php - all-in-one function to check the signature on a request should guess the signature method appropriately
File
- ./
OAuth.php, line 623
Class
Code
private function check_nonce($consumer, $token, $nonce, $timestamp) {
/*{{{*/
// verify that the nonce is uniqueish
$found = $this->data_store
->lookup_nonce($consumer, $token, $nonce, $timestamp);
if ($found) {
throw new OAuthException("Nonce already used: {$nonce}");
}
}