This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
powersync-remoteproxy/tests/mockauthenticator.cpp
2018-08-04 13:54:30 +02:00

26 lines
705 B
C++

#include "mockauthenticator.h"
#include "loggingcategories.h"
#include "authentication/authenticationreply.h"
MockAuthenticator::MockAuthenticator(QObject *parent) :
Authenticator(parent)
{
m_timer = new QTimer(this);
m_timer->setSingleShot(true);
connect(m_timer, &QTimer::timeout, this, &MockAuthenticator::onTimeout);
}
void MockAuthenticator::onTimeout()
{
}
AuthenticationReply *MockAuthenticator::authenticate(const QUuid &clientId, const QString &token)
{
qCDebug(dcAuthenticator()) << "MockAuthenticator: Start authentication for" << clientId << "using token" << token;
AuthenticationReply *reply = new AuthenticationReply(clientId, token, this);
return reply;
}