feat: integrate Authelia SSO and update LLDAP routing
Deploy Dashboard / deploy (push) Successful in 16m20s

This commit is contained in:
Gan, Jimmy
2026-02-27 23:04:57 +08:00
parent c676c84bc1
commit 29a9e9d881
8 changed files with 146 additions and 17 deletions
+16 -1
View File
@@ -28,7 +28,22 @@
document.documentElement.classList.remove('dark');
}
// Auth check
// Try proxy auth first (Authelia forward-auth sets Remote-User header)
try {
const proxyRes = await fetch("/api/auth/proxy");
if (proxyRes.ok) {
const data = await proxyRes.json();
setToken(data.access_token);
setRefreshToken(data.refresh_token);
authorized = true;
loading = false;
return;
}
} catch (e) {
// Proxy auth not available, fall through to regular auth
}
// Regular token auth check
const token = getToken();
if (!token) {
loading = false;