From e56385a7bb25336a72c1d37ad43d51ba8e238231 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 20 Oct 2010 17:21:04 -0700 Subject: Use a new table (oauth_token_association) to associate authorized request tokins with OAuth client applications and profiles. --- classes/Oauth_token_association.php | 44 +++++++++++++++++++++++++++++++++++++ classes/statusnet.ini | 12 ++++++++++ 2 files changed, 56 insertions(+) create mode 100644 classes/Oauth_token_association.php (limited to 'classes') diff --git a/classes/Oauth_token_association.php b/classes/Oauth_token_association.php new file mode 100644 index 000000000..051732712 --- /dev/null +++ b/classes/Oauth_token_association.php @@ -0,0 +1,44 @@ +profile_id = $user->id; + $oau->token = $token; + $oau->limit(1); + + $result = $oau->find(true); + + return empty($result) ? null : $oau; + } + +} + diff --git a/classes/statusnet.ini b/classes/statusnet.ini index 3fb8ee208..ef631e28d 100644 --- a/classes/statusnet.ini +++ b/classes/statusnet.ini @@ -401,6 +401,18 @@ modified = 384 profile_id = K application_id = K +[oauth_token_association] +profile_id = 129 +application_id = 129 +token = 130 +created = 142 +modified = 384 + +[oauth_token_association__keys] +profile_id = K +application_id = K +token = K + [profile] id = 129 nickname = 130 -- cgit v1.2.3-54-g00ecf