Skip to content

Commit c93dffd

Browse files
committed
fix(feishu): match ambiguous allow entries under both id fields
1 parent 132fc7c commit c93dffd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎extensions/feishu/src/policy.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,12 @@ const feishuIngressIdentity = defineStableChannelIngressIdentity({
3030
sensitivity: "pii",
3131
aliases: [
3232
{
33+
// One configured entry is deliberately ambiguous between open_id and
34+
// user_id, so it normalizes under both same-kind fields and matches
35+
// whichever sender candidate carries the value under exact-field binding.
3336
key: "feishu-alt-id",
3437
kind: FEISHU_ID_KIND,
35-
normalizeEntry: () => null,
38+
normalizeEntry: normalizeFeishuAllowEntry,
3639
normalizeSubject: normalizeFeishuAllowEntry,
3740
sensitivity: "pii",
3841
},

0 commit comments

Comments
 (0)