summaryrefslogtreecommitdiffstats
path: root/src/SSOHandler.h
blob: 325b7a58ecc3a573be3ad31838b82e062f714656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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;
};