change names, update
darcs-hash:20080602195138-84dde-d5106000f1496aac729685b65da8bb21c520f0a3.gz
This commit is contained in:
parent
1f8e18d97b
commit
10f9a8a125
|
@ -66,7 +66,7 @@ class LaconicaOAuthDataStore extends OAuthDataStore {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetch_request_token($consumer) {
|
function new_request_token($consumer) {
|
||||||
$t = new Token();
|
$t = new Token();
|
||||||
$t->consumer_key = $consumer->consumer_key;
|
$t->consumer_key = $consumer->consumer_key;
|
||||||
$t->tok = common_good_rand(16);
|
$t->tok = common_good_rand(16);
|
||||||
|
@ -81,7 +81,13 @@ class LaconicaOAuthDataStore extends OAuthDataStore {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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 = new Token();
|
||||||
$rt->consumer_key = $consumer->consumer_key;
|
$rt->consumer_key = $consumer->consumer_key;
|
||||||
$rt->tok = $token;
|
$rt->tok = $token;
|
||||||
|
@ -108,4 +114,10 @@ class LaconicaOAuthDataStore extends OAuthDataStore {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# defined in OAuthDataStore, but not implemented anywhere
|
||||||
|
|
||||||
|
function fetch_access_token($consumer) {
|
||||||
|
return $this->new_access_token($consumer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user