Class SecurityContextAbstract

Base-class for a context that authenticates users and manages security.

Hierarchy

Constructors

Properties

authenticatedUser?: Authenticatable

The currently authenticated user, if one exists.

bus: Bus<Event>
logging: Logging
name: string

The name of this context.

The repository where users are persisted.

Methods

  • Assuming a user is still authenticated in the context, try to look up and fill in the user.

    If there is NO USER to be resumed, then the method should flush the user from this context.

    Returns Awaitable<void>