public function OAuthServer::fetch_request_token in OAuth 1.0 6
Same name and namespace in other branches
- 6.3 lib/OAuth.php \OAuthServer::fetch_request_token()
- 7.3 lib/OAuth.php \OAuthServer::fetch_request_token()
process a request_token request returns the request token on success
File
- ./
OAuth.php, line 472
Class
Code
public function fetch_request_token(&$request) {
/*{{{*/
$this
->get_version($request);
$consumer = $this
->get_consumer($request);
// no token required for the initial token request
$token = NULL;
$this
->check_signature($request, $consumer, $token);
$new_token = $this->data_store
->new_request_token($consumer);
return $new_token;
}