fix: SSO not being detected (#1546)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved reliability of Single Sign-On (SSO) status detection,
ensuring the SSO state is always correctly set regardless of plugin
status.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Eli Bosley
2025-07-28 17:04:23 -04:00
committed by GitHub
parent 5449e30eed
commit 6b3b951d82

View File

@@ -130,6 +130,9 @@ class ServerState
$this->updateOsNotificationsEnabled = !empty(@$this->getWebguiGlobal('notify', 'unraidos'));
$this->updateOsResponse = $this->updateOsCheck->getUnraidOSCheckResult();
// Initialize SSO state regardless of connect plugin status
$this->ssoEnabled = ApiUserConfig::isSSOEnabled();
$this->setConnectValues();
}
@@ -201,7 +204,6 @@ class ServerState
$this->registered = !empty($connectConfig['apikey']) && $this->connectPluginInstalled;
$this->registeredTime = $connectConfig['regWizTime'] ?? '';
$this->username = $connectConfig['username'] ?? '';
$this->ssoEnabled = ApiUserConfig::isSSOEnabled();
}
private function getConnectKnownOrigins()