From 197223dc81267efb22a63872a42f839b2276e1b6 Mon Sep 17 00:00:00 2001 From: ike Date: Fri, 7 Feb 2020 08:51:58 +0800 Subject: Add Google oauth variable: hostedDomain Which is part of `passport-google-oauth2`. It could be used as whitelist to a domain supported by google oauth. Ref: https://github.com/jaredhanson/passport-google-oauth2/issues/3 Signed-off-by: ike --- lib/config/dockerSecret.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/config/dockerSecret.js') diff --git a/lib/config/dockerSecret.js b/lib/config/dockerSecret.js index 7ff6506f..02b959d9 100644 --- a/lib/config/dockerSecret.js +++ b/lib/config/dockerSecret.js @@ -53,7 +53,8 @@ if (fs.existsSync(basePath)) { }, google: { clientID: getSecret('google_clientID'), - clientSecret: getSecret('google_clientSecret') + clientSecret: getSecret('google_clientSecret'), + hostedDomain: getSecret('google_hostedDomain') }, imgur: getSecret('imgur_clientid') } -- cgit v1.2.3