AsyncCredentialsAuthenticator
Helper for creating authentication middleware using request body contents.
protocol AsyncCredentialsAuthenticator : AsyncRequestAuthenticator
Browse conforming typesThis is an async version of CredentialsAuthenticator
Helper for creating authentication middleware using request body contents.
protocol AsyncCredentialsAuthenticator : AsyncRequestAuthenticator
This is an async version of CredentialsAuthenticator
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 AsyncRequestAuthenticator : AsyncAuthenticator
Help for creating authentication middleware based on Request
.
protocol AsyncAuthenticator : AsyncMiddleware
Helper for creating authentication middleware.
protocol AsyncMiddleware : Middleware
AsyncMiddleware
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 : 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 Credentials : Content
func authenticate(credentials: Credentials, for request: Request) async throws
func authenticate(request: Request) async throws