diff options
author | Joachim Mathes | 2020-11-21 20:26:12 +0100 |
---|---|---|
committer | Joachim Mathes | 2020-11-25 19:23:55 +0100 |
commit | 729b387536d2bcf43a20b2ddead4bffdfd342d2a (patch) | |
tree | a8b78acc279dc805d419ffb1f791dcd0493515ce /lib/config | |
parent | c59d4c7c5c5c5ea07734c9a3f8676cb95d68aba4 (diff) |
Add oauth2 authorization
Signed-off-by: Joachim Mathes <joachim_mathes@web.de>
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/environment.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/config/environment.js b/lib/config/environment.js index cf9fb5a1..494e669f 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -87,6 +87,7 @@ module.exports = { providerName: process.env.CMD_OAUTH2_PROVIDERNAME, baseURL: process.env.CMD_OAUTH2_BASEURL, userProfileURL: process.env.CMD_OAUTH2_USER_PROFILE_URL, + userProfileIdAttr: process.env.CMD_OAUTH2_USER_PROFILE_ID_ATTR, userProfileUsernameAttr: process.env.CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR, userProfileDisplayNameAttr: process.env.CMD_OAUTH2_USER_PROFILE_DISPLAY_NAME_ATTR, userProfileEmailAttr: process.env.CMD_OAUTH2_USER_PROFILE_EMAIL_ATTR, @@ -94,7 +95,9 @@ module.exports = { authorizationURL: process.env.CMD_OAUTH2_AUTHORIZATION_URL, clientID: process.env.CMD_OAUTH2_CLIENT_ID, clientSecret: process.env.CMD_OAUTH2_CLIENT_SECRET, - scope: process.env.CMD_OAUTH2_SCOPE + scope: process.env.CMD_OAUTH2_SCOPE, + rolesClaim: process.env.CMD_OAUTH2_ROLES_CLAIM, + accessRole: process.env.CMD_OAUTH2_ACCESS_ROLE }, dropbox: { clientID: process.env.CMD_DROPBOX_CLIENTID, |