Skip to content
Browse files

update github to v3 api

  • Loading branch information...
1 parent 66b485f commit cd8bbc7105f16016c62150c11676c3dbdaa13c59 @mnutt mnutt committed Jun 13, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/modules/github.js
  2. +1 −1 package.json
View
4 lib/modules/github.js
@@ -19,9 +19,9 @@ exports.setup = function(everyauth) {
.appSecret(conf.modules.github.appSecret)
.findOrCreateUser( function (sess, accessToken, accessTokenExtra, ghUser) {
var p = this.Promise();
- this.oauth.get(this.apiHost() + '/organizations', accessToken, function (err, data) {
+ this.oauth.get(this.apiHost() + '/user/orgs', accessToken, function (err, data) {
if (err) return p.fail(err);
- ghUser.organizations = JSON.parse(data).organizations;
+ ghUser.organizations = JSON.parse(data);
p.fulfill(ghUser);
})
return p;
View
2 package.json
@@ -7,7 +7,7 @@
"author": {"name": "Michael Nutt", "url": "http://nuttnet.net"},
"repository": {"type": "git", "url": "http://github.com/mnutt/oauth-proxy.git"},
"dependencies": {
- "everyauth": "http://nodeload.github.com/mnutt/everyauth/tarball/master",
+ "everyauth": "http://nodeload.github.com/bnoguchi/everyauth/tarball/master",
"http-proxy": "0.8.0",
"express": "2.5.6",
"connect": "1.8.5",

0 comments on commit cd8bbc7

Please sign in to comment.
Something went wrong with that request. Please try again.