Bug #13553 ยป 20250301-oauth-unverified_email-relaxed-bool.patch
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);
|
||
}
|