mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
output SSL errors from OAuthWebViewHandler
This commit is contained in:
parent
56c24ce8b7
commit
d9033a8074
2 changed files with 9 additions and 0 deletions
|
@ -32,5 +32,12 @@ void OAuthWebViewHandler::displayWebviewForAuthorizationURL(const QUrl& authoriz
|
|||
_activeWebView->setWindowFlags(Qt::WindowStaysOnTopHint);
|
||||
_activeWebView->load(authorizationURL);
|
||||
_activeWebView->show();
|
||||
|
||||
connect(_activeWebView->page()->networkAccessManager(), &QNetworkAccessManager::sslErrors,
|
||||
this, &OAuthWebViewHandler::handleSSLErrors);
|
||||
}
|
||||
}
|
||||
|
||||
void OAuthWebViewHandler::handleSSLErrors(QNetworkReply* networkReply, const QList<QSslError>& errorList) {
|
||||
qDebug() << "SSL Errors:" << errorList;
|
||||
}
|
||||
|
|
|
@ -25,6 +25,8 @@ public:
|
|||
public slots:
|
||||
void displayWebviewForAuthorizationURL(const QUrl& authorizationURL);
|
||||
|
||||
private slots:
|
||||
void handleSSLErrors(QNetworkReply* networkReply, const QList<QSslError>& errorList);
|
||||
private:
|
||||
QWebView* _activeWebView;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue