13 Commits

Author SHA1 Message Date
Glenn de Haan
5b672ede8b Fixed OIDC loop when using local authentication. Removed default auth setting for mail.js. Updated dependencies 2025-12-01 18:29:55 +01:00
Glenn de Haan
7bffaa4ebb Moved fetchUserInfo call to authorization.js middleware. Catch fetchUserInfo exceptions, causing invalided session to be stuck 2025-11-11 18:57:04 +01:00
Glenn de Haan
4418f9c347 Added Login with OIDC button to login page. Made login.ejs dynamic based on enabled authentication services. Made GitHub icon on login.ejs smaller. Refactored authorization.js middleware to support running both internal and OIDC authentication within the same instance. Added extra error to info.js when both authentication services are disabled but authentication itself is enabled. Updated status.js to correctly display both authentication services running at the same time. Updated README.md. Enabled /login when OIDC is enabled. Added missing middleware on /logout. Fixed JWT not initializing when authInternalEnabled is true 2024-10-03 13:56:28 +02:00
Glenn de Haan
0dc4562ad8 Implemented the 'AUTH_INTERNAL_ENABLED' and 'AUTH_OIDC_ENABLED' environment variables. Removed complex if structures with 'AUTH_OIDC_ENABLED' checks. Updated README.md 2024-10-03 10:34:54 +02:00
Glenn de Haan
8492616737 Created variables.js to replace duplicate code. Moved more cache.js logs to debug level. Fixed incorrect internal authentication state on status page. Updated dependencies. Fixed incorrect type check on /api/voucher/:type for HA users 2024-09-05 20:44:38 +02:00
Glenn de Haan
bfe2d3998d Switched docker build to path based to allow .dockerignore to work. Implemented OIDC support. Updated README.md 2024-08-23 16:42:07 +02:00
Glenn de Haan
89bc27aef0 Fixed missing x-ingress-path within authorization.js redirects. Implemented local/development .options.json config 2024-08-21 21:05:31 +02:00
Glenn de Haan
3ba8d33456 Updated .dockerignore to remove unneeded files from container build. Updated docker-compose.yml with new environment variables. Updated README.md. Updated project description. Replaced DISABLE_AUTH with AUTH_DISABLE. Replaced SECURITY_CODE with AUTH_PASSWORD. Implemented AUTH_TOKEN for api authentication. Added migration guide. 2024-08-21 20:30:36 +02:00
Glenn de Haan
30d66b9dfc Added the jsonwebtoken package. Implemented a web jwt verify flow. Added missing JSON responses for api auth flows. Added jwt module. Moved bytes.js, logo.js, time.js and types.js to utils folder. Updated README.md. Implemented HA config check to allow API service configuration. Implemented JWT initialization. Replaced authorization cookie contents with JWT token. Implemented /api/vouchers endpoint. Updated /api endpoints list. 2024-04-12 18:01:42 +02:00
Glenn de Haan
65c79b1f3d Removed SID middleware. Implemented cache module. Updated screenshots. Removed old background images. Updated manifest.json. Updated 404 and login background color. Updated error alert styling. Updated voucher branding/layout. Updated README.md. Cleanup server.js. Removed GET /voucher route. Updated redirects to GET /vouchers. Implemented caching mechanism for UniFi vouchers overview. Implemented force refresh option. 2024-03-26 20:21:36 +01:00
Glenn de Haan
95989c212c Implemented API endpoints. Update README.md. Implemented health endpoint. Updated dependencies 2024-03-22 17:13:37 +01:00
Glenn de Haan
611e8cc45c #30 Implemented environment variable to disable built-in authentication system 2024-03-04 20:49:42 +01:00
Glenn de Haan
03fb5356ef Updated dependencies. Introduced a styled 404 page. Implemented a new authorization system including separate login flow. Implemented flash message system to removal all query url parameters. Made SID more persistent between sessions. Implemented new vouchers overview. Improved color scheme for info and error flash messages. Updated README.md 2024-01-22 19:27:42 +01:00