Commit Graph
34 Commits
Author SHA1 Message Date
Kenneth Skovhede 395a95b723 Configureable refresh token timeout
This PR adds an option to define the timeout for the refresh token. The token is default set to 30 days.

If the user interacts with Duplicati (i.e., loads the page) the refresh token is regenerated, meaning that the user is not asked to log in again unless the refresh token has expired fully.

With this PR it is possible to configure this duration to be a shorter period, but not longer than the 30 days.
2025-06-29 16:57:47 +02:00
Marcelo C. e74937acb4 Proposed fix for issue 6321 - Detect access denied exception on startup bind
https://github.com/duplicati/duplicati/issues/6321
2025-06-06 11:53:16 -03:00
Kenneth Skovhede 55d821add1 Added support for disabling API extensions from the commandline
Also added extension that signals if websocket is supported.

Also removed the option to disable visual captcha as it is no longer used.
2025-05-28 12:47:42 +02:00
Kenneth Skovhede 4191ed31cb Removed unused ServerName property 2025-05-05 14:21:24 +02:00
Kenneth Skovhede d12b57cb71 Add support for pre-authenticated headers
This adds support for providing a custom defined token instead of using the JWT tokens.

The intended use is for deployments where the authentication is provide by a different layer (a proxy service).
2025-03-28 13:47:27 +01:00
Kenneth Skovhede 04205d5084 Added support for CORS 2025-01-18 11:03:52 +01:00
Kenneth SkovhedeandGitHub 6bbd64a655 Fixed nullability warnings in Utility.cs (#5861)
* Fixed nullability warnings in `Utility.cs`

* Fixed a number of nullability issues and warnings

* More nullable fixes

* Fixed the overwrite issue

* Fixed additional nullability issues

* Removed additional nullability issues

* More nullability fixes and added some xmldoc

* Added more xmldocs and removed an unused argument

* Removed more warnings
2025-01-14 14:03:48 +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 ee9566b153 Typo fix 2024-12-12 09:23:01 +01:00
Kenneth Skovhede 7d4f9ffab3 Implemented a forever-token feature 2024-12-12 08:59:59 +01:00
Kenneth SkovhedeandGitHub 58a5fc57f4 Implemented support for emitting intermediate certificates from pfx (#5739)
* Implemented support for emitting intermediate certificates from pfx files

* Added certificate check to crash earlier

* Fixed loading certificate on Windows
2024-12-05 10:34:10 +01:00
Kenneth Skovhede 42c4e50482 Fixed issues with update detection.
This fixes a case where the update checker keeps an old reference to the previous updated version, despite running a newer version.

It also removes some use of `Assembly.GetExecutingAssembly().GetName().Version` with the information from `UpdaterManager.SelfVersion.Version` as that should follow the update info.

This fixes #5698
This fixes #5252
2024-11-25 17:27:50 +01:00
Kenneth Skovhede 74bb22e022 Implemented support for keeping time-of-day stable across daylight savings time changes.
This fixes #1364
2024-11-05 21:26:30 +01:00
Kenneth Skovhede 7f79a2e515 Minor renaming 2024-10-29 14:03:59 +01:00
Kenneth Skovhede 56816abed8 Reverted to not storing the certificate as a file, since the x509Certificate loader was the broken part, not Kestrel. 2024-10-29 13:55:12 +01:00
Kenneth Skovhede ed4d8bc6a6 Encapsulated the updating of the SSL certificate into a single method, to prevent wrong updates. 2024-10-29 12:02:42 +01:00
Kenneth Skovhede 4783050d53 Simplified logic by having an option to disable https.
Simplified checks for https by having a single property that unifies the logic.
2024-10-29 11:15:06 +01:00
Kenneth Skovhede f9154137a3 Merge remote-tracking branch 'origin/master' into feature/ex-certificates 2024-10-29 09:24:53 +01:00
Kenneth Skovhede ef0ca64d52 Merge remote-tracking branch 'origin/master' into feature/remote-control-support 2024-10-03 14:49:07 +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 5c0d297687 Implemented support for enabling remote control via settings 2024-09-19 14:33:17 +02:00
Kenneth Skovhede 669e90704d Initial work on supporting a secure remote control connection. 2024-09-18 11:07:59 +02:00
Max 1bb03a5673 upstream sync 2024-09-11 21:31:04 +02:00
Max b7488d22a9 https ssl password autogenerated 2024-09-11 21:23:15 +02:00
Kenneth Skovhede 60da34d0de Fixed probing for free port which broke with Kestrel update due to wrapped exceptions.
Re-implemented the logic that would use the last working port when multiple options are possible.
This fixes #5477
2024-08-27 10:38:21 +02:00
Kenneth Skovhede 06531695ab Fixed a case where settings were null 2024-08-20 12:41:49 +02:00
Kenneth Skovhede 2b55b3449d Add custom hostname validation
This adds a manually implemented hostname check that is applied as an endpoint filter.
With the implemented filter, the validation rules are similar to those before Kestrel was introduced.
This fixes #5469
2024-08-19 14:07:48 +02:00
Kenneth Skovhede 9ecb3a0f17 Added option to disable visual captcha from commandline.
This fixes #5098
2024-08-13 13:50:21 +02:00
Max 9d3286e240 rework certificates to support EC keys and preparation for GUI options 2024-08-06 21:37:35 +02:00
Kenneth Skovhede 7990259d58 Added alternate name to allow both webservice-allowedhostnames and webservice-allowed-hostnames.
Enabled both the hostnames and password to be supplied via environment variables as well.
2024-08-04 16:31:16 +02:00
Kenneth Skovhede 1c40025666 Fixed missing namespace 2024-06-28 12:21:00 +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
Kenneth Skovhede 270f2f9cea Some work on untangling FIXMEGlobal 2024-06-09 22:00:34 +02:00
Kenneth Skovhede 9f79025744 Removed HttpServer.
Re-implemented everything using ASP.NET.
Changed some requests to use JSON instead of FORM data.
Some work towards deleting the FIXMEGlobal instance.
Auth is missing, XSRF does not work correctly.
2024-06-07 15:56:43 +02:00