CorvusModelAuthenticator
public struct CorvusModelAuthenticator<User: CorvusModelAuthenticatable>:
BasicAuthenticator
Provides a BasicAuthenticator
struct that defines how users are
authenticated.
-
The database the user is saved in.
Declaration
Swift
public let database: DatabaseID?
-
Authenticates a user.
Declaration
Swift
public func authenticate( basic: BasicAuthorization, for request: Request ) -> EventLoopFuture<Void>
Parameters
basic
The username and password passed in the request.
request
The
Request
to be authenticated.Return Value
An empty
EventLoopFuture
.