summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-06-04 15:54:47 +0200
committerGitHub2018-06-04 15:54:47 +0200
commit551840ad57125fa168247c21613f9d6de6cd5d99 (patch)
tree51dda6767b42acc445fb169ea8ea6b4fe19050ac /lib/response.js
parent3f7a33df646c4db3de449bd486a7dfddc9ba6e6b (diff)
parent34df7ccce83bebec1db3b6995eb25cb6fe4fdbd4 (diff)
Merge pull request #784 from pferreir/add-oauth2-support
Add "generic" OAuth2 support
Diffstat (limited to '')
-rw-r--r--lib/response.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/response.js b/lib/response.js
index d6fb3b42..89ade7a7 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -76,6 +76,8 @@ function showIndex (req, res, next) {
ldap: config.isLDAPEnable,
ldapProviderName: config.ldap.providerName,
saml: config.isSAMLEnable,
+ oauth2: config.isOAuth2Enable,
+ oauth2ProviderName: config.oauth2.providerName,
email: config.isEmailEnable,
allowEmailRegister: config.allowEmailRegister,
allowPDFExport: config.allowPDFExport,
@@ -110,7 +112,9 @@ function responseHackMD (res, note) {
google: config.isGoogleEnable,
ldap: config.isLDAPEnable,
ldapProviderName: config.ldap.providerName,
+ oauth2ProviderName: config.oauth2.providerName,
saml: config.isSAMLEnable,
+ oauth2: config.isOAuth2Enable,
email: config.isEmailEnable,
allowEmailRegister: config.allowEmailRegister,
allowPDFExport: config.allowPDFExport