mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-27 21:44:21 -04:00
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 <developer@ikewat.com>
This commit is contained in:
parent
b3d4cdbceb
commit
197223dc81
6 changed files with 9 additions and 5 deletions
|
@ -124,7 +124,8 @@ module.exports = {
|
|||
},
|
||||
google: {
|
||||
clientID: undefined,
|
||||
clientSecret: undefined
|
||||
clientSecret: undefined,
|
||||
hostedDomain: undefined
|
||||
},
|
||||
ldap: {
|
||||
providerName: undefined,
|
||||
|
|
|
@ -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')
|
||||
}
|
||||
|
|
|
@ -101,7 +101,8 @@ module.exports = {
|
|||
},
|
||||
google: {
|
||||
clientID: process.env.CMD_GOOGLE_CLIENTID,
|
||||
clientSecret: process.env.CMD_GOOGLE_CLIENTSECRET
|
||||
clientSecret: process.env.CMD_GOOGLE_CLIENTSECRET,
|
||||
hostedDomain: process.env.CMD_GOOGLE_HOSTEDDOMAIN
|
||||
},
|
||||
ldap: {
|
||||
providerName: process.env.CMD_LDAP_PROVIDERNAME,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue