Fix tenant SSO status mode and refactor status UI tiles

This commit is contained in:
2026-03-12 10:01:24 +01:00
parent e9f73bc96a
commit 24a6b79f7a
8 changed files with 190 additions and 37 deletions

View File

@@ -110,9 +110,9 @@ class TenantSsoService
'config_complete' => !$state['enabled'] || $configState['complete'],
'config_error_code' => (string) ($configState['error_code'] ?? ''),
'config_error_label' => $this->microsoftConfigErrorLabel((string) ($configState['error_code'] ?? '')),
'password_mode' => $state['enabled'] && $state['enforce_microsoft_login']
? 'microsoft_only'
: 'local_and_microsoft',
'password_mode' => !$state['enabled']
? 'local_only'
: ($state['enforce_microsoft_login'] ? 'microsoft_only' : 'local_and_microsoft'),
'credential_source' => $state['use_shared_app'] ? 'shared' : 'override',
'sync_needs_graph' => $state['sync_profile_on_login']
&& $this->profileSyncFieldsRequireGraph($state['sync_profile_fields']),