From ea24cfb07c38e121613980e35aa8b1d2d65ac72c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 1 Aug 2015 16:48:58 -0400 Subject: Enable support for Github Enterprise when using Github Authentication --- app/Auth/Github.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Auth') diff --git a/app/Auth/Github.php b/app/Auth/Github.php index 44bcc6c8..021ea77d 100644 --- a/app/Auth/Github.php +++ b/app/Auth/Github.php @@ -94,8 +94,8 @@ class Github extends Base GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, $this->helper->url->to('oauth', 'github', array(), '', true), - 'https://github.com/login/oauth/authorize', - 'https://github.com/login/oauth/access_token', + GITHUB_OAUTH_AUTHORIZE_URL, + GITHUB_OAUTH_TOKEN_URL, array() ); } @@ -115,7 +115,7 @@ class Github extends Base $this->getService()->getAccessToken($code); return $this->httpClient->getJson( - 'https://api.github.com/user', + GITHUB_API_URL.'user', array($this->getService()->getAuthorizationHeader()) ); } -- cgit v1.2.3