sou 7 лет назад
Родитель
Сommit
582eff4e42
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      lib/service/passport.js

+ 4 - 2
lib/service/passport.js

@@ -274,10 +274,12 @@ class PassportService {
     //     done(null, ldapAccountInfo);
     //     done(null, ldapAccountInfo);
     //   }
     //   }
     // ));
     // ));
+    console.log(config.crowi['security:passport-google:clientId'])
+    console.log(config.crowi['security:passport-google:clientSecret'])
 
 
     passport.use(new GoogleStrategy({
     passport.use(new GoogleStrategy({
-      clientID: config.crowi['google:clientId'],
-      clientSecret: config.crowi['google:clientSecret'],
+      clientID: config.crowi['security:passport-google:clientId'],
+      clientSecret: config.crowi['security:passport-google:clientSecret'],
       callbackURL: '/auth/passport/google/callback',
       callbackURL: '/auth/passport/google/callback',
     },
     },
     function(accessToken, refreshToken, profile, done) {
     function(accessToken, refreshToken, profile, done) {