InvictusInnovations / keyhotee

Decentralized ID and Communication
54 stars 27 forks source link

Implement basic authentication support for wallet views basing on QWebView #382

Closed vogel76 closed 10 years ago

vogel76 commented 10 years ago

Please install a callbacks to be triggered when a page requires an authentication and display a dialog to enter credentials. Below is a code snippet which could simplify implementation: connect(QWebView::page()->networkAccessManager(), SIGNAL(authenticationRequired(QNetworkReply,QAuthenticator)), this, SLOT(handleAuthenticationRequired(QNetworkReply,QAuthenticator)));

void handleAuthenticationRequired(QNetworkReply*, QAuthenticator* authenticator) {
  authenticator->setUser("username");
  authenticator->setPassword("password");
}