diff --git a/lib/Db/SSOMapper.php b/lib/Db/SSOMapper.php index 3cb62a85839ca8db0139802f6e147c334b652a36..d0f0c69cd93b489bb0a80f3de1a6503ba30aa926 100644 --- a/lib/Db/SSOMapper.php +++ b/lib/Db/SSOMapper.php @@ -31,7 +31,9 @@ class SSOMapper { $this->logger = $logger; $this->userManager = $userManager; $this->crypto = $crypto; - $this->initConnection(); + if (!empty($this->config->getSystemValue(self::SSO_CONFIG_KEY))) { + $this->initConnection(); + } } public function isSSOEnabled() : bool {