Implemented api authentication. Removed old secret system

This commit is contained in:
2025-03-14 12:32:13 +01:00
parent 340cf738dc
commit f1c0d3b896
12 changed files with 302 additions and 131 deletions

View File

@@ -11,5 +11,5 @@ public class CreateApiKeyRequest
public string PermissionsJson { get; set; } = "[]";
[Required(ErrorMessage = "You need to specify an expire date")]
public DateTime ExpiresAt { get; set; } = DateTime.Now.AddDays(30);
public DateTime ExpiresAt { get; set; } = DateTime.UtcNow.AddDays(30);
}