Implementing ASP auth module
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace DotBased.ASP.Auth.Domains.Auth;
|
||||
|
||||
public class AuthenticationStateModel
|
||||
{
|
||||
|
||||
}
|
8
DotBased.ASP.Auth/Domains/Auth/PermissionModel.cs
Normal file
8
DotBased.ASP.Auth/Domains/Auth/PermissionModel.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace DotBased.ASP.Auth.Domains.Auth;
|
||||
|
||||
public class PermissionModel
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public string Permission { get; set; } = string.Empty;
|
||||
}
|
9
DotBased.ASP.Auth/Domains/Auth/RoleModel.cs
Normal file
9
DotBased.ASP.Auth/Domains/Auth/RoleModel.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace DotBased.ASP.Auth.Domains.Auth;
|
||||
|
||||
public class RoleModel
|
||||
{
|
||||
public string Id { get; set; } = Guid.NewGuid().ToString();
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public List<PermissionModel> Permissions { get; set; } = [];
|
||||
}
|
Reference in New Issue
Block a user