diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-03-26 19:14:34 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-03-26 22:52:01 +0100 |
commit | 123d58fc3c29d8e9adbb5b654df53d5cbb0a32fa (patch) | |
tree | b395f17139b0e7de576670e347138059600e4440 /lib/connection.cpp | |
parent | 1b5d6216beddd17c820240dd4bdeaf9c47624cf6 (diff) | |
download | libquotient-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.cpp | 6 |
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) |