onReceivedServerTrustAuthRequest property
Future<ServerTrustAuthResponse?> Function(InAppWebViewController controller, URLAuthenticationChallenge challenge)?
onReceivedServerTrustAuthRequest
final
Event fired when the WebView need to perform server trust authentication (certificate validation). The host application must return either ServerTrustAuthResponse instance with ServerTrustAuthResponseAction.CANCEL or ServerTrustAuthResponseAction.PROCEED.
challenge contains data about host, port, protocol, realm, etc. as specified in the URLAuthenticationChallenge.
Official Android API: https://developer.android.com/reference/android/webkit/WebViewClient#onReceivedSslError(android.webkit.WebView,%20android.webkit.SslErrorHandler,%20android.net.http.SslError)
Official iOS API: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455638-webview
Implementation
final Future<ServerTrustAuthResponse?> Function(
InAppWebViewController controller,
URLAuthenticationChallenge challenge)? onReceivedServerTrustAuthRequest;