feat(web): add auth and fix deployment checks
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 9s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 6s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 2m30s
Deploy to Production / Build & Deploy to Production (push) Failing after 3m49s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 9s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 6s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 2m30s
Deploy to Production / Build & Deploy to Production (push) Failing after 3m49s
This commit is contained in:
@@ -6,6 +6,14 @@ namespace QuantEngine.Core.Interfaces
|
||||
{
|
||||
public interface IWorkspaceRepository
|
||||
{
|
||||
// Accounts
|
||||
Task<IEnumerable<WorkspaceAccount>> GetAccountsAsync();
|
||||
Task<WorkspaceAccount?> GetAccountByUsernameAsync(string username);
|
||||
Task<bool> UpsertAccountAsync(WorkspaceAccount account);
|
||||
Task<WorkspaceSession?> GetSessionByTokenHashAsync(string tokenHash);
|
||||
Task<bool> UpsertSessionAsync(WorkspaceSession session);
|
||||
Task<bool> RevokeSessionAsync(string tokenHash, string revokedAt);
|
||||
|
||||
// Settings
|
||||
Task<IEnumerable<Setting>> GetSettingsAsync();
|
||||
Task<Setting?> GetSettingByKeyAsync(string key);
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace QuantEngine.Core.Models
|
||||
{
|
||||
public class WorkspaceAccount
|
||||
{
|
||||
public int Ordinal { get; set; }
|
||||
public string Username { get; set; } = string.Empty;
|
||||
public string PasswordHash { get; set; } = string.Empty;
|
||||
public string Role { get; set; } = "Admin";
|
||||
public string IsActive { get; set; } = "true";
|
||||
public string CreatedAt { get; set; } = string.Empty;
|
||||
public string UpdatedAt { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace QuantEngine.Core.Models
|
||||
{
|
||||
public class WorkspaceSession
|
||||
{
|
||||
public string SessionTokenHash { get; set; } = string.Empty;
|
||||
public string Username { get; set; } = string.Empty;
|
||||
public string Role { get; set; } = "Admin";
|
||||
public string CreatedAt { get; set; } = string.Empty;
|
||||
public string ExpiresAt { get; set; } = string.Empty;
|
||||
public string? RevokedAt { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user