instances added god may help
This commit is contained in:
@@ -16,9 +16,10 @@
|
||||
* @var array $ssoUiState
|
||||
*/
|
||||
|
||||
use MintyPHP\Service\Auth\AuthServicesFactory;
|
||||
use MintyPHP\Session;
|
||||
use MintyPHP\Service\Auth\TenantSsoService;
|
||||
|
||||
$tenantSsoService = (new AuthServicesFactory())->createTenantSsoService();
|
||||
$values = $values ?? [];
|
||||
$formId = $formId ?? 'tenant-form';
|
||||
$detailsOpenAll = $detailsOpenAll ?? false;
|
||||
@@ -60,13 +61,13 @@ $useSharedApp = !in_array(strtolower(trim((string) $useSharedAppRaw)), ['0', 'fa
|
||||
$clientIdOverride = trim((string) ($values['client_id_override'] ?? ''));
|
||||
$syncProfileOnLoginRaw = $values['sync_profile_on_login'] ?? false;
|
||||
$syncProfileOnLogin = in_array(strtolower(trim((string) $syncProfileOnLoginRaw)), ['1', 'true', 'yes', 'on'], true);
|
||||
$syncFieldOptions = TenantSsoService::profileSyncFieldOptions();
|
||||
$syncFieldOptions = $tenantSsoService->profileSyncFieldOptions();
|
||||
$syncProfileFieldsRaw = $values['sync_profile_fields_list'] ?? ($values['sync_profile_fields'] ?? []);
|
||||
$syncProfileFields = TenantSsoService::normalizeProfileSyncFields($syncProfileFieldsRaw);
|
||||
$syncProfileFields = $tenantSsoService->normalizeProfileSyncFields($syncProfileFieldsRaw);
|
||||
$tenantId = (int) ($values['id'] ?? 0);
|
||||
$ssoUiState = is_array($ssoUiState ?? null)
|
||||
? $ssoUiState
|
||||
: TenantSsoService::buildMicrosoftUiState($tenantId, $values);
|
||||
: $tenantSsoService->buildMicrosoftUiState($tenantId, $values);
|
||||
$ssoConfigComplete = !empty($ssoUiState['config_complete']);
|
||||
$ssoConfigErrorLabel = trim((string) ($ssoUiState['config_error_label'] ?? ''));
|
||||
$ssoPasswordMode = (string) ($ssoUiState['password_mode'] ?? ($microsoftEnforce ? 'microsoft_only' : 'local_and_microsoft'));
|
||||
|
||||
Reference in New Issue
Block a user