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:
@@ -9,11 +9,30 @@ export const employeeBenefits: LangRoute = {
|
||||
de: "/de/employee-benefits",
|
||||
}
|
||||
|
||||
export const linkEmployment: LangRoute = {
|
||||
en: "/en/link-employment",
|
||||
sv: "/sv/link-employment",
|
||||
no: "/no/link-employment",
|
||||
fi: "/fi/link-employment",
|
||||
da: "/da/link-employment",
|
||||
de: "/de/link-employment",
|
||||
export const linkEmploymentError: LangRoute = {
|
||||
en: `/en/link-employment-error`,
|
||||
sv: `/sv/link-employment-error`,
|
||||
no: `/no/link-employment-error`,
|
||||
fi: `/fi/link-employment-error`,
|
||||
da: `/da/link-employment-error`,
|
||||
de: `/de/link-employment-error`,
|
||||
}
|
||||
|
||||
export const dtmcLogin: LangRoute = {
|
||||
en: "/en/dtmc",
|
||||
sv: "/sv/dtmc",
|
||||
no: "/no/dtmc",
|
||||
fi: "/fi/dtmc",
|
||||
da: "/da/dtmc",
|
||||
de: "/de/dtmc",
|
||||
}
|
||||
|
||||
export const dtmcApiCallback = "/api/web/auth/dtmc"
|
||||
|
||||
// All DTMC routes that should be protected by the ENABLE_DTMC flag.
|
||||
export const handleDTMC = [
|
||||
// ...Object.values(employeeBenefits),
|
||||
...Object.values(dtmcLogin),
|
||||
...Object.values(linkEmploymentError),
|
||||
dtmcApiCallback,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user