Add back device code flow
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
2a58fb0ac5
commit
09c0c11033
14 changed files with 481 additions and 36 deletions
|
@ -15,7 +15,9 @@ class AuthFlow : public Task {
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AuthFlow(AccountData* data, bool silent = false, QObject* parent = 0);
|
||||
enum class Action { Refresh, Login, DeviceCode };
|
||||
|
||||
explicit AuthFlow(AccountData* data, Action action = Action::Refresh, QObject* parent = 0);
|
||||
virtual ~AuthFlow() = default;
|
||||
|
||||
void executeTask() override;
|
||||
|
@ -24,6 +26,7 @@ class AuthFlow : public Task {
|
|||
|
||||
signals:
|
||||
void authorizeWithBrowser(const QUrl& url);
|
||||
void authorizeWithBrowserWithExtra(QString url, QString code, int expiresIn);
|
||||
|
||||
protected:
|
||||
void succeed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue