mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +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->setWindowFlags(Qt::WindowStaysOnTopHint);
|
||||||
_activeWebView->load(authorizationURL);
|
_activeWebView->load(authorizationURL);
|
||||||
_activeWebView->show();
|
_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:
|
public slots:
|
||||||
void displayWebviewForAuthorizationURL(const QUrl& authorizationURL);
|
void displayWebviewForAuthorizationURL(const QUrl& authorizationURL);
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void handleSSLErrors(QNetworkReply* networkReply, const QList<QSslError>& errorList);
|
||||||
private:
|
private:
|
||||||
QWebView* _activeWebView;
|
QWebView* _activeWebView;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue