Replaced LoginCommand and obsolete GetTokensCommand with updated implementations for consistency. Token type enum was updated, enforcing proper access and refresh token validation. Added BaseAddress property to master app, ensuring correct audience and initialization logic improvements.
27 lines
893 B
C#
27 lines
893 B
C#
using Suspectus.Gandalf.Palantir.Data.Entities.Base;
|
|
using Suspectus.Gandalf.Palantir.Data.Entities.Subject;
|
|
using Suspectus.Gandalf.Palantir.Data.Entities.Tenant;
|
|
using Suspectus.Gandalf.Palantir.Data.Entities.Version;
|
|
|
|
namespace Suspectus.Gandalf.Palantir.Data.Entities.App;
|
|
|
|
public class AppEntity : AppData, IVersionableEntity
|
|
{
|
|
public TenantEntity? Tenant { get; set; }
|
|
public HashSet<SubjectEntity> Subjects { get; set; } = [];
|
|
}
|
|
|
|
public class AppVersionEntity : AppData, IVersionEntity<AppEntity>
|
|
{
|
|
public SubjectEntity? Suspect { get; set; }
|
|
public long SuspectId { get; set; }
|
|
public VersionAction Action { get; set; }
|
|
public DateTimeOffset At { get; set; }
|
|
public AppEntity? Reference { get; set; }
|
|
}
|
|
|
|
public abstract class AppData : TenantRelationData
|
|
{
|
|
public required string Name { get; set; }
|
|
public required string BaseAddress { get; set; }
|
|
} |