Skip to content

Commit

Permalink
Logg ut custom wonderwall når man logger ut fra dekoratøren
Browse files Browse the repository at this point in the history
  • Loading branch information
almyy committed Nov 29, 2024
1 parent 6dd025b commit aaa894b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/decoratorSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -18,5 +18,6 @@ export const DECORATOR_SETTINGS: DecoratorFetchProps = {
chatbot: false,
shareScreen: false,
logoutWarning: true,
redirectToUrlLogout: logoutRedirectUrl,
},
};
3 changes: 3 additions & 0 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type SoknadApiProxyOptions = {
type DekoratorOptions = {
serviceDiscovery: boolean;
env: "dev" | "prod";
logoutRedirectUrl?: string;
};

type SoknadConfig = {
Expand Down Expand Up @@ -168,6 +169,7 @@ const configMap: Record<DigisosEnvironment, SoknadConfig> = {
dekorator: {
env: "prod",
serviceDiscovery: true,
logoutRedirectUrl: "https://www.nav.no/sosialhjelp/soknad/oauth2/logout",
},

proxy: {
Expand Down Expand Up @@ -200,6 +202,7 @@ const configMap: Record<DigisosEnvironment, SoknadConfig> = {
dekorator: {
env: "dev",
serviceDiscovery: true,
logoutRedirectUrl: "https://www.ekstern.dev.nav.no/sosialhjelp/soknad/oauth2/logout",
},

proxy: {
Expand Down

0 comments on commit aaa894b

Please sign in to comment.