Readded support for apikey (#6382)

This commit is contained in:
SamTV12345 2024-05-14 22:36:16 +02:00 committed by GitHub
parent 2c1916ac09
commit 556c3c8e5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 74 additions and 14 deletions

View file

@ -45,5 +45,10 @@ for (let i = 0; i < argv.length; i++) {
exports.argv.sessionkey = arg;
}
// Override location of APIKEY.txt file
if (prevArg === '--apikey') {
exports.argv.apikey = arg;
}
prevArg = arg;
}

View file

@ -156,6 +156,15 @@ exports.socketIo = {
maxHttpBufferSize: 10000,
};
/*
The authentication method used by the server.
The default value is sso
If you want to use the old authentication system, change this to apikey
*/
exports.authenticationMethod = 'sso'
/*
* The Type of the database
*/
@ -519,6 +528,8 @@ exports.getGitCommit = () => {
// Return etherpad version from package.json
exports.getEpVersion = () => require('../../package.json').version;
/**
* Receives a settingsObj and, if the property name is a valid configuration
* item, stores it in the module's exported properties via a side effect.