mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-26 08:28:09 +00:00
web_service: Correct jwt issuer string
This commit is contained in:
parent
9fc03d4b91
commit
035ca99b02
1 changed files with 3 additions and 1 deletions
|
@ -39,8 +39,10 @@ Network::VerifyUser::UserData VerifyUserJWT::LoadUserData(const std::string& ver
|
||||||
const std::string audience = fmt::format("external-{}", verify_uid);
|
const std::string audience = fmt::format("external-{}", verify_uid);
|
||||||
using namespace jwt::params;
|
using namespace jwt::params;
|
||||||
std::error_code error;
|
std::error_code error;
|
||||||
|
|
||||||
|
// We use the Citra backend so the issuer is citra-core
|
||||||
auto decoded =
|
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));
|
aud(audience), validate_iat(true), validate_jti(true));
|
||||||
if (error) {
|
if (error) {
|
||||||
LOG_INFO(WebService, "Verification failed: category={}, code={}, message={}",
|
LOG_INFO(WebService, "Verification failed: category={}, code={}, message={}",
|
||||||
|
|
Loading…
Reference in a new issue