2#include "ui_authdialog.h"
4AuthDialog::AuthDialog(QWidget *parent)
9AuthDialog::~AuthDialog() {
13void AuthDialog::on_acceptButton_clicked() {
15 connect(authManager, &cavoke::auth::AuthenticationManager::authenticated,
16 this, &AuthDialog::accept);
18 authManager->oauth2.grant();
21void AuthDialog::on_declineButton_clicked() {
22 qWarning() <<
"User declined authorization! Unable to proceed.";
31 if (authManager->checkAuthStatus()) {
32 qDebug() <<
"Already authenticated";
static bool verifyAuth(QWidget *parent=nullptr)
static AuthenticationManager & getInstance()
Singleton wrapper.