fix(security): implement IDataProtector-based credential encryption for CameraCredentials
- Add ICredentialProtector/DataProtectorCredentialProtector using ASP.NET Core Data Protection - Register AddDataProtection + ICredentialProtector in Infrastructure DI - Update CameraCredentials XML comments to reference real protector - Add SetCredentialsAsync to CameraService with encryption - Update ICameraService interface
This commit is contained in:
1 parent
12a1ff2737
commit
076bc58e93
5 files changed
+94
-6
No files matched your search
@@ -10,4 +10,5 @@ public interface ICameraService
|
||||
Task<ServiceResult<PagedResult<CameraResponse>>> ListBySiteAsync(Guid siteId, int page, int pageSize, CancellationToken ct);
|
||||
Task<ServiceResult<CameraResponse>> UpdateAsync(Guid id, UpdateCameraRequest request, CancellationToken ct);
|
||||
Task<ServiceResult> DeleteAsync(Guid id, CancellationToken ct);
|
||||
Task<ServiceResult> SetCredentialsAsync(Guid cameraId, Domain.Entities.CameraCredentials credentials, CancellationToken ct);
|
||||
}
|
||||
Reference in new issue
Block a user