Horizon Official Technical Documentation
AuthClientInterface.hpp
Go to the documentation of this file.
1/***************************************************
2 * _ _ _ *
3 * | | | | (_) *
4 * | |_| | ___ _ __ _ _______ _ __ *
5 * | _ |/ _ \| '__| |_ / _ \| '_ \ *
6 * | | | | (_) | | | |/ / (_) | | | | *
7 * \_| |_/\___/|_| |_/___\___/|_| |_| *
8 ***************************************************
9 * This file is part of Horizon (c).
10 * Copyright (c) 2020- Horizon Dev Team.
11 *
12 * Base Author - Sagun Khosla. (sagunxp@gmail.com)
13 *
14 * This library is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this library. If not, see <http://www.gnu.org/licenses/>.
26 **************************************************/
27
28#ifndef HORIZON_AUTHCLIENTINTERFACE_HPP
29#define HORIZON_AUTHCLIENTINTERFACE_HPP
30
32#include <string>
33
34namespace Horizon
35{
36namespace Auth
37{
38class AuthSession;
39class AuthClientInterface : public ClientInterface<AuthSession>
40{
41public:
42 AuthClientInterface(std::shared_ptr<AuthSession> session);
44
45 bool process_login(std::string username, std::string hash, uint16_t version, uint16_t client_type);
47};
48}
49}
50
51#endif /* HORIZON_AUTHCLIENTINTERFACE_HPP */
Definition: AuthClientInterface.hpp:40
~AuthClientInterface()
Definition: AuthClientInterface.cpp:45
bool process_login(std::string username, std::string hash, uint16_t version, uint16_t client_type)
Definition: AuthClientInterface.cpp:50
bool client_login_otp_response()
Definition: AuthClientInterface.cpp:186
AuthClientInterface(std::shared_ptr< AuthSession > session)
Definition: AuthClientInterface.cpp:39
Definition: ClientInterface.hpp:38
Definition: Element.hpp:7