diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-08-22 20:01:18 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-08-22 20:01:18 +0200 |
commit | eae65da110bb957194b34e0f3573ce4e6e6ddc78 (patch) | |
tree | 425a9252338c3db5eac4a5018f594ab646f6cea6 /libraries/katabasis/include | |
parent | 50b92c1af2d28ab59a9b70ce0b3dca62bf1a7583 (diff) | |
download | PrismLauncher-eae65da110bb957194b34e0f3573ce4e6e6ddc78.tar.gz PrismLauncher-eae65da110bb957194b34e0f3573ce4e6e6ddc78.tar.bz2 PrismLauncher-eae65da110bb957194b34e0f3573ce4e6e6ddc78.zip |
GH-3392 Switch MS account login to use device flow instead
Device flow involves the user manually opening a web page and putting in
a code. We no longer need to interact with the browser.
Diffstat (limited to 'libraries/katabasis/include')
-rw-r--r-- | libraries/katabasis/include/katabasis/OAuth2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/katabasis/include/katabasis/OAuth2.h b/libraries/katabasis/include/katabasis/OAuth2.h index 4361691c..9dbe5c71 100644 --- a/libraries/katabasis/include/katabasis/OAuth2.h +++ b/libraries/katabasis/include/katabasis/OAuth2.h @@ -140,7 +140,7 @@ signals: void closeBrowser(); /// Emitted when client needs to show a verification uri and user code - void showVerificationUriAndCode(const QUrl &uri, const QString &code); + void showVerificationUriAndCode(const QUrl &uri, const QString &code, int expiresIn); /// Emitted when authentication/deauthentication succeeded. void linkingSucceeded(); @@ -181,7 +181,7 @@ protected: void setExpires(QDateTime v); /// Start polling authorization server - void startPollServer(const QVariantMap ¶ms); + void startPollServer(const QVariantMap ¶ms, int expiresIn); /// Set authentication token. void setToken(const QString &v); |