getSetting('m365_client_id', ''); $clientSecret = $db->getSetting('m365_client_secret', ''); $tenantId = $db->getSetting('m365_tenant_id', ''); // Dynamische URLs $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http'; $host = $_SERVER['HTTP_HOST']; $scriptPath = dirname($_SERVER['SCRIPT_NAME']); $scriptPath = $scriptPath === '/' ? '' : $scriptPath; $redirectUri = $protocol . '://' . $host . $scriptPath . '/m365_callback.php'; ?>
Client ID: = !empty($clientId) ? '✓ Gesetzt' : '✗ Fehlt' ?>
Client Secret: = !empty($clientSecret) ? '✓ Gesetzt' : '✗ Fehlt' ?>
Tenant ID: = !empty($tenant