aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-03-26 19:14:34 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-03-26 22:52:01 +0100
commit123d58fc3c29d8e9adbb5b654df53d5cbb0a32fa (patch)
treeb395f17139b0e7de576670e347138059600e4440 /lib/connection.cpp
parent1b5d6216beddd17c820240dd4bdeaf9c47624cf6 (diff)
downloadlibquotient-123d58fc3c29d8e9adbb5b654df53d5cbb0a32fa.tar.gz
libquotient-123d58fc3c29d8e9adbb5b654df53d5cbb0a32fa.zip
SsoSession and Connection::prepareForSso()
Final part of #388 backport.
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 6da04118..647fc006 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -254,6 +254,12 @@ void Connection::doConnectToServer(const QString& user, const QString& password,
password, /*token*/ "", deviceId, initialDeviceName);
}
+SsoSession* Connection::prepareForSso(const QString& initialDeviceName,
+ const QString& deviceId)
+{
+ return new SsoSession(this, initialDeviceName, deviceId);
+}
+
void Connection::loginWithToken(const QByteArray& loginToken,
const QString& initialDeviceName,
const QString& deviceId)