Class MeSessionsController
H3-SSO (v1.0 DoD §6 scoped-subset): self-service session API at
/api/v1/identity/me/sessions. Callers target only their own sessions —
user id is derived from the authenticated access-token subject, never from the
request body or query.
Bearer auth is enforced by the shared management API gate
(ManagementBearerAuthProcessor) which accepts either identity:manage
or identity:account scope. The downstream MeSessionsProcessor uses
the sub claim as the caller id; non-numeric subjects are rejected.
[Route("me/sessions")]
public class MeSessionsController : IdentityControllerBase
Inheritance
Inherited Members
Methods
Revoke(string)
Revoke one of the caller's own sessions by id. 404 on any other session.
[HttpDelete("{sessionId}")]
public Task<object?> Revoke(string sessionId)
RevokeCurrent()
Revoke the session bound to the caller's current access token. The session id is
[HttpDelete("current")]
public Task<object?> RevokeCurrent()
RevokeOthers()
Revoke all sessions of the caller except the current one (identified by the
[HttpDelete("others")]
public Task<object?> RevokeOthers()