Skip to content

Commit

Permalink
Merge pull request borismus#25 from ukd1/patch-1
Browse files Browse the repository at this point in the history
Fix missing scope parameter from the github adaptor
  • Loading branch information
borismus committed Jun 18, 2013
2 parents ef39ace + 199036c commit 3d73da8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/adapters/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ OAuth2.adapter('github', {
authorizationCodeURL: function(config) {
return ('https://github.com/login/oauth/authorize?' +
'client_id={{CLIENT_ID}}&' +
'scope={{API_SCOPE}}&' +
'redirect_uri={{REDIRECT_URI}}')
.replace('{{CLIENT_ID}}', config.clientId)
.replace('{{API_SCOPE}}', config.apiScope)
.replace('{{REDIRECT_URI}}', this.redirectURL(config));
},

Expand Down

0 comments on commit 3d73da8

Please sign in to comment.