Shibboleth: Use sslErrors() handler of rest of client #3593
authorMarkus Goetz <markus@woboq.com>
Thu, 13 Aug 2015 15:09:39 +0000 (17:09 +0200)
committerMarkus Goetz <markus@woboq.com>
Thu, 13 Aug 2015 15:09:39 +0000 (17:09 +0200)
src/gui/creds/shibboleth/shibbolethwebview.cpp

index efae1ad87a3567a2f19a7b17ff35b89e1164e363..41567deda2f5c65de70c3138ace524e23a37f25f 100644 (file)
@@ -52,6 +52,9 @@ ShibbolethWebView::ShibbolethWebView(AccountPtr account, QWidget* parent)
     connect(page, SIGNAL(loadFinished(bool)),
             this, SLOT(slotLoadFinished(bool)));
 
+    // Make sure to accept the same SSL certificate issues as the regular QNAM we use for syncing
+    QObject::connect(page->networkAccessManager(), SIGNAL(sslErrors(QNetworkReply*,QList<QSslError>)),
+            _account.data(), SLOT(slotHandleSslErrors(QNetworkReply*,QList<QSslError>)));
 
     // The Account keeps ownership of the cookie jar, it must outlive this webview.
     account->lendCookieJarTo(page->networkAccessManager());