Authenticator
Helper for creating authentication middleware.
protocol Authenticator : Middleware
Browse conforming typesSee RequestAuthenticator
and SessionAuthenticator
for more information.
Helper for creating authentication middleware.
protocol Authenticator : Middleware
See RequestAuthenticator
and SessionAuthenticator
for more information.
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.
@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
protocol BasicAuthenticator : RequestAuthenticator
Helper for creating authentication middleware using the Basic authorization header.
protocol BearerAuthenticator : RequestAuthenticator
Helper for creating authentication middleware using the Bearer authorization header.
protocol CredentialsAuthenticator : RequestAuthenticator
Helper for creating authentication middleware using request body contents.
protocol RequestAuthenticator : Authenticator
Help for creating authentication middleware based on Request
.
protocol SessionAuthenticator : Authenticator
Helper for creating authentication middleware in conjunction with SessionsMiddleware
.