Commit Graph
15 Commits
Author SHA1 Message Date
Kenneth Skovhede f51f09664e Added support for XSRF token forwarding 2025-12-18 15:44:25 +01:00
Kenneth Skovhede e2f37fb86b Improved support for authenticating behind a proxy
This PR adds new support for fine-grained control over the server/ui handling when the X-Forwarded-Prefix header is set.

Additionally, this allows getting a websocket token, so cases where the websocket is not pre-authenticated, but regular requests are authenticated, it works the same.

Added a new endpoint for probing for pre-authenticed conditions without causing a 401 to be logged.
2025-12-16 14:39:58 +01:00
Kenneth Skovhede 68da969456 Added support for injecting custom CSS and JS into the client 2025-11-06 13:35:19 +01:00
Kenneth Skovhede 6053c9335b More robust base-href replace
This PR updates the replace code for the `<base href="/" />` patching to support variations with whitespace and trailing slashes.

This has no immediate effect but makes it more stable in case the source document(s) change in the future.
2025-10-28 13:08:47 +01:00
Jean-Eudes PeloyeandGitHub acd9faa055 Fix base href replacement in StaticFilesMiddleware 2025-10-26 10:41:27 +01:00
Jean-Eudes PeloyeandGitHub 55fe7632fd Fix base href replacement in StaticFilesMiddleware 2025-10-26 10:37:59 +01:00
Kenneth Skovhede 8bb9ad4389 Add support for X-Forwarded-Prefix
This adds support for the `X-Forwaded-Prefix` that rewires the paths using a custom base, with a default of `/ngclient`.

This allows using ngclient behind a proxy.

This fixes #6278
2025-06-16 16:15:35 +02:00
Kenneth Skovhede ca1c765b61 Fixed developer setup for ngclient on Windows.
This fixes two issues that prevented the debug loader to auto-fetch and set up ngclient on Windows when running debug builds.
2025-02-18 11:04:25 +01:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth Skovhede b2c3c9abe6 Simplified debugging with SPA themes 2024-10-03 13:20:56 +02:00
Kenneth Skovhede 9dfafa1492 Removed the NPM injector from release builds with pre-compiler flags 2024-10-02 22:57:13 +02:00
Kenneth Skovhede 99a2095e41 Adding new theme to client.
Added support for loading NPM package in dev mode.
Added support for SPA style redirects.
2024-10-02 22:14:37 +02:00
Kenneth Skovhede e25df96d23 Adding cache headers 2024-07-01 22:21:51 +02:00
Kenneth Skovhede 3f29642f6c Implemented JWT tokens.
Added auth requirement on all endpoints.
Added SignIn-, Access- and Refresh-Tokens based on JWT.
Upgraded stored password to be based on PBKDF2.
Added default password assignment.
Updated logic to support auth-header and re-sign-in for tray-icon and web-ui.
2024-06-19 13:54:10 +02:00
natan 5d53eddb32 WIP 2024-03-26 18:32:56 +01:00