Switched to Device code authentication

This commit is contained in:
2026-01-17 18:32:57 +01:00
parent 881ec1c0ec
commit 19c27c8ef0
4 changed files with 17 additions and 15 deletions

View File

@@ -7,21 +7,11 @@ public sealed class ConfigData {
public string IncludeFile { get; }
public int KeepLast { get; }
public string TenantId { get; }
public string ClientId { get; }
public string ClientSecret { get; }
public string UserId { get; }
public ConfigData(IConfiguration config) {
Schedule = config["Schedule"]!;
BackupUploadRoot = config["UploadRoot"]!;
LocalRoot = config["LocalRoot"]!;
IncludeFile = config["IncludeFile"]!;
KeepLast = int.Parse(config["KeepLast"]!);
TenantId = config["TenantId"]!;
ClientId = config["ClientId"]!;
ClientSecret = config["ClientSecret"]!;
UserId = config["UserId"]!;
}
}