Authorizer.basic constructor

Authorizer.basic(
  1. AuthValidator validator
)

Creates an instance of Authorizer with Basic Authentication parsing.

Parses a username and password from the request's Basic Authentication data in the Authorization header, e.g.:

    Authorization: Basic base64(username:password)

Implementation

Authorizer.basic(AuthValidator validator)
    : this(validator, parser: const AuthorizationBasicParser());