Table of Contents

Interface IAuditActorProvider

Namespace
Excalibur.AuditLogging
Assembly
Excalibur.AuditLogging.dll

Provides the identity of the current actor for audit log entries.

public interface IAuditActorProvider

Remarks

Consumers implement this interface to integrate with their identity system, ensuring meta-audit log entries record the actual user who accessed the audit log rather than a hardcoded placeholder.

If no implementation is registered, RbacAuditStore falls back to the user's AuditLogRole as the actor identifier.

Methods

GetCurrentActorIdAsync(CancellationToken)

Gets the actor identifier for the current user.

Task<string> GetCurrentActorIdAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<string>

The actor identifier (e.g., user ID, email, or claim).