Vapor Documentation Beta

Protocol Credentials​Authenticator

public protocol CredentialsAuthenticator: RequestAuthenticator

Helper for creating authentication middleware using request body contents.

%3 CredentialsAuthenticator CredentialsAuthenticator RequestAuthenticator RequestAuthenticator CredentialsAuthenticator->RequestAuthenticator

Conforms To

RequestAuthenticator

Help for creating authentication middleware based on Request.

Requirements

authenticate(credentials:​for:​)

func authenticate(credentials: Credentials, for request: Request) -> EventLoopFuture<Void>