summaryrefslogtreecommitdiff
path: root/lib/oauthstore.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-02 15:51:38 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-02 15:51:38 -0400
commit10f9a8a125c08dd403319aa84b4902db91253095 (patch)
treecd37a98b06acd843ce0f283b1369935d27a930d1 /lib/oauthstore.php
parent1f8e18d97baa4721ca8d2a7990196525835b251f (diff)
change names, update
darcs-hash:20080602195138-84dde-d5106000f1496aac729685b65da8bb21c520f0a3.gz
Diffstat (limited to 'lib/oauthstore.php')
-rw-r--r--lib/oauthstore.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/oauthstore.php b/lib/oauthstore.php
index 4d2ce9a58..fe7f68c02 100644
--- a/lib/oauthstore.php
+++ b/lib/oauthstore.php
@@ -66,7 +66,7 @@ class LaconicaOAuthDataStore extends OAuthDataStore {
}
}
- 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);
@@ -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->consumer_key = $consumer->consumer_key;
$rt->tok = $token;
@@ -108,4 +114,10 @@ class LaconicaOAuthDataStore extends OAuthDataStore {
return NULL;
}
}
+
+ # defined in OAuthDataStore, but not implemented anywhere
+
+ function fetch_access_token($consumer) {
+ return $this->new_access_token($consumer);
+ }
}