summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorPedro Ferreira2017-06-27 19:08:05 +0200
committerPedro Ferreira2018-03-26 15:55:39 +0200
commit40b385570291278f44806446f702ee61e1382805 (patch)
tree4abe7a180dd6d06340e8c1b24e639baafe23012e /lib/response.js
parent5d57a4bb6f126e327d576d34e489d479326fb4e2 (diff)
Add support for generic OAuth2 providers
Signed-off-by: Pedro Ferreira <pedro.ferreira@cern.ch>
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 b18fd7a3..8dc1ed35 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -70,6 +70,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,
@@ -104,7 +106,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