diff options
author | Zach Copley <zach@status.net> | 2010-01-13 05:06:35 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-01-24 16:36:04 -0800 |
commit | 8da5e98cba12c32f0b75a90d1ff0007b73f0fc8d (patch) | |
tree | 6ec3df66f796d42ad83c8d274d1c8667c921a949 /lib/router.php | |
parent | adfca0180847571b9474db76a0c4daa407acf22b (diff) |
OAuth 1.0 working now
Diffstat (limited to 'lib/router.php')
-rw-r--r-- | lib/router.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/router.php b/lib/router.php index 420f5a0a1..d6e448c2f 100644 --- a/lib/router.php +++ b/lib/router.php @@ -50,8 +50,7 @@ class Router var $m = null; static $inst = null; static $bare = array('requesttoken', 'accesstoken', 'userauthorization', - 'postnotice', 'updateprofile', 'finishremotesubscribe', - 'apioauthrequesttoken', 'apioauthaccesstoken'); + 'postnotice', 'updateprofile', 'finishremotesubscribe'); static function get() { @@ -659,7 +658,13 @@ class Router 'id' => '[0-9]+') ); - $m->connect('oauth/authorize', + $m->connect('api/oauth/request_token', + array('action' => 'apioauthrequesttoken')); + + $m->connect('api/oauth/access_token', + array('action' => 'apioauthaccesstoken')); + + $m->connect('api/oauth/authorize', array('action' => 'apioauthauthorize')); foreach (array('subscriptions', 'subscribers') as $a) { |