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 /lib/apiauth.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 'lib/apiauth.php')
-rw-r--r-- | lib/apiauth.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/apiauth.php b/lib/apiauth.php index a1c698bba..0ebd7aa10 100644 --- a/lib/apiauth.php +++ b/lib/apiauth.php @@ -178,8 +178,10 @@ class ApiAuthAction extends ApiAction } // set the source attr + if ($app->name != 'anonymous') { + $this->source = $app->name; + } - $this->source = $app->name; $appUser = Oauth_application_user::staticGet('token', $access_token); |