fix: persist engine logout url

This commit is contained in:
DCCONSTRUCTIONS 2026-05-23 12:20:55 +03:00
parent 2c6efdd116
commit e2c70649c7
3 changed files with 7 additions and 0 deletions

View File

@ -1960,6 +1960,10 @@ function normalizeService(service) {
service.launchUrl === "https://nodedc.ru/" || service.launchUrl === "https://dev.handhdc.ru/sso/launch"
? "https://engine.nodedc.ru/"
: service.launchUrl,
logoutUrl:
!service.logoutUrl || service.logoutUrl === "https://nodedc.ru/logout"
? "https://engine.nodedc.ru/logout"
: service.logoutUrl,
authentikApplicationSlug: service.authentikApplicationSlug === "nodedc" ? "nodedc-engine" : service.authentikApplicationSlug,
authentikGroupName: service.authentikGroupName === "service-nodedc" ? "nodedc:engine:viewer" : service.authentikGroupName,
};
@ -2853,6 +2857,7 @@ function sanitizeServicePatch(payload, service) {
"fullDescription",
"url",
"launchUrl",
"logoutUrl",
"iconUrl",
"coverImageUrl",
"coverMediaKind",

View File

@ -13,6 +13,7 @@ export interface Service {
fullDescription?: string | null;
url: string;
launchUrl?: string | null;
logoutUrl?: string | null;
iconUrl?: string | null;
coverImageUrl?: string | null;
coverMediaKind?: MediaKind | null;

View File

@ -84,6 +84,7 @@ export const mockServices: Service[] = [
"NodeDC используется для настройки агентных процессов, визуальной оркестрации, интеграций и runtime-мониторинга.",
url: "https://engine.nodedc.ru/",
launchUrl: "https://engine.nodedc.ru/",
logoutUrl: "https://engine.nodedc.ru/logout",
accentColor: "#B5FF5A",
fallbackGradient: "linear-gradient(128deg, rgba(181, 255, 90, 0.84), rgba(37, 58, 36, 0.86) 42%, #0A0D10 82%)",
status: "active",