Vapor Documentation Beta

Protocol Basic​Authenticator

public protocol BasicAuthenticator: RequestAuthenticator

Helper for creating authentication middleware using the Basic authorization header.

%3 BasicAuthenticator BasicAuthenticator RequestAuthenticator RequestAuthenticator BasicAuthenticator->RequestAuthenticator

Conforms To

RequestAuthenticator

Help for creating authentication middleware based on Request.

Requirements

authenticate(basic:​for:​)

func authenticate(basic: BasicAuthorization, for request: Request) -> EventLoopFuture<Void>