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.
15 lines
385 B
C#
15 lines
385 B
C#
using Duplicati.Library.RestAPI;
|
|
using Duplicati.WebserverCore.Abstractions;
|
|
|
|
namespace Duplicati.WebserverCore.Endpoints.V1;
|
|
|
|
public class Updates : IEndpointV1
|
|
{
|
|
public static void Map(RouteGroupBuilder group)
|
|
{
|
|
group.MapPost("/updates/check", Execute).RequireAuthorization();
|
|
}
|
|
|
|
private static void Execute()
|
|
=> FIXMEGlobal.UpdatePoller.CheckNow();
|
|
} |