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.
21 lines
518 B
C#
21 lines
518 B
C#
using TarninaHub.Application.Dtos;
|
|
|
|
namespace TarninaHub.Application.Abstractions;
|
|
|
|
public interface IConsentService
|
|
{
|
|
Task<ConsentResponse> GrantAsync(
|
|
string userId,
|
|
GrantConsentRequest request,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<IReadOnlyList<ConsentResponse>> ListForUserAsync(
|
|
string userId,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<bool> RevokeAsync(
|
|
string consentId,
|
|
string userId,
|
|
CancellationToken cancellationToken);
|
|
}
|