Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updates for GitHub API v3 authentication

  • Loading branch information...
commit e7072b76ade7429718373e730100dd557cc7b603 1 parent ec9dcad
@dennisreimann dennisreimann authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/auth.strategies/github.js
View
4 lib/auth.strategies/github.js
@@ -55,12 +55,12 @@ module.exports= function(options, server) {
else {
request.session["access_token"]= access_token;
if( refresh_token ) request.session["refresh_token"]= refresh_token;
- my._oAuth.getProtectedResource("https://github.com/api/v2/json/user/show", request.session["access_token"], function (error, data, response) {
+ my._oAuth.getProtectedResource("https://api.github.com/user", request.session["access_token"], function (error, data, response) {
if( error ) {
request.getAuthDetails()['github_login_attempt_failed'] = true;
self.fail(callback);
}else {
- self.success(JSON.parse(data).user, callback)
+ self.success(JSON.parse(data), callback)
}
})
}
Please sign in to comment.
Something went wrong with that request. Please try again.