mirror of
https://github.com/unraid/api.git
synced 2025-12-31 05:29:48 -06:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user