Protocolvapor 4.114.1Vapor
SessionAuthenticator
Helper for creating authentication middleware in conjunction with SessionsMiddleware
.
protocol SessionAuthenticator : Authenticator
Browse conforming typesHelper for creating authentication middleware in conjunction with SessionsMiddleware
.
protocol SessionAuthenticator : Authenticator
import Vapor
Vapor 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 Authenticator : Middleware
Helper for creating authentication middleware.
@preconcurrency protocol Middleware : Sendable
Middleware
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 Sendable
associatedtype User : SessionAuthenticatable
func authenticate(sessionID: User.SessionID, for request: Request) -> EventLoopFuture<Void>
Authenticate a model with the supplied ID.
func respond(to request: Request, chainingTo next: Responder) -> EventLoopFuture<Response>