Import Digest, NTLM, OAuth 1.0, and folder-level auth from Postman collections (#667)

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Gregory Schier
2026-09-15 13:18:34 -07:00
committed by GitHub
co-authored by Claude Opus 5
parent a822cc93d4
commit 31d55440c1
6 changed files with 474 additions and 13 deletions
@@ -123,6 +123,37 @@ describe("importer-postman", () => {
expect(keyOf(before, before?.resources.workspaces[0]?.id)).toBe("collection:collection-id");
});
test("Falls back to the default OAuth 1 signature method for unrecognized ones", () => {
const result = convertPostman(
JSON.stringify({
info: {
name: "OAuth 1 Signature",
schema: "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
},
item: [
{
name: "Request",
request: {
method: "GET",
url: "https://yaak.app",
auth: {
type: "oauth1",
oauth1: [{ key: "signatureMethod", value: "HMAC-SHA384" }],
},
},
},
],
}),
);
expect(result?.resources.httpRequests).toEqual([
expect.objectContaining({
authenticationType: "oauth1",
authentication: { signatureMethod: "HMAC-SHA1" },
}),
]);
});
test("Omits keys for items the collection never identified", () => {
const result = convertPostman(
JSON.stringify({