From 123d58fc3c29d8e9adbb5b654df53d5cbb0a32fa Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 26 Mar 2020 19:14:34 +0100 Subject: SsoSession and Connection::prepareForSso() Final part of #388 backport. --- lib/connection.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/connection.cpp') 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) -- cgit v1.2.3