Project

General

Profile

Bug #13553 ยป 20250301-oauth-unverified_email-relaxed-bool.patch

Stephan Kaiser, 03/01/2025 09:32 PM

View differences:

src/Wt/Auth/OidcService.C
std::string id = claims.get("sub").orIfNull(""); // ifNull -> Invalid
std::string name = claims.get("name").orIfNull("");
std::string email = claims.get("email").orIfNull("");
bool emailVerified = claims.get("email_verified").orIfNull(false);
bool emailVerified = claims.get("email_verified").toBool().orIfNull(false);
std::string providerName = this->service().name();
return Identity(providerName, id, name, email, emailVerified);
}
    (1-1/1)