Skip to content

Commit

Permalink
Add proper logout url (#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
timvanoostrom authored Dec 18, 2024
1 parent c6ef033 commit 720ecda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/server/routing/router-stadspas-external-consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,16 @@ async function sendAdministratienummerResponse(

const maFrontendUrl = getFromEnv('MA_FRONTEND_URL')!;
const nonce = getFromEnv('BFF_AMSAPP_NONCE')!;
const logoutUrl = generateFullApiUrlBFF(
authRoutes.AUTH_LOGOUT_DIGID,
{},
getFromEnv('BFF_OIDC_BASE_URL')
);
const baseRenderProps = {
nonce,
urlToImage: `${maFrontendUrl}/img/logo-amsterdam.svg`,
urlToCSS: `${maFrontendUrl}/css/amsapp-landing.css`,
logoutUrl: generateFullApiUrlBFF(authRoutes.AUTH_LOGOUT),
logoutUrl,
};

if (
Expand Down

0 comments on commit 720ecda

Please sign in to comment.