Commit Graph

37 Commits

Author SHA1 Message Date
Glenn de Haan
4ad1b68161 Removed 'public' OIDC flow from application. Deprecated 'AUTH_OIDC_CLIENT_TYPE'. Removed 'AUTH_OIDC_CLIENT_TYPE' from documentation. Updated OIDC config checks. Removed 'AUTH_OIDC_CLIENT_TYPE' and 'public' OIDC flow references from README.md 2024-09-30 19:35:39 +02:00
Glenn de Haan
11873f4879 Replaced AUTH_PASSWORD with AUTH_INTERNAL_PASSWORD 2024-09-30 18:53:07 +02:00
Glenn de Haan
d653c124e2 Fixed error on force re-sync when UniFi is unavailable. Implemented check for deprecated environment variables. Implemented check for valid UniFi usernames. Implemented UniFi username check in unifi.js. Added array.js utils 2024-09-30 18:35:52 +02:00
Glenn de Haan
d475c1cc28 Implemented UNIFI_SSID_PASSWORD environment variable. Updated email template. Updated PDF template. Updated ESC/POS template. Updated README.md. Changed qr.js output based on open or password protected networks 2024-09-21 20:46:05 +02:00
Glenn de Haan
da15cf9e34 Updated escpos_example.jpg screenshot. Implemented qr.js buffer toggle, Implemented ESC/POS Scan to Connect. Optimized ESC/POS layout. Implemented qr.js error logging 2024-09-21 13:41:10 +02:00
Glenn de Haan
f97a61fcd2 Implemented missing unifiSsid check for PDF exports 2024-09-21 12:28:18 +02:00
Glenn de Haan
9cc7fe7cb5 Implemented pdf connect template. Updated pdf_example.png screenshot 2024-09-21 10:10:54 +02:00
Glenn de Haan
89ed5db429 Added extra logging to mail.js 2024-09-21 10:07:51 +02:00
Glenn de Haan
a5029e4aaa Implemented email connect template. Implemented qr.js for Scan to Connect. Updated README.md. Updated email_example.png screenshot 2024-09-21 09:44:12 +02:00
Glenn de Haan
83abfd205e Implemented UNIFI_SSID for templating 2024-09-21 08:11:51 +02:00
Glenn de Haan
73d17cdb3d Fixed missing email error response. Refactored email layout. Implemented voucher details in email layout 2024-09-21 08:09:07 +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
86ad4457de Moved application startup logs to dedicated info.js module. Lowered log output from unifi.js. Created tag.ejs partial. Implemented dedicated application status page. Updated voucher.ejs to implement status link. Lowered log output from cache.js. General cleanup of server.js. Implemented 501 Not Implemented responses when features are not enabled or configured properly 2024-09-04 18:01:41 +02:00
Glenn de Haan
3c2155346a Migrated README.md images to .docs folder. Moved print logic to own module. Implemented ESC/POS printer support. Added logo_grayscale_dark.png. Replaced PDF logo. Implemented size.js util for dynamic PDF page length. Updated README.md. Updated auth output log with type. Updated print output log with printer ip 2024-08-30 20:56:11 +02:00
Glenn de Haan
cb6ed67c9c Implemented OIDC confidential client type support. Updated README.md. Added missing environment variables to docker-compose.yml 2024-08-26 19:32:31 +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
c5cc7569f4 Implemented HA config parameters for mail functionality 2024-08-17 13:54:33 +02:00
Glenn de Haan
46dd565379 Updated Dependencies. Add axios override to patch CVE-2024-39338. Implemented email functionality. Updated README.md 2024-08-17 13:42:12 +02:00
Glenn de Haan
f68ee13ec0 Implemented guests cache. Implemented guests function within unifi.js. Updated app screenshots. Updated manifest.json. Added details.ejs component. Implemented voucher detail slide-over. Updated cache.js logic to fetch guests. Updated README.md. Implemented voucher detail component route. 2024-04-25 21:10:46 +02:00
Glenn de Haan
2ce15fe7dc Implemented LOG_LEVEL environment variable. Implemented log_level HA variable. Implemented log level based on user preference. Changed UniFi stack trace output from error to debug. Removed duplicate cache error log. Implemented internal build number. Updated README.md. Added account warning to README.md. Output build version on application start 2024-04-17 17:19:00 +02:00
Glenn de Haan
5867bc423b Updated ejs dependency. Fixed docker healthcheck IPv4 binding. Reworked unifi.js settings/config sections. Removed 1-hour session timeout from unifi.js. Implemented retry params for all unifi.js functions. Implemented re-authentication functions within catch blocks in unifi.js 2024-04-15 18:01:59 +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
78c891cdbd Fixed SERVICE_WEB variable not working correctly. Implemented missing HA voucher_custom config setting. Fixed VOUCHER_CUSTOM variable not working correctly. Fixed an issue where HA voucher_types config was not used during validation causing an incorrect error. Added bytes conversion 2024-04-08 20:49:54 +02:00
Glenn de Haan
ddc512b77a Implemented reusable UniFi sessions. Fixed UniFi login rate-limit trigger. Implemented bulk voucher generation. Implemented revoke/delete voucher function. Added grayscale logo. Fixed issue where headers are send 2 times. 2024-04-04 21:07:14 +02:00
Glenn de Haan
4404fabafa Refactored unifi.js to separate logic. Updated application header. Fixed incorrect screen-reader text. Updated sync button text. Implemented last sync date/time. Implemented cache util. Fixed missing vouchers check to prevent 'headers are already send' error. Fixed missing cache sync on api voucher creation. Implemented auto sync every 15 minutes 2024-04-03 23:15:10 +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
23c8e990e7 Removed unneeded UniFi call to speed up communication 2024-03-25 19:33:39 +01:00
Glenn de Haan
88fbf7c182 Implemented a logger. Fix UniFi error messages. Implemented additional UniFi logging 2024-03-24 12:21:08 +01:00
Glenn de Haan
3a083061cf Switch external config provider path 2024-03-23 17:42:22 +01:00
Glenn de Haan
d147b8e5ad Implemented external config provider for HA. Removed debug line 2024-03-23 17:33:29 +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
Glenn de Haan
bf9478ebad Updated dependencies. Fixed #28, unable to use the single-use voucher type 2024-01-15 19:00:00 +01:00
Glenn de Haan
93c9ccaccb Updated dependencies. Also changed the way a controller object is created 2023-01-02 17:28:42 +01:00
Glenn de Haan
998d9479c7 Implemented remapping of expiration 2022-11-15 22:17:10 +01:00
Glenn de Haan
65c29e2e83 Implemented voucher types. Updated the README.md 2022-11-14 16:36:29 +01:00
Glenn de Haan
ead4e927c1 Rebuild application for UniFi OS, Network v7 2022-10-06 17:33:58 +02:00