[PR #190] feat: add AppTokenPermissionsGrid, PermissionsSummaryDialog, and IPermissionsSummaryDialogService #181

Closed
opened 2026-02-26 17:37:38 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/Corsinvest/cv4pve-admin/pull/190

State: closed
Merged: Yes


Summary

  • Add IPermissionsSummaryDialogService to Core.Services — decoupled interface for showing effective permissions dialogs (replaces previous location in Module.System.Security.Services)
  • Add AppTokenPermissionsGrid component (Core) with Effective Permissions toolbar button instead of expand sub-grid
  • Add CopyToClipboardButton reusable component
  • Add PermissionsSummaryDialog (CE stub) for displaying effective permissions per user/token
  • Add AppTokenAuthenticationOptions and update AppTokenAuthenticationHandler
  • Extend AppTokenService with GetByPermissionKeysAsync for bulk token lookup
  • Extend PermissionService with effective permission computation
  • Update Permission, Role, BasePermission with additional fields/helpers
  • Update IAppTokenService interface

Test plan

  • Verify AppTokenPermissionsGrid renders tokens and the "Effective Permissions" button appears disabled with no selection
  • Select a token row → "Effective Permissions" button becomes enabled
  • Click button → dialog opens showing effective permissions for the selected token
  • Verify CopyToClipboardButton copies text to clipboard
  • Verify AppToken authentication still works end-to-end
**Original Pull Request:** https://github.com/Corsinvest/cv4pve-admin/pull/190 **State:** closed **Merged:** Yes --- ## Summary - Add `IPermissionsSummaryDialogService` to `Core.Services` — decoupled interface for showing effective permissions dialogs (replaces previous location in `Module.System.Security.Services`) - Add `AppTokenPermissionsGrid` component (Core) with **Effective Permissions** toolbar button instead of expand sub-grid - Add `CopyToClipboardButton` reusable component - Add `PermissionsSummaryDialog` (CE stub) for displaying effective permissions per user/token - Add `AppTokenAuthenticationOptions` and update `AppTokenAuthenticationHandler` - Extend `AppTokenService` with `GetByPermissionKeysAsync` for bulk token lookup - Extend `PermissionService` with effective permission computation - Update `Permission`, `Role`, `BasePermission` with additional fields/helpers - Update `IAppTokenService` interface ## Test plan - [ ] Verify `AppTokenPermissionsGrid` renders tokens and the "Effective Permissions" button appears disabled with no selection - [ ] Select a token row → "Effective Permissions" button becomes enabled - [ ] Click button → dialog opens showing effective permissions for the selected token - [ ] Verify `CopyToClipboardButton` copies text to clipboard - [ ] Verify AppToken authentication still works end-to-end
kerem 2026-02-26 17:37:38 +03:00
kerem changed title from [PR #190] [MERGED] feat: add AppTokenPermissionsGrid, PermissionsSummaryDialog, and IPermissionsSummaryDialogService to [PR #190] feat: add AppTokenPermissionsGrid, PermissionsSummaryDialog, and IPermissionsSummaryDialogService 2026-03-07 19:57:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-admin#181
No description provided.