File indexing completed on 2024-04-14 15:03:48

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "restauthenticationmanager.h"
0008 
0009 #include "connection.h"
0010 
0011 RESTAuthenticationManager::RESTAuthenticationManager(RocketChatRestApi::Connection *restApiConnection, QObject *parent)
0012     : QObject(parent)
0013     , mRestApiConnection(restApiConnection)
0014 {
0015 }
0016 
0017 RESTAuthenticationManager::~RESTAuthenticationManager() = default;
0018 
0019 void RESTAuthenticationManager::setAuthToken(const QString &authToken)
0020 {
0021     mAuthToken = authToken;
0022 }
0023 
0024 void RESTAuthenticationManager::login()
0025 {
0026     mRestApiConnection->login();
0027 }
0028 
0029 void RESTAuthenticationManager::login(const QString &user, const QString &password)
0030 {
0031     Q_UNUSED(user);
0032     Q_UNUSED(password);
0033 }
0034 
0035 void RESTAuthenticationManager::loginLDAP(const QString &user, const QString &password)
0036 {
0037     Q_UNUSED(user);
0038     Q_UNUSED(password);
0039 }
0040 
0041 void RESTAuthenticationManager::loginOAuth(const QString &credentialToken, const QString &credentialSecret)
0042 {
0043     Q_UNUSED(credentialToken);
0044     Q_UNUSED(credentialSecret);
0045 }
0046 
0047 void RESTAuthenticationManager::sendOTP(const QString &otp)
0048 {
0049     Q_UNUSED(otp);
0050 }
0051 
0052 void RESTAuthenticationManager::logout()
0053 {
0054     mRestApiConnection->logout();
0055 }
0056 
0057 #include "moc_restauthenticationmanager.cpp"