authenticate abstract method

FutureOr<Request?> authenticate(
  1. Request request,
  2. Response response, [
  3. Request? originalRequest
])

Returns a Request that includes credentials to satisfy an authentication challenge received in response, based on the incoming request or optionally, the originalRequest (which was not modified with any previous RequestInterceptors).

Otherwise, return null if the challenge cannot be satisfied.

Implementation

FutureOr<Request?> authenticate(
  Request request,
  Response response, [
  Request? originalRequest,
]);