Skip to content

Commit

Permalink
Swap to Goo relative profile scope (#1527)
Browse files Browse the repository at this point in the history
* Setting goo auth to read only for a while until this is clarified at passport strategy

NOTE:
* Untested on pro but seems to work on dev

Applies to #1526

Auto-merge
  • Loading branch information
Martii authored Oct 8, 2018
1 parent 3c36dfa commit 81664c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ exports.auth = function (aReq, aRes, aNext) {
}

if (strategy === 'google') {
authOpts.scope = ['https://www.googleapis.com/auth/plus.login'];
authOpts.scope = ['profile'];
}
authenticate = passport.authenticate(strategy, authOpts);

Expand Down
2 changes: 1 addition & 1 deletion controllers/strategies.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"google": {
"name": "Google",
"oauth": true,
"readonly": false
"readonly": true
},
"imgur": {
"name": "Imgur",
Expand Down

0 comments on commit 81664c8

Please sign in to comment.