File indexing completed on 2024-12-08 04:33:09

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "libruqola_private_export.h"
0010 
0011 #include <QJsonArray>
0012 
0013 namespace DDPAuthenticationManagerUtils
0014 {
0015 [[nodiscard]] LIBRUQOLACORE_TESTS_EXPORT QJsonArray loginResume(const QString &token);
0016 [[nodiscard]] LIBRUQOLACORE_TESTS_EXPORT QJsonArray loginLdap(const QString &user, const QString &password);
0017 [[nodiscard]] LIBRUQOLACORE_TESTS_EXPORT QJsonArray loginOAuth(const QString &credentialToken, const QString &credentialSecret);
0018 [[nodiscard]] LIBRUQOLACORE_TESTS_EXPORT QJsonArray login(const QString &user, const QString &password);
0019 [[nodiscard]] LIBRUQOLACORE_TESTS_EXPORT QJsonArray sendOTP(const QString &otpCode, const QJsonObject &lastLoginPayload);
0020 [[nodiscard]] LIBRUQOLACORE_TESTS_EXPORT QJsonObject hashPassword(const QString &password);
0021 };