From ce66f33a6d9e62f64cb8aebe5d8e13662d4169f0 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Thu, 10 Apr 2025 00:12:01 +0200 Subject: [PATCH] feat(config): warning if both saml signing options are disabled Co-authored-by: Philip Molares Signed-off-by: Erik Michelson --- lib/config/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/config/index.js b/lib/config/index.js index d4b5f7e4..e0ab5151 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -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':