ssl - Android Webview Client Certificate & Http authorization -


the last days trying access website through webview using client certificate. used open source project https://github.com/yonekawa/webview-with-client-certificate. evertything works fine on android 2.3.3 platform, can install certificates , after ssl error invokes

        onreceivedsslerror(webview view, sslerrorhandler handler,         sslerror error){                       handler.proceed();} 

then

       onreceivedhttpauthrequest(final webview view,         final httpauthhandler handler, final string host, final string realm)  

is invoked , can pass credentials secure access. thing 4.x webview not have same behaviour.i had create custom jar internal classes please see:https://github.com/yonekawa/webview-with-client-certificate/issues/1 can use hiden method

      onreceivedclientcertrequest(webview view,         clientcertrequesthandler handler, string host_and_port) 

the problem method gets overiden fine , project gets compiled , method never gets invoked, instead onreceivedsslerror gets invoked usual , page finish loading white page without invoke onreceivedhttpauthrequest in 2.3. did manage make above example work website requires client certificate , authorization ?

i see event firing on android 4.1.2.

i replaced webview clientcertificatewebview , loaded url request client certificates.

https://github.com/yonekawa/webview-with-client-certificate/blob/master/res/layout/main.xml

as expected "onreceivedclientcertrequest" invoked.

make sure server requesting client certificates.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -