Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Class

Request.Authentication

Stores and fetches the instances authenticated for a request.
final class Authentication

Overview

Owned by the Request and shared for its whole lifetime, so an instance logged in by an inner middleware stays visible to an outer middleware as the response unwinds — that is how SessionAuthenticator persists a user authenticated further down the chain. Reading has no side effects.

See RequestAuthenticator for more information.

Topics

Instance Methods

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype