QgsCredentialDialog class

A generic dialog for requesting credentials.

Base classes

class QgsCredentials
Interface for requesting credentials in QGIS in GUI independent way.

Constructors, destructors, conversion operators

QgsCredentialDialog(QWidget* parent = nullptr, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags)
QgsCredentialDialog constructor.

Signals

void credentialsRequested(const QString&, QString*, QString*, const QString&, bool*)
void credentialsRequestedMasterPassword(QString*, bool, bool*)

Protected functions

auto request(const QString& realm, QString& username, QString& password, const QString& message = QString()) -> bool override
request a password
auto requestMasterPassword(QString& password, bool stored = false) -> bool override
request a master password

Function documentation

void QgsCredentialDialog::credentialsRequested(const QString&, QString*, QString*, const QString&, bool*) signal

void QgsCredentialDialog::credentialsRequestedMasterPassword(QString*, bool, bool*) signal