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.
2018-08-14 17:26:57 +02:00

37 lines
788 B
C++

#ifndef AWSAUTHENTICATOR_H
#define AWSAUTHENTICATOR_H
#include <QObject>
#include <QNetworkAccessManager>
#include "authenticator.h"
#include "authenticationreply.h"
#include "authenticationprocess.h"
namespace remoteproxy {
class AwsAuthenticator : public Authenticator
{
Q_OBJECT
public:
explicit AwsAuthenticator(QObject *parent = nullptr);
~AwsAuthenticator() override;
QString name() const override;
private:
QNetworkAccessManager *m_manager = nullptr;
QHash<AuthenticationProcess *, AuthenticationReply *> m_runningProcesses;
private slots:
void onAuthenticationProcessFinished(Authenticator::AuthenticationError error);
public slots:
AuthenticationReply *authenticate(ProxyClient *proxyClient) override;
};
}
#endif // AWSAUTHENTICATOR_H