Trek_CN/server
Maurice 4a4643f33f feat: OIDC claim-based admin role assignment — closes #93
New environment variables:
- OIDC_ADMIN_CLAIM (default: "groups") — which claim to check
- OIDC_ADMIN_VALUE (e.g. "app-trek-admins") — value that grants admin

Admin role is resolved on every OIDC login:
- New users get admin if their claim matches
- Existing users have their role updated dynamically
- Removing a user from the group revokes admin on next login
- First user is always admin regardless of claims
- No config = previous behavior (first user admin, rest user)

Supports array claims (groups: ["a", "b"]) and string claims.
2026-03-30 15:12:27 +02:00
..
src feat: OIDC claim-based admin role assignment — closes #93 2026-03-30 15:12:27 +02:00
.env.example Initial commit — NOMAD (Navigation Organizer for Maps, Activities & Destinations) 2026-03-18 23:58:08 +01:00
package-lock.json chore: sync server package-lock.json for clean npm ci builds 2026-03-29 17:35:55 +02:00
package.json v2.7.0 2026-03-29 17:42:11 +02:00
reset-admin.js Stabilize core: better-sqlite3, versioned migrations, graceful shutdown 2026-03-22 17:52:24 +01:00
tsconfig.json fix: resolve all TypeScript errors via proper Express 5 typed route params 2026-03-28 20:13:24 +00:00