diff options
author | Sheogorath | 2020-02-09 13:48:26 +0100 |
---|---|---|
committer | Sheogorath | 2020-02-09 13:48:26 +0100 |
commit | d5ae45b268452f315926bc4a8ded83e112603d0c (patch) | |
tree | 9e3b5cff1f93ec6dcda13a29421f7ae4248185cd /lib/web | |
parent | b3d4cdbcebe1690bf5211d778ff6f8a0f9f5e518 (diff) | |
parent | 78682f57c43c8af8abccc60848df4d7533dabc60 (diff) |
Merge branch 'google-oauth'
See https://github.com/codimd/server/pull/265
Diffstat (limited to 'lib/web')
-rw-r--r-- | lib/web/auth/google/index.js | 2 |
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', |