Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { describe, expect, it } from "vitest";
import { feishuApprovalAuth } from "./approval-auth.js";
describe("feishuApprovalAuth", () => {
it("authorizes open_id approvers and ignores user_id-only allowlists", () => {
expect(
feishuApprovalAuth.authorizeActorAction({
cfg: { channels: { feishu: { allowFrom: ["ou_owner"] } } },
senderId: "ou_owner",
action: "approve",
approvalKind: "exec",
}),
).toEqual({ authorized: true });
expect(
feishuApprovalAuth.authorizeActorAction({
cfg: { channels: { feishu: { allowFrom: ["user_123"] } } },
senderId: "ou_attacker",
action: "approve",
approvalKind: "exec",
}),
).toEqual({ authorized: true });
});
});
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland