AsyncSessionAuthenticator
Helper for creating authentication middleware in conjunction with SessionsMiddleware.
protocol AsyncSessionAuthenticator : AsyncAuthenticatorBrowse conforming typesThis is an async version of SessionAuthenticator
Helper for creating authentication middleware in conjunction with SessionsMiddleware.
protocol AsyncSessionAuthenticator : AsyncAuthenticatorThis is an async version of SessionAuthenticator
import VaporVapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol AsyncAuthenticator : AsyncMiddlewareHelper for creating authentication middleware.
protocol AsyncMiddleware : MiddlewareAsyncMiddleware is placed between the server and your router. It is capable of mutating both incoming requests and outgoing responses. AsyncMiddleware can choose to pass requests on to the next AsyncMiddleware in a chain, or they can short circuit and return a custom Response if desired.
@preconcurrency protocol Middleware : SendableMiddleware is placed between the server and your router. It is capable of mutating both incoming requests and outgoing responses. Middleware can choose to pass requests on to the next Middleware in a chain, or they can short circuit and return a custom Response if desired.
protocol Sendableassociatedtype User : SessionAuthenticatablefunc authenticate(sessionID: User.SessionID, for request: Request) async throws Authenticate a model with the supplied ID.
func respond(to request: Request, chainingTo next: AsyncResponder) async throws -> Response