aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/web_service
diff options
context:
space:
mode:
authorFearlessTobi <[email protected]>2022-07-30 05:57:26 +0200
committerFearlessTobi <[email protected]>2022-08-15 20:25:41 +0200
commit035ca99b023ee776bc13c79f96a5c6b1bc049739 (patch)
tree3e4a83cacf3a7f541e287412ffb4a099aed0e1a3 /src/web_service
parent9fc03d4b91e69ab4590d6e257b41810dcf36abf9 (diff)
downloadyuzu-mainline-035ca99b023ee776bc13c79f96a5c6b1bc049739.tar.gz
yuzu-mainline-035ca99b023ee776bc13c79f96a5c6b1bc049739.zip
web_service: Correct jwt issuer string
Diffstat (limited to 'src/web_service')
-rw-r--r--src/web_service/verify_user_jwt.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web_service/verify_user_jwt.cpp b/src/web_service/verify_user_jwt.cpp
index 3bff46f0a..129eb1968 100644
--- a/src/web_service/verify_user_jwt.cpp
+++ b/src/web_service/verify_user_jwt.cpp
@@ -39,8 +39,10 @@ Network::VerifyUser::UserData VerifyUserJWT::LoadUserData(const std::string& ver
const std::string audience = fmt::format("external-{}", verify_uid);
using namespace jwt::params;
std::error_code error;
+
+ // We use the Citra backend so the issuer is citra-core
auto decoded =
- jwt::decode(token, algorithms({"rs256"}), error, secret(pub_key), issuer("yuzu-core"),
+ jwt::decode(token, algorithms({"rs256"}), error, secret(pub_key), issuer("citra-core"),
aud(audience), validate_iat(true), validate_jti(true));
if (error) {
LOG_INFO(WebService, "Verification failed: category={}, code={}, message={}",