mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
fix: harden the plugin runtime after the 2.9.0 security review
This commit is contained in:
1 parent
2961297989
commit
c6a44b7ff3
69 files changed
+4613
-312
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user