Files
Hy2026/backend/Application/Dtos/ConsentDtos.cs
T
Rafał Tyński 482a4b41f0 feat(backend): add JWT authentication, RBAC and consent/audit services
Add signup/signin with backend-issued JWT (Argon2 passwords in SurrealDB), role-based authorization policies, per-user data access levels, consent register and read audit log. Protect user endpoints and record sensitive reads.
2026-10-04 02:11:56 +02:00

12 lines
307 B
C#

namespace TarninaHub.Application.Dtos;
public sealed record GrantConsentRequest(string Scope, DateTimeOffset? ExpiresAt);
public sealed record ConsentResponse(
string Id,
string UserId,
string Scope,
DateTimeOffset GrantedAt,
DateTimeOffset? ExpiresAt,
DateTimeOffset? RevokedAt);