summaryrefslogtreecommitdiff
path: root/lib/web/auth/google/index.js
diff options
context:
space:
mode:
authorSheogorath2020-02-09 13:48:26 +0100
committerSheogorath2020-02-09 13:48:26 +0100
commitd5ae45b268452f315926bc4a8ded83e112603d0c (patch)
tree9e3b5cff1f93ec6dcda13a29421f7ae4248185cd /lib/web/auth/google/index.js
parentb3d4cdbcebe1690bf5211d778ff6f8a0f9f5e518 (diff)
parent78682f57c43c8af8abccc60848df4d7533dabc60 (diff)
Merge branch 'google-oauth'
See https://github.com/codimd/server/pull/265
Diffstat (limited to 'lib/web/auth/google/index.js')
-rw-r--r--lib/web/auth/google/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/web/auth/google/index.js b/lib/web/auth/google/index.js
index feb83025..6edf07a9 100644
--- a/lib/web/auth/google/index.js
+++ b/lib/web/auth/google/index.js
@@ -16,7 +16,7 @@ passport.use(new GoogleStrategy({
}, passportGeneralCallback))
googleAuth.get('/auth/google', function (req, res, next) {
- passport.authenticate('google', { scope: ['profile'] })(req, res, next)
+ passport.authenticate('google', { scope: ['profile'], hostedDomain: config.google.hostedDomain })(req, res, next)
})
// google auth callback
googleAuth.get('/auth/google/callback',