From bfa9a5ee58f983d285ec66e4f9b190b715a1eb30 Mon Sep 17 00:00:00 2001 From: Paul Rodwell Date: Thu, 11 May 2017 19:45:40 +0100 Subject: [PATCH 1/2] add select account prompt --- server/social.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/social.coffee b/server/social.coffee index 7bffec5..25b7593 100644 --- a/server/social.coffee +++ b/server/social.coffee @@ -289,7 +289,7 @@ module.exports = exports = (log, loga, argv) -> 'https://www.googleapis.com/auth/plus.profile.emails.read' ]})) app.get('/auth/google/callback', - passport.authenticate(googleStrategyName, { successRedirect: '/auth/loginDone', failureRedirect: '/auth/loginDialog'})) + passport.authenticate(googleStrategyName, { prompt: 'select_account', successRedirect: '/auth/loginDone', failureRedirect: '/auth/loginDialog'})) # Persona app.post('/auth/browserid', From b4cae40854ab3cd89f39a3d353f83cf1efe61af6 Mon Sep 17 00:00:00 2001 From: Paul Rodwell Date: Thu, 11 May 2017 19:58:32 +0100 Subject: [PATCH 2/2] add link to google documentation --- server/social.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/server/social.coffee b/server/social.coffee index 25b7593..25a77a8 100644 --- a/server/social.coffee +++ b/server/social.coffee @@ -288,6 +288,7 @@ module.exports = exports = (log, loga, argv) -> app.get('/auth/google', passport.authenticate(googleStrategyName, { scope: [ 'https://www.googleapis.com/auth/plus.profile.emails.read' ]})) + # see https://developers.google.com/identity/protocols/OpenIDConnect#authenticationuriparameters for details of prompt... app.get('/auth/google/callback', passport.authenticate(googleStrategyName, { prompt: 'select_account', successRedirect: '/auth/loginDone', failureRedirect: '/auth/loginDialog'}))