diff options
| author | 2022-07-15 19:45:35 +0200 | |
|---|---|---|
| committer | 2022-07-25 21:59:30 +0200 | |
| commit | 6c8e45618578de1406c0bf4a7f976bd4903c339c (patch) | |
| tree | 25b959db6f30fe75bf5c6fa667ed92af71117986 /src/web_service/verify_user_jwt.h | |
| parent | Fix compilation on linux gcc (diff) | |
| download | yuzu-6c8e45618578de1406c0bf4a7f976bd4903c339c.tar.gz yuzu-6c8e45618578de1406c0bf4a7f976bd4903c339c.tar.xz yuzu-6c8e45618578de1406c0bf4a7f976bd4903c339c.zip | |
Address first part of review comments
Diffstat (limited to '')
| -rw-r--r-- | src/web_service/verify_user_jwt.h | 25 |
1 files changed, 25 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..826e01eed --- /dev/null +++ b/src/web_service/verify_user_jwt.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | // Copyright 2018 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <fmt/format.h> | ||
| 8 | #include "network/verify_user.h" | ||
| 9 | #include "web_service/web_backend.h" | ||
| 10 | |||
| 11 | namespace WebService { | ||
| 12 | |||
| 13 | class VerifyUserJWT final : public Network::VerifyUser::Backend { | ||
| 14 | public: | ||
| 15 | VerifyUserJWT(const std::string& host); | ||
| 16 | ~VerifyUserJWT() = default; | ||
| 17 | |||
| 18 | Network::VerifyUser::UserData LoadUserData(const std::string& verify_UID, | ||
| 19 | const std::string& token) override; | ||
| 20 | |||
| 21 | private: | ||
| 22 | std::string pub_key; | ||
| 23 | }; | ||
| 24 | |||
| 25 | } // namespace WebService | ||