diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-01 16:48:58 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-01 16:48:58 -0400 |
commit | ea24cfb07c38e121613980e35aa8b1d2d65ac72c (patch) | |
tree | 5f7043baacbc93a0eda90bf9f525de5a187786f1 /app/Auth | |
parent | 80a0c9f56075bb5cc9ece781d33d15abae75ede2 (diff) |
Enable support for Github Enterprise when using Github Authentication
Diffstat (limited to 'app/Auth')
-rw-r--r-- | app/Auth/Github.php | 6 |
1 files changed, 3 insertions, 3 deletions
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()) ); } |