git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 77609e0c authored by Zach Copley's avatar Zach Copley

Fix for ticket 2756 - Calls to OAuth endpoints are redirected to the

login page when a site is in private mode
parent 834c09d5
......@@ -270,7 +270,7 @@ class ApiOauthAuthorizeAction extends ApiOauthAction
$this->elementStart('form', array('method' => 'post',
'id' => 'form_apioauthauthorize',
'class' => 'form_settings',
'action' => common_local_url('apioauthauthorize')));
'action' => common_local_url('ApiOauthAuthorize')));
$this->elementStart('fieldset');
$this->element('legend', array('id' => 'apioauthauthorize_allowdeny'),
_('Allow or deny access'));
......
......@@ -488,19 +488,19 @@ class Router
// Social graph
$m->connect('api/friends/ids/:id.:format',
array('action' => 'apiuserfriends',
array('action' => 'ApiUserFriends',
'ids_only' => true));
$m->connect('api/followers/ids/:id.:format',
array('action' => 'apiuserfollowers',
array('action' => 'ApiUserFollowers',
'ids_only' => true));
$m->connect('api/friends/ids.:format',
array('action' => 'apiuserfriends',
array('action' => 'ApiUserFriends',
'ids_only' => true));
$m->connect('api/followers/ids.:format',
array('action' => 'apiuserfollowers',
array('action' => 'ApiUserFollowers',
'ids_only' => true));
// account
......@@ -672,13 +672,13 @@ class Router
$m->connect('api/trends.json', array('action' => 'ApiTrends'));
$m->connect('api/oauth/request_token',
array('action' => 'apioauthrequesttoken'));
array('action' => 'ApiOauthRequestToken'));
$m->connect('api/oauth/access_token',
array('action' => 'apioauthaccesstoken'));
array('action' => 'ApiOauthAccessToken'));
$m->connect('api/oauth/authorize',
array('action' => 'apioauthauthorize'));
array('action' => 'ApiOauthAuthorize'));
// Admin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment