summaryrefslogtreecommitdiff
path: root/app/Auth
diff options
context:
space:
mode:
Diffstat (limited to 'app/Auth')
-rw-r--r--app/Auth/Github.php6
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())
);
}