Merge pull request #12 from fedwiki/paul90/google-selector

Paul90/google selector
This commit is contained in:
Paul Rodwell 2017-05-13 19:46:27 +01:00 committed by GitHub
commit b960448e67
1 changed files with 2 additions and 1 deletions

View File

@ -288,8 +288,9 @@ 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, { successRedirect: '/auth/loginDone', failureRedirect: '/auth/loginDialog'}))
passport.authenticate(googleStrategyName, { prompt: 'select_account', successRedirect: '/auth/loginDone', failureRedirect: '/auth/loginDialog'}))
# Persona
app.post('/auth/browserid',