onReceivedHttpAuthRequest property
(Future<HttpAuthResponse?> Function(InAppWebViewController controller, HttpAuthenticationChallenge challenge)?)
onReceivedHttpAuthRequest
final
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.
Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewClient.onReceivedHttpAuthRequest)
- iOS (Official API - WKNavigationDelegate.webView)
- MacOS (Official API - WKNavigationDelegate.webView)
Implementation
final Future<HttpAuthResponse?> Function(InAppWebViewController controller,
HttpAuthenticationChallenge challenge)? onReceivedHttpAuthRequest;