WebView didReceiveAuthenticationChallenge was never called.

My question: How could I get didReceiveAuthenticationChallenge from WebView MacOS?
I implemented
  • (void)webView:(WebView *)sender resource:(id)identifier didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge fromDataSource:(WebDataSource *)dataSource;

from WebResourceLoadDelegate. I found this function from webview WebResourceLoadDelegate.h. But this callback was never be called even I saw from my wireshark the client certificate was sent and key access was popped up.

I did some research and found that I may need to implement this canAuthenticateAgainstProtectionSpace to enable it but I could not find this function from WebView library.
WebView didReceiveAuthenticationChallenge was never called.
 
 
Q