-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIAuthenticationSessionAdministrationReader.cs
More file actions
28 lines (26 loc) · 1.78 KB
/
Copy pathIAuthenticationSessionAdministrationReader.cs
File metadata and controls
28 lines (26 loc) · 1.78 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 authentication session browsing operations.
/// </summary>
/// <remarks>
/// Every operation enforces actor, active-session proof, scope, host authorization, and durable audit requirements.
/// </remarks>
public interface IAuthenticationSessionAdministrationReader
{
/// <summary>
/// Searches authentication sessions 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 session summaries. Raw bearer tokens are never returned.</returns>
Task<Result<AuthenticationSessionSearchResult>> SearchAuthenticationSessionsAsync(AccountSecurityActorContext actor, SearchAuthenticationSessionsRequest request, CancellationToken cancellationToken = default);
/// <summary>
/// Gets an authentication session by id.
/// </summary>
/// <param name="actor">Authenticated actor, active session, fresh proof, and audit metadata.</param>
/// <param name="request">Tenant scope and session identifier for the lookup.</param>
/// <param name="cancellationToken">A token that can cancel the lookup.</param>
/// <returns>The same provider-neutral session projection used by search when found. Raw bearer tokens are never returned.</returns>
Task<Result<AuthenticationSessionAdministrationSummary>> GetAuthenticationSessionAsync(AccountSecurityActorContext actor, AuthenticationSessionAdministrationLookupRequest request, CancellationToken cancellationToken = default);
}