|
@@ -282,6 +282,11 @@ module.exports = function(crowi) {
|
|
|
return getValueForCrowiNS(config, key);
|
|
return getValueForCrowiNS(config, key);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ configSchema.statics.isEnabledPassportSaml = function(config) {
|
|
|
|
|
+ const key = 'security:passport-saml:isEnabled';
|
|
|
|
|
+ return getValueForCrowiNS(config, key);
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
configSchema.statics.isEnabledPassportGoogle = function(config) {
|
|
configSchema.statics.isEnabledPassportGoogle = function(config) {
|
|
|
const key = 'security:passport-google:isEnabled';
|
|
const key = 'security:passport-google:isEnabled';
|
|
|
return getValueForCrowiNS(config, key);
|
|
return getValueForCrowiNS(config, key);
|
|
@@ -292,7 +297,7 @@ module.exports = function(crowi) {
|
|
|
return getValueForCrowiNS(config, key);
|
|
return getValueForCrowiNS(config, key);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- configSchema.statics.isEnabledPassportTwitter = function(config) {
|
|
|
|
|
|
|
+ configSchema.statics.isEnabledPassportTwitter = function(config) {
|
|
|
const key = 'security:passport-twitter:isEnabled';
|
|
const key = 'security:passport-twitter:isEnabled';
|
|
|
return getValueForCrowiNS(config, key);
|
|
return getValueForCrowiNS(config, key);
|
|
|
};
|
|
};
|