-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathICredentialAdministrationReader.cs
More file actions
28 lines (26 loc) · 1.7 KB
/
Copy pathICredentialAdministrationReader.cs
File metadata and controls
28 lines (26 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace Ashlar.Identity.Abstractions.Services;
/// <summary>
/// Provides read-only administrator credential browsing operations.
/// </summary>
/// <remarks>
/// Every operation enforces actor, active-session proof, scope, host authorization, and durable audit requirements.
/// </remarks>
public interface ICredentialAdministrationReader
{
/// <summary>
/// Searches credentials using provider-neutral display fields.
/// </summary>
/// <param name="actor">Authenticated actor, active session, fresh proof, and audit metadata.</param>
/// <param name="request">Tenant scope, filters, and paging options for the search.</param>
/// <param name="cancellationToken">A token that can cancel the search.</param>
/// <returns>Provider-neutral credential summaries. Credential secrets are never returned.</returns>
Task<Result<CredentialSearchResult>> SearchCredentialsAsync(AccountSecurityActorContext actor, SearchCredentialsRequest request, CancellationToken cancellationToken = default);
/// <summary>
/// Gets a safe credential projection by credential id.
/// </summary>
/// <param name="actor">Authenticated actor, active session, fresh proof, and audit metadata.</param>
/// <param name="request">Tenant scope and credential identifier for the lookup.</param>
/// <param name="cancellationToken">A token that can cancel the lookup.</param>
/// <returns>The same provider-neutral credential projection used by search when found, without credential secret values.</returns>
Task<Result<CredentialAdministrationSummary>> GetCredentialAsync(AccountSecurityActorContext actor, CredentialAdministrationLookupRequest request, CancellationToken cancellationToken = default);
}