diff options
author | Zach Copley <zach@status.net> | 2010-10-12 17:52:04 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-10-12 17:52:04 -0700 |
commit | 04f3f57e2eed2a7757b3dd2bf5afc4926dd0961b (patch) | |
tree | 1cc2f2ac91ef73e1025442ce8ac5ae4322d9073b /lib/oauthstore.php | |
parent | 112b6c40793a18262425ca039e4fe4a6eb68bce4 (diff) | |
parent | 5270e931311af0f644ebd4302833ad3bb89b81d4 (diff) |
Merge branch 'oauth-1.0a' into 0.9.x
Diffstat (limited to 'lib/oauthstore.php')
-rw-r--r-- | lib/oauthstore.php | 11 |
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." |