From aaa894be73b78ff0b2a29814501bb3f1d5f8e5ee Mon Sep 17 00:00:00 2001 From: Martin Almvik Date: Fri, 29 Nov 2024 13:40:35 +0100 Subject: [PATCH] =?UTF-8?q?Logg=20ut=20custom=20wonderwall=20n=C3=A5r=20ma?= =?UTF-8?q?n=20logger=20ut=20fra=20dekorat=C3=B8ren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/decoratorSettings.tsx | 3 ++- src/lib/config.ts | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/decoratorSettings.tsx b/src/decoratorSettings.tsx index 325669454..b14b94648 100644 --- a/src/decoratorSettings.tsx +++ b/src/decoratorSettings.tsx @@ -2,7 +2,7 @@ import {DecoratorFetchProps} from "@navikt/nav-dekoratoren-moduler/ssr"; import {BASE_PATH} from "./lib/constants.ts"; import {digisosConfig} from "./lib/config.ts"; -const {env, serviceDiscovery} = digisosConfig.dekorator; +const {env, serviceDiscovery, logoutRedirectUrl} = digisosConfig.dekorator; export const DECORATOR_SETTINGS: DecoratorFetchProps = { env, @@ -18,5 +18,6 @@ export const DECORATOR_SETTINGS: DecoratorFetchProps = { chatbot: false, shareScreen: false, logoutWarning: true, + redirectToUrlLogout: logoutRedirectUrl, }, }; diff --git a/src/lib/config.ts b/src/lib/config.ts index a43591a9d..d2b41b1ff 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -28,6 +28,7 @@ type SoknadApiProxyOptions = { type DekoratorOptions = { serviceDiscovery: boolean; env: "dev" | "prod"; + logoutRedirectUrl?: string; }; type SoknadConfig = { @@ -168,6 +169,7 @@ const configMap: Record = { dekorator: { env: "prod", serviceDiscovery: true, + logoutRedirectUrl: "https://www.nav.no/sosialhjelp/soknad/oauth2/logout", }, proxy: { @@ -200,6 +202,7 @@ const configMap: Record = { dekorator: { env: "dev", serviceDiscovery: true, + logoutRedirectUrl: "https://www.ekstern.dev.nav.no/sosialhjelp/soknad/oauth2/logout", }, proxy: {