feat(config): warning if both saml signing options are disabled

Co-authored-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2025-04-10 00:12:01 +02:00
parent 3f520ea59a
commit ce66f33a6d

View file

@ -164,6 +164,10 @@ if (['filesystem', 's3', 'minio', 'imgur', 'azure', 'lutim'].indexOf(config.imag
config.imageUploadType = 'filesystem'
}
if (config.isSAMLEnable && !config.saml.wantAssertionsSigned && !config.saml.wantAuthnResponseSigned) {
logger.error('You can only deactivate one of "saml.wantAssertionsSigned" and "saml.wantAuthnResponseSigned"')
}
// figure out mime types for image uploads
switch (config.imageUploadType) {
case 'imgur':