Required Instance Methodvapor 4.114.1Vapor
authenticate(bearer:for:)
Authenticator.swift:47func authenticate(bearer: BearerAuthorization, for request: Request) -> EventLoopFuture<Void>
func authenticate(bearer: BearerAuthorization, for request: Request) -> EventLoopFuture<Void>
s5Vapor19BearerAuthenticatorP12authenticate6bearer3for7NIOCore15EventLoopFutureCyytGAA0B13AuthorizationV_AA7RequestCtF
What are these?5NLV
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 BearerAuthenticator : RequestAuthenticator
Helper for creating authentication middleware using the Bearer authorization header.
struct BearerAuthorization
A bearer token.
final class Request
Represents an HTTP request in an application.
final class EventLoopFuture<Value>
Holder for a result that will be provided later.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.