18#ifndef TRINITYCORE_AUTHENTICATION_SERVICE_H
19#define TRINITYCORE_AUTHENTICATION_SERVICE_H
23#include "Client/authentication_service.pb.h"
24#include "Client/api/client/v2/authentication_service.pb.h"
39 std::string_view locale,
uint32 applicationVersion, std::string_view deviceId);
41 std::function<
void(
uint32)> sendResponse, std::function<
void(
AccountInfo const*, std::string_view)> sendLogonComplete);
55 uint32 HandleLogon(authentication::v1::LogonRequest
const* request, NoData* response, std::function<
void(
ServiceBase*,
uint32, ::google::protobuf::Message
const*)>& continuation)
override;
57 uint32 HandleGenerateWebCredentials(authentication::v1::GenerateWebCredentialsRequest
const* request, authentication::v1::GenerateWebCredentialsResponse* response, std::function<
void(
ServiceBase*,
uint32, google::protobuf::Message
const*)>& continuation)
override;
73 uint32 HandleLogon(authentication::v2::client::LogonRequest
const* request, NoData* response, std::function<
void(
ServiceBase*,
uint32, ::google::protobuf::Message
const*)>& continuation)
override;
75 uint32 HandleGenerateAuthToken(authentication::v2::client::GenerateAuthTokenRequest
const* request, authentication::v2::client::GenerateAuthTokenResponse* response, std::function<
void(
ServiceBase*,
uint32, google::protobuf::Message
const*)>& continuation)
override;
static uint32 HandleVerifyAuthToken(Session *session, std::string_view authToken, std::function< void(uint32)> sendResponse, std::function< void(AccountInfo const *, std::string_view)> sendLogonComplete)
static uint32 HandleLogon(Session *session, ClientBuild::Program::Id program, std::string_view platform, std::string_view locale, uint32 applicationVersion, std::string_view deviceId)
static uint32 HandleGenerateAuthToken(Session *session, std::function< void(std::string_view)> sendResponse)
Service< authentication::v1::AuthenticationService > AuthenticationService
uint32 HandleGenerateWebCredentials(authentication::v1::GenerateWebCredentialsRequest const *request, authentication::v1::GenerateWebCredentialsResponse *response, std::function< void(ServiceBase *, uint32, google::protobuf::Message const *)> &continuation) override
uint32 HandleVerifyWebCredentials(std::string_view webCredentials, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
uint32 HandleVerifyWebCredentials(authentication::v1::VerifyWebCredentialsRequest const *request, NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) override
uint32 HandleLogon(authentication::v1::LogonRequest const *request, NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) override
uint32 HandleVerifyAuthToken(std::string_view authToken, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
uint32 HandleLogon(authentication::v2::client::LogonRequest const *request, NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) override
uint32 HandleVerifyAuthToken(authentication::v2::client::VerifyAuthTokenRequest const *request, NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) override
uint32 HandleGenerateAuthToken(authentication::v2::client::GenerateAuthTokenRequest const *request, authentication::v2::client::GenerateAuthTokenResponse *response, std::function< void(ServiceBase *, uint32, google::protobuf::Message const *)> &continuation) override
Service< authentication::v2::client::AuthenticationService > AuthenticationService