This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2022-07-15 17:45:35 +00:00
|
|
|
// Copyright 2018 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <fmt/format.h>
|
|
|
|
#include "network/verify_user.h"
|
|
|
|
#include "web_service/web_backend.h"
|
|
|
|
|
|
|
|
namespace WebService {
|
|
|
|
|
2022-07-18 03:53:44 +00:00
|
|
|
std::string GetPublicKey(const std::string& host);
|
|
|
|
|
2022-07-15 17:45:35 +00:00
|
|
|
class VerifyUserJWT final : public Network::VerifyUser::Backend {
|
|
|
|
public:
|
|
|
|
VerifyUserJWT(const std::string& host);
|
|
|
|
~VerifyUserJWT() = default;
|
|
|
|
|
|
|
|
Network::VerifyUser::UserData LoadUserData(const std::string& verify_UID,
|
|
|
|
const std::string& token) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string pub_key;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace WebService
|