Table of Contents

Interface ISessionManagementService

Namespace
Fdyay.IdentityServer.Services
Assembly
Fdyay.IdentityServer.AspNetCore.dll

Listing and ending sessions from outside the browser holding them.

public interface ISessionManagementService

Methods

QuerySessionsAsync(SessionQuery, CancellationToken)

A page of sessions, for an administrative list.

Task<QueryResult<ServerSideSession>> QuerySessionsAsync(SessionQuery query, CancellationToken cancellationToken = default)

Parameters

query SessionQuery
cancellationToken CancellationToken

Returns

Task<QueryResult<ServerSideSession>>

RemoveSessionsAsync(RemoveSessionsContext, CancellationToken)

Ends the sessions the context names and, as its flags say, tells their clients and revokes the clients' tokens and consents. Duende's.

Task RemoveSessionsAsync(RemoveSessionsContext context, CancellationToken cancellationToken = default)

Parameters

context RemoveSessionsContext
cancellationToken CancellationToken

Returns

Task

Remarks

An overload beside RemoveSessionsAsync(SessionFilter, CancellationToken), which keeps doing what it did. A default interface method, so a host's service written before 0.162.0 keeps compiling; one that does not implement it throws NotSupportedException when asked, rather than ending less than it was asked to. Nothing in Duende's assembly or this server calls it; it is for a host's administrative page. Duende's interface has no default.

RemoveSessionsAsync(SessionFilter, CancellationToken)

Ends every session matching the filter, and cleans up after each.

Task RemoveSessionsAsync(SessionFilter filter, CancellationToken cancellationToken = default)

Parameters

filter SessionFilter
cancellationToken CancellationToken

Returns

Task