diff options
author | FearlessTobi <[email protected]> | 2022-07-30 05:57:26 +0200 |
---|---|---|
committer | FearlessTobi <[email protected]> | 2022-08-15 20:25:41 +0200 |
commit | 035ca99b023ee776bc13c79f96a5c6b1bc049739 (patch) | |
tree | 3e4a83cacf3a7f541e287412ffb4a099aed0e1a3 /src/web_service | |
parent | 9fc03d4b91e69ab4590d6e257b41810dcf36abf9 (diff) | |
download | yuzu-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.cpp | 4 |
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={}", |