matrixion/src/SSOHandler.h
Nicolas Werner 7b1fa60cc6 Add SSO
closes #94
2020-05-09 23:33:03 +02:00

24 lines
371 B
C++

#include "httplib.h"
#include <QObject>
#include <string>
class SSOHandler : public QObject
{
Q_OBJECT
public:
SSOHandler(QObject *parent = nullptr);
~SSOHandler();
std::string url() const;
signals:
void ssoSuccess(std::string token);
void ssoFailed();
private:
httplib::Server svr;
int port = 0;
};