diff options
author | Christoph (Sheogorath) Kern | 2018-10-09 21:57:37 +0200 |
---|---|---|
committer | GitHub | 2018-10-09 21:57:37 +0200 |
commit | 5c4df14bbcba7518d8f599eff1782f853d8f0a83 (patch) | |
tree | be76da09735bc72b56f6b6bfcd0c3476a8d58a0c /lib | |
parent | 482a91e15d03107324330d20c853bad339004bb0 (diff) | |
parent | 3d1d03fa87c8ab788760fa74bae01f9dd917f019 (diff) |
Merge pull request #990 from SISheogorath/fix/oauthProviderName
Make oauth2 provider name accessible
Diffstat (limited to '')
-rw-r--r-- | lib/config/default.js | 1 | ||||
-rw-r--r-- | lib/config/environment.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/config/default.js b/lib/config/default.js index acfc2157..c3ada982 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -78,6 +78,7 @@ module.exports = { }, // authentication oauth2: { + providerName: undefined, authorizationURL: undefined, tokenURL: undefined, clientID: undefined, diff --git a/lib/config/environment.js b/lib/config/environment.js index 65bacb4e..6737637c 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -75,6 +75,7 @@ module.exports = { clientSecret: process.env.CMD_MATTERMOST_CLIENTSECRET }, oauth2: { + providerName: process.env.CMD_OAUTH2_PROVIDERNAME, baseURL: process.env.CMD_OAUTH2_BASEURL, userProfileURL: process.env.CMD_OAUTH2_USER_PROFILE_URL, userProfileUsernameAttr: process.env.CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR, |