Skip to content

Commit

Permalink
update oauth2 example
Browse files Browse the repository at this point in the history
see google's schedule for service shutdown date (sept 1, 2014 sunset) on these two scopes: userinfo.profile & userinfo.email, https://developers.google.com/+/api/auth-migration#timetable
  • Loading branch information
reqshark committed Apr 12, 2014
1 parent bd51963 commit 287d53b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/oauth2/app.js
Expand Up @@ -88,8 +88,7 @@ app.get('/login', function(req, res){
// redirecting the user to google.com. After authorization, Google
// will redirect the user back to this application at /auth/google/callback
app.get('/auth/google',
passport.authenticate('google', { scope: ['https://www.googleapis.com/auth/userinfo.profile',
'https://www.googleapis.com/auth/userinfo.email'] }),
passport.authenticate('google', { scope: ['https://www.googleapis.com/auth/plus.login'] }),
function(req, res){
// The request will be redirected to Google for authentication, so this
// function will not be called.
Expand Down

0 comments on commit 287d53b

Please sign in to comment.