summaryrefslogtreecommitdiff
path: root/lib/oauthstore.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-10-06 19:20:47 -0700
committerZach Copley <zach@status.net>2010-10-06 19:20:47 -0700
commit69e621a3e882cd060eb4314554aada7167edd897 (patch)
tree9d6d31b7e72d8f22e1029a3a90316046d1d73828 /lib/oauthstore.php
parentf71912440a17f468b1d60db2388fc6030631fce6 (diff)
- Update ApiOauthAuthorizeAction to 1.0a
- Fix enumerable bugs - New page for displaying 1.0a verifier (still needs work)
Diffstat (limited to 'lib/oauthstore.php')
-rw-r--r--lib/oauthstore.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/oauthstore.php b/lib/oauthstore.php
index f3ee629fd..537667678 100644
--- a/lib/oauthstore.php
+++ b/lib/oauthstore.php
@@ -55,6 +55,17 @@ class StatusNetOAuthDataStore extends OAuthDataStore
}
}
+ function getTokenByKey($token_key)
+ {
+ $t = new Token();
+ $t->tok = $token_key;
+ if ($t->find(true)) {
+ return $t;
+ } else {
+ return null;
+ }
+ }
+
// http://oauth.net/core/1.0/#nonce
// "The Consumer SHALL then generate a Nonce value that is unique for
// all requests with that timestamp."