e9b808d1c2
- app_super_admin is a new cross-app LDAP group (also recognized by proxy and jump-host) that grants full admin here regardless of app_sso_admin membership: bypassed centrally in utils/permission.js's byGroup, folded into GET /api/user/me's isAdmin flag, and added to nav/forceLogin gates alongside app_sso_admin. - Renamed the Executive page to Overview (route, view, API path /api/metrics/overview, nav label, docs), keeping /executive as a 301 redirect alongside the existing /admin, /notifications, /dashboard legacy redirects.
47 lines
2.2 KiB
JavaScript
47 lines
2.2 KiB
JavaScript
'use strict';
|
|
|
|
// Per-app values for the shared UI shell (views/top.ejs + views/bottom.ejs).
|
|
//
|
|
// Those two partials are byte-identical across sso-manager-node, proxy and
|
|
// jump-host — everything that differs between the apps lives here and is
|
|
// exposed to every render as `ui` via app.locals (see app.js). Keep the key set
|
|
// in sync across the three apps; a missing key is a render-time ReferenceError,
|
|
// not a silent fallback.
|
|
|
|
const conf = require('@simpleworkjs/conf');
|
|
|
|
module.exports = {
|
|
// --- footer -------------------------------------------------------------
|
|
repoUrl: 'https://github.com/theta42/sso-manager-node',
|
|
licenseUrl: 'https://github.com/theta42/sso-manager-node/blob/master/LICENSE',
|
|
// In-app docs route (routes/docs.js). Apps without one point at the
|
|
// published docs site and set docsExternal.
|
|
docsUrl: '/docs',
|
|
docsExternal: false,
|
|
// Only sso-manager-node serves a Terms of Service page; null hides the link.
|
|
tosUrl: '/tos',
|
|
|
|
// --- header / nav -------------------------------------------------------
|
|
faviconUrl: conf.logo,
|
|
// Where the current-user chip links. null renders it as a plain span (for
|
|
// apps with no profile page).
|
|
profileUrl: '/profile',
|
|
// Where "Log Out" lands.
|
|
logoutRedirect: '/',
|
|
// Admin-only "a newer release is available" banner, backed by
|
|
// GET /api/update-check. Apps without that endpoint set false.
|
|
updateCheck: true,
|
|
updateLabel: 'SSO Manager',
|
|
|
|
// Nav items, in order. `groups` is an OR-list of group CNs that may see the
|
|
// item; an empty list means "always visible". Gating is done client-side by
|
|
// app-base.js, which reveals .group-required-<cn> for each group the user is
|
|
// in (plus the synthetic `admin` group when user/me reports isAdmin).
|
|
nav: [
|
|
{href: '/users', icon: 'fa-solid fa-users', label: 'Users', groups: ['app_sso_admin', 'admin']},
|
|
{href: '/groups', icon: 'fa-solid fa-users-viewfinder', label: 'Groups', groups: ['app_sso_admin', 'admin']},
|
|
{href: '/directory', icon: 'fa-solid fa-server', label: 'Directory', groups: ['app_sso_admin', 'app_sso_directory_admin', 'admin']},
|
|
{href: '/overview', icon: 'fa-solid fa-gauge-high', label: 'Overview', groups: ['app_sso_admin', 'admin']},
|
|
],
|
|
};
|