The OpenD Programming Language

ICoreWebView2_5.add_ClientCertificateRequested

Add an event handler for the ClientCertificateRequested event. The ClientCertificateRequested event is raised when the WebView2 is making a request to an HTTP server that needs a client certificate for HTTP authentication. Read more about HTTP client certificates at RFC 8446 The Transport Layer Security (TLS) Protocol Version 1.3.

With this event you have several options for responding to client certificate requests:

Scenario | Handled | Cancel | SelectedCertificate

Respond to server without certificate | True | False | null Display default client certificate selection dialog prompt | False | False | n/a Cancel the request | n/a | True | n/a

If you don't handle the event, WebView2 will show the default client certificate selection dialog prompt to user.

\snippet SettingsComponent.cpp ClientCertificateRequested1 \snippet ScenarioClientCertificateRequested.cpp ClientCertificateRequested2

interface ICoreWebView2_5
HRESULT
add_ClientCertificateRequested

Meta