Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Webview Client Certificate & Http authorization
    primarykey
    data
    text
    <p>The last days i am trying to access a website through webview using client certificate. I used the open source project from <a href="https://github.com/yonekawa/webview-with-client-certificate" rel="nofollow">https://github.com/yonekawa/webview-with-client-certificate</a>. Evertything works fine on android 2.3.3 platform, i can install the certificates and after ssl error invokes the </p> <pre><code> onReceivedSslError(WebView view, SslErrorHandler handler, SslError error){ handler.proceed();} </code></pre> <p>then</p> <pre><code> onReceivedHttpAuthRequest(final WebView view, final HttpAuthHandler handler, final String host, final String realm) </code></pre> <p>is invoked and i can pass the credentials for a secure access. The thing is that 4.x webview does not have the same behaviour.I had to create a custom jar with all the internal classes please see:<a href="https://github.com/yonekawa/webview-with-client-certificate/issues/1" rel="nofollow">https://github.com/yonekawa/webview-with-client-certificate/issues/1</a> so i can use the hiden method</p> <pre><code> onReceivedClientCertRequest(WebView view, ClientCertRequestHandler handler, String host_and_port) </code></pre> <p>The problem is that the method gets overiden just fine and the project gets compiled , but the method never gets invoked, instead <i>onReceivedSslError</i> gets invoked like usual and then page finish loading with a white page without even invoke the <i>onReceivedHttpAuthRequest</i> like in 2.3. Did anyone actually manage to make the above example work for a website that requires client certificate and authorization ? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload