onReceivedServerTrustAuthRequest property
Future<ServerTrustAuthResponse?> Function(dynamic controller, ServerTrustChallenge challenge)?
onReceivedServerTrustAuthRequest
finalinherited
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 ServerTrustChallenge.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewClient.onReceivedSslError)
- iOS (Official API - WKNavigationDelegate.webView)
- MacOS (Official API - WKNavigationDelegate.webView)
Implementation
final Future<ServerTrustAuthResponse?> Function(
T controller, ServerTrustChallenge challenge)?
onReceivedServerTrustAuthRequest;