authenticate abstract method
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,
]);