mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
440 B
28 lines
440 B
// SPDX-FileCopyrightText: Nheko Contributors
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#include "httplib.h"
|
|
|
|
#include <QObject>
|
|
#include <string>
|
|
|
|
class SSOHandler final : 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;
|
|
};
|
|
|