diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-07-25 18:31:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-25 18:31:45 -0400 |
commit | 1e67d2b59f6dfd561768db3fb9a8e0c6a16ec9f2 (patch) | |
tree | 999411f1ca76390654d1034c6d0bd2c47c3f101c /src/web_service/verify_user_jwt.h | |
parent | 1bcde9dd9879fc2677695e9283f2fe1d68c935b2 (diff) | |
parent | a41baaa181f30229d3552caa69135be978c1ddb5 (diff) |
Merge pull request #8541 from FearlessTobi/multiplayer-part1
yuzu, network: Add room service and UI configuration
Diffstat (limited to 'src/web_service/verify_user_jwt.h')
-rw-r--r-- | src/web_service/verify_user_jwt.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/web_service/verify_user_jwt.h b/src/web_service/verify_user_jwt.h new file mode 100644 index 000000000..27b0a100c --- /dev/null +++ b/src/web_service/verify_user_jwt.h @@ -0,0 +1,26 @@ +// SPDX-FileCopyrightText: Copyright 2018 Citra Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include <fmt/format.h> +#include "network/verify_user.h" +#include "web_service/web_backend.h" + +namespace WebService { + +std::string GetPublicKey(const std::string& host); + +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 |