Implementing ASP auth module
This commit is contained in:
8
DotBased.ASP.Auth/Domains/Identity/GroupItemModel.cs
Normal file
8
DotBased.ASP.Auth/Domains/Identity/GroupItemModel.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace DotBased.ASP.Auth.Domains.Identity;
|
||||
|
||||
public class GroupItemModel
|
||||
{
|
||||
public string Id { get; set; } = Guid.NewGuid().ToString();
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
}
|
11
DotBased.ASP.Auth/Domains/Identity/GroupModel.cs
Normal file
11
DotBased.ASP.Auth/Domains/Identity/GroupModel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using DotBased.ASP.Auth.Domains.Auth;
|
||||
|
||||
namespace DotBased.ASP.Auth.Domains.Identity;
|
||||
|
||||
public class GroupModel
|
||||
{
|
||||
public string Id { get; set; } = Guid.NewGuid().ToString();
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public List<RoleModel> Roles { get; set; } = [];
|
||||
}
|
10
DotBased.ASP.Auth/Domains/Identity/UserItemModel.cs
Normal file
10
DotBased.ASP.Auth/Domains/Identity/UserItemModel.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace DotBased.ASP.Auth.Domains.Identity;
|
||||
|
||||
public class UserItemModel
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string FamilyName { get; set; } = string.Empty;
|
||||
}
|
14
DotBased.ASP.Auth/Domains/Identity/UserModel.cs
Normal file
14
DotBased.ASP.Auth/Domains/Identity/UserModel.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace DotBased.ASP.Auth.Domains.Identity;
|
||||
|
||||
public class UserModel
|
||||
{
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string FamilyName { get; set; } = string.Empty;
|
||||
|
||||
public string Id { get; set; } = Guid.NewGuid().ToString();
|
||||
public string PasswordHash { get; set; } = string.Empty;
|
||||
public string[] GroupIds { get; set; } = Array.Empty<string>();
|
||||
public string[] Roles { get; set; } = Array.Empty<string>();
|
||||
}
|
Reference in New Issue
Block a user