fix: lighter input styles in Settings, show required redirect URI for Azure

This commit is contained in:
Brückner
2026-06-03 16:35:21 +02:00
parent 550acd27b2
commit c879f84843
2 changed files with 27 additions and 4 deletions

View File

@ -149,7 +149,12 @@ async function startServer() {
const clientId = getSetting('azure_client_id');
const tenantId = getSetting('azure_tenant_id');
const secret = getSetting('azure_client_secret');
res.json({ azureEnabled: enabled && Boolean(clientId) && Boolean(tenantId) && Boolean(secret) });
const appUrl = process.env.APP_URL || `http://localhost:${PORT}`;
const effectiveRedirectUri = getSetting('azure_redirect_uri') || `${appUrl}/api/auth/azure/callback`;
res.json({
azureEnabled: enabled && Boolean(clientId) && Boolean(tenantId) && Boolean(secret),
effectiveRedirectUri,
});
});
// Start Azure OAuth flow