}
}
- function fetch_request_token($consumer) {
+ function new_request_token($consumer) {
$t = new Token();
$t->consumer_key = $consumer->consumer_key;
$t->tok = common_good_rand(16);
}
}
- function fetch_access_token($token, $consumer) {
+ # defined in OAuthDataStore, but not implemented anywhere
+
+ function fetch_request_token($consumer) {
+ return $this->new_request_token($consumer);
+ }
+
+ function new_access_token($token, $consumer) {
$rt = new Token();
$rt->consumer_key = $consumer->consumer_key;
$rt->tok = $token;
return NULL;
}
}
+
+ # defined in OAuthDataStore, but not implemented anywhere
+
+ function fetch_access_token($consumer) {
+ return $this->new_access_token($consumer);
+ }
}