diff --git a/strr-examiner-web/app/app.config.ts b/strr-examiner-web/app/app.config.ts index f46658af..e44894d3 100644 --- a/strr-examiner-web/app/app.config.ts +++ b/strr-examiner-web/app/app.config.ts @@ -1,8 +1,44 @@ +import { RoutesE } from '~/enums/routes' + export default defineAppConfig({ + connect: { + core: { + login: { + redirectPath: '', + idps: () => ['idir'] + }, + header: { + options: { + localeSelect: false, + unauthenticated: { + whatsNew: false, + loginMenu: false, + createAccount: false + }, + authenticated: { + notifications: true, + accountOptionsMenu: true + } + } + }, + plugin: { + authApi: { + errorRedirect: { + 401: '/auth/login' + } + }, + payApi: { + errorRedirect: { + 401: '/auth/login' + } + } + } + } + }, strrBaseLayer: { page: { login: { - redirectPath: '/dashboard', + redirectPath: RoutesE.DASHBOARD, options: { createAccount: false, idps: () => ['idir'] // function required to overwrite default value, will merge if no function diff --git a/strr-examiner-web/app/enums/routes.ts b/strr-examiner-web/app/enums/routes.ts new file mode 100644 index 00000000..73af655c --- /dev/null +++ b/strr-examiner-web/app/enums/routes.ts @@ -0,0 +1,4 @@ +export enum RoutesE { + DASHBOARD = '/dashboard', + EXAMINE = '/examine' + } diff --git a/strr-examiner-web/app/layouts/examiner.vue b/strr-examiner-web/app/layouts/examiner.vue index 167f75d2..88c1a87f 100644 --- a/strr-examiner-web/app/layouts/examiner.vue +++ b/strr-examiner-web/app/layouts/examiner.vue @@ -1,10 +1,13 @@