Skip to content

Commit 5c4df14

Browse files
authored
Merge pull request #990 from SISheogorath/fix/oauthProviderName
Make oauth2 provider name accessible
2 parents 482a91e + 3d1d03f commit 5c4df14

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ There are some config settings you need to change in the files below.
237237
| `CMD_OAUTH2_AUTHORIZATION_URL` | `https://example.com` | authorization URL of your provider, please refer to the documentation of your OAuth2 provider (no default value) |
238238
| `CMD_OAUTH2_CLIENT_ID` | `afae02fckafd...` | you will get this from your OAuth2 provider when you register CodiMD as OAuth2-client, (no default value) |
239239
| `CMD_OAUTH2_CLIENT_SECRET` | `afae02fckafd...` | you will get this from your OAuth2 provider when you register CodiMD as OAuth2-client, (no default value) |
240+
| `CMD_OAUTH2_PROVIDERNAME` | `My institution` | Optional name to be displayed at login form indicating the oAuth2 provider |
240241
| `CMD_IMGUR_CLIENTID` | no example | Imgur API client id |
241242
| `CMD_EMAIL` | `true` or `false` | set to allow email signin |
242243
| `CMD_ALLOW_PDF_EXPORT` | `true` or `false` | Enable or disable PDF exports |

lib/config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ module.exports = {
7878
},
7979
// authentication
8080
oauth2: {
81+
providerName: undefined,
8182
authorizationURL: undefined,
8283
tokenURL: undefined,
8384
clientID: undefined,

lib/config/environment.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ module.exports = {
7575
clientSecret: process.env.CMD_MATTERMOST_CLIENTSECRET
7676
},
7777
oauth2: {
78+
providerName: process.env.CMD_OAUTH2_PROVIDERNAME,
7879
baseURL: process.env.CMD_OAUTH2_BASEURL,
7980
userProfileURL: process.env.CMD_OAUTH2_USER_PROFILE_URL,
8081
userProfileUsernameAttr: process.env.CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR,

0 commit comments

Comments
 (0)