fix: lighter input styles in Settings, show required redirect URI for Azure
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user