mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Adds authorization roles administrator dashboard
This commit is contained in:
1 parent
290af03c83
commit
1df31515fb
191 files changed
+6189
-806
No files matched your search
+2
-2
@@ -14,8 +14,8 @@ namespace Lumina.Contracts.Responses.Authorization;
|
||||
/// <param name="Roles">The collection of roles associated to the user.</param>
|
||||
/// <param name="Permissions">The collection of permissions associated to the user.</param>
|
||||
[DebuggerDisplay("UserId: {UserId}")]
|
||||
public record GetAuthorizationResponse(
|
||||
public record AuthorizationResponse(
|
||||
Guid UserId,
|
||||
IReadOnlySet<AuthorizationRole> Roles,
|
||||
IReadOnlySet<string> Roles,
|
||||
IReadOnlySet<AuthorizationPermission> Permissions
|
||||
);
|
||||
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Domain.Common.Enums.Authorization;
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the response model for a request for an of authorization permission.
|
||||
/// </summary>
|
||||
/// <param name="Id">The Id of the requested authorization permission.</param>
|
||||
/// <param name="PermissionName">The requested authorization permission.</param>
|
||||
public record PermissionResponse(
|
||||
Guid Id,
|
||||
AuthorizationPermission PermissionName
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.Authentication;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents an authorizaton role permissions response.
|
||||
/// </summary>
|
||||
/// <param name="Role">The authorization role.</param>
|
||||
/// <param name="Permissions">The permissions of the authorization role.</param>
|
||||
public record RolePermissionsResponse(
|
||||
RoleDto Role,
|
||||
PermissionDto[] Permissions
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Contracts.Responses.Authorization;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the response model for a request for an authorization role.
|
||||
/// </summary>
|
||||
/// <param name="Id">The Id of the requested authorization role.</param>
|
||||
/// <param name="RoleName">The requested authorization role.</param>
|
||||
public record RoleResponse(
|
||||
Guid Id,
|
||||
string RoleName
|
||||
);
|
||||
Reference in new issue
Block a user