Added basic authentication and localization

This commit is contained in:
2025-12-14 11:38:32 +01:00
parent 78f52faf46
commit c56b8a7f32
9 changed files with 184 additions and 7 deletions

13
src/Server/Models/Auth.cs Normal file
View File

@@ -0,0 +1,13 @@
namespace Server.Models;
public class SimpleAuthOptions
{
public List<SimpleUser> Users { get; set; } = new();
}
public class SimpleUser
{
public string Username { get; set; } = "";
public string Password { get; set; } = "";
public string[] Roles { get; set; } = Array.Empty<string>();
}