fix: harden the plugin runtime after the 2.9.0 security review

This commit is contained in:
LukeGus committed 2026-09-25 08:48:54 -05:00
1 parent 2961297989
commit c6a44b7ff3
69 files changed
+4613 -312

No files matched your search

+6 -1
View File
@@ -418,7 +418,12 @@ export function createSsoLogin(ctx: PluginContext, store: ProviderStore) {
kind: "external",
provider: providerKey(provider),
subject: String(identifier),
email: (userInfo.email as string | undefined) ?? null,
// An address the provider says it has not verified does not count
// toward the allowed list.
email:
userInfo.email_verified === false || userInfo.email_verified === "false"
? null
: ((userInfo.email as string | undefined) ?? null),
name,
groups,
isAdmin,