Protocol
CredentialsAuthenticator
Protocol for authenticators that use a credentials type to authenticate. See
CredentialsAuthenticator for more information. Designed for use with HTML forms, works with JSON as wellprotocol CredentialsAuthenticator : RequestAuthenticator
Topics
Associated Types
associatedtype Credentials : ContentThe credentials type to decode from the request body. Must conform toContent.
Instance Methods
func authenticate(credentials: Credentials, for: Request) async throwsAuthenticates the supplied credentials for this request.
Relationships
Inherits From
MiddlewareRequestAuthenticatorSwift.SendableSwift.SendableMetatype