onReceivedHttpAuthRequest method

  1. @override
FutureOr<HttpAuthResponse?>? onReceivedHttpAuthRequest(
  1. HttpAuthenticationChallenge challenge
)
inherited

Event fired when the WebView received an HTTP authentication request. The default behavior is to cancel the request.

challenge contains data about host, port, protocol, realm, etc. as specified in the URLAuthenticationChallenge.

Officially Supported Platforms/Implementations:

Implementation

@override
FutureOr<HttpAuthResponse?>? onReceivedHttpAuthRequest(
    HttpAuthenticationChallenge challenge) {
  return null;
}