Merged in feat/LOY-230-Microsoft-Entra-ID-Auth (pull request #2113)
Feat(LOY-230): DTMC Routes with Entra ID Auth & Error Page Handling * feat(LOY-230): Link Scandic Friends and Azure accounts * fix(LOY-230): remove employee id param setting * fix(LOY-230): return token in jwt callback for auth.dtmc.ts Approved-by: Michael Zetterberg Approved-by: Christian Andolf
This commit is contained in:
11
apps/scandic-web/env/server.ts
vendored
11
apps/scandic-web/env/server.ts
vendored
@@ -203,6 +203,13 @@ const _env = createEnv({
|
||||
return val.split(",")
|
||||
})
|
||||
.default(""),
|
||||
DTMC_ENTRA_ID_CLIENT: z.string(),
|
||||
DTMC_ENTRA_ID_ISSUER: z.string(),
|
||||
/**
|
||||
* Optional until we have the secret in all environments.
|
||||
* We currently have the secret in local and test environments.
|
||||
*/
|
||||
DTMC_ENTRA_ID_SECRET: z.string().optional(),
|
||||
CAMPAIGN_PAGES_ENABLED: z
|
||||
.string()
|
||||
.refine((s) => s === "1" || s === "0")
|
||||
@@ -301,6 +308,10 @@ const _env = createEnv({
|
||||
ENABLE_WARMUP_HOTEL: process.env.ENABLE_WARMUP_HOTEL,
|
||||
WARMUP_TOKEN: process.env.WARMUP_TOKEN,
|
||||
NEW_SITE_LIVE_FOR_LANGS: process.env.NEXT_PUBLIC_NEW_SITE_LIVE_FOR_LANGS,
|
||||
|
||||
DTMC_ENTRA_ID_CLIENT: process.env.DTMC_ENTRA_ID_CLIENT,
|
||||
DTMC_ENTRA_ID_ISSUER: process.env.DTMC_ENTRA_ID_ISSUER,
|
||||
DTMC_ENTRA_ID_SECRET: process.env.DTMC_ENTRA_ID_SECRET,
|
||||
CAMPAIGN_PAGES_ENABLED: process.env.CAMPAIGN_PAGES_ENABLED,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user