diff options
author | Zach Copley <zach@status.net> | 2010-10-19 20:54:53 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-10-19 20:54:53 -0700 |
commit | e8b6d7c946da5fb2ce5397bccfd332de8ca1f9dd (patch) | |
tree | 3deb74da4e590c4f5756caed1fa1299a2b1bd2f0 /actions/apioauthauthorize.php | |
parent | d48f4a81d6af7a9a326ffc2e87d7de568ab48fbe (diff) |
Add support for an anonymous OAuth consumer. Note: this requires a
small DB tweak. Oauth_application_user needs to have the primary
compound key: (profile_id, application_id, token).
http://status.net/open-source/issues/2761
This should also make it possible to have multiple access tokens
per application.
http://status.net/open-source/issues/2788
Diffstat (limited to 'actions/apioauthauthorize.php')
-rw-r--r-- | actions/apioauthauthorize.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/actions/apioauthauthorize.php b/actions/apioauthauthorize.php index eb1000e25..01cbca18f 100644 --- a/actions/apioauthauthorize.php +++ b/actions/apioauthauthorize.php @@ -177,21 +177,6 @@ class ApiOauthAuthorizeAction extends Action $this->serverError($e->getMessage()); } - // Check to see if there was a previous token associated - // with this user/app and kill it. If the user is doing this she - // probably doesn't want any old tokens anyway. - - $appUser = Oauth_application_user::getByKeys($user, $this->app); - - if (!empty($appUser)) { - $result = $appUser->delete(); - - if (!$result) { - common_log_db_error($appUser, 'DELETE', __FILE__); - $this->serverError(_('Database error deleting OAuth application user.')); - } - } - // associated the authorized req token with the user and the app $appUser = new Oauth_application_user(); |