1#ifndef CAVOKE_AUTHENTICATIONMANAGER_H
2#define CAVOKE_AUTHENTICATIONMANAGER_H
4#include <QOAuth2AuthorizationCodeFlow>
7namespace cavoke::auth {
14 QOAuth2AuthorizationCodeFlow oauth2;
20 bool checkAuthStatus();
27 void writeSecurePassword(
const QString &profile,
const QString &pass);
29 void readSecurePassword(
const QString &profile, L callback);
30 void deleteSecurePassword(
const QString &profile);
32 QSettings settings{
this};
34 const static QString authorizationUrl;
35 const static QString accessTokenUrl;
36 const static QString logoutUrl;
37 const static QString clientId;
38 const static QString scope;
39 const static QString audience;
41 const static QString refresh_token_profile;
static AuthenticationManager & getInstance()
Singleton wrapper.