#if ObjC
@end
@interface B4IWKWebViewDelegate:NSObject <WKNavigationDelegate, WKUIDelegate>
@end
@implementation B4IWKWebViewDelegate (new)
- (void)webView:(WKWebView *)webView
didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler{
B4IArray* B4ICred = [B4IObjectWrapper raiseEvent:webView :@"_userandpasswordrequired:" :@[webView.URL.absoluteString]];
NSArray* Cred = B4ICred.objectsData;
NSURLCredential *UrlCred = [NSURLCredential credentialWithUser:Cred[0] password:Cred[1] persistence:NSURLCredentialPersistenceForSession];
completionHandler(NSURLSessionAuthChallengeUseCredential,UrlCred);
}
#End If