mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 10:16:34 +01:00
WebPage: Add basic support for client certificates
It will now always selects first available client certificate. Requires QtWebEngine 5.12
This commit is contained in:
parent
5fcd29c507
commit
7429d1d8ef
@ -113,6 +113,10 @@ WebPage::WebPage(QObject* parent)
|
||||
|
||||
#if QTWEBENGINEWIDGETS_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||
connect(this, &QWebEnginePage::printRequested, this, &WebPage::printRequested);
|
||||
connect(this, &QWebEnginePage::selectClientCertificate, this, [this](QWebEngineClientCertificateSelection selection) {
|
||||
// TODO: It should prompt user
|
||||
selection.select(selection.certificates().at(0));
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user