mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-09-16 14:51:37 +02:00
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:
co-authored by
Claude Opus 5
parent
a822cc93d4
commit
31d55440c1
@@ -738,6 +738,254 @@
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Digest",
|
||||
"request": {
|
||||
"auth": {
|
||||
"type": "digest",
|
||||
"digest": [
|
||||
{
|
||||
"key": "algorithm",
|
||||
"value": "MD5",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "username",
|
||||
"value": "digest-user",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "password",
|
||||
"value": "digest-pass",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "realm",
|
||||
"value": "testrealm@yaak.app",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "nonce",
|
||||
"value": "dcd98b7102dd2f0e8b11d0f600bfb0c093",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "nonceCount",
|
||||
"value": "00000001",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "clientNonce",
|
||||
"value": "0a4f113b",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "opaque",
|
||||
"value": "5ccc069c403ebaf9f0171e9517f40e41",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "qop",
|
||||
"value": "auth",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "disableRetryRequest",
|
||||
"value": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
},
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://yaak.app/x/echo",
|
||||
"protocol": "https",
|
||||
"host": ["yaak", "app"],
|
||||
"path": ["x", "echo"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "NTLM",
|
||||
"request": {
|
||||
"auth": {
|
||||
"type": "ntlm",
|
||||
"ntlm": [
|
||||
{
|
||||
"key": "username",
|
||||
"value": "ntlm-user",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "password",
|
||||
"value": "ntlm-pass",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "domain",
|
||||
"value": "CORP",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "workstation",
|
||||
"value": "WORKSTATION-01",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "disableRetryRequest",
|
||||
"value": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
},
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://yaak.app/x/echo",
|
||||
"protocol": "https",
|
||||
"host": ["yaak", "app"],
|
||||
"path": ["x", "echo"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "OAuth 1",
|
||||
"request": {
|
||||
"auth": {
|
||||
"type": "oauth1",
|
||||
"oauth1": [
|
||||
{
|
||||
"key": "consumerKey",
|
||||
"value": "consumer-key",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "consumerSecret",
|
||||
"value": "consumer-secret",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "token",
|
||||
"value": "access-token",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "tokenSecret",
|
||||
"value": "token-secret",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "signatureMethod",
|
||||
"value": "HMAC-SHA256",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "timestamp",
|
||||
"value": "1700000000",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "nonce",
|
||||
"value": "9e6dfada256c",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "version",
|
||||
"value": "1.0",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "realm",
|
||||
"value": "yaak.app",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "callback",
|
||||
"value": "https://yaak.app/x/callback",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "verifier",
|
||||
"value": "verifier-123",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "addParamsToHeader",
|
||||
"value": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"key": "addEmptyParamsToSign",
|
||||
"value": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"key": "includeBodyHash",
|
||||
"value": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
},
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://yaak.app/x/echo",
|
||||
"protocol": "https",
|
||||
"host": ["yaak", "app"],
|
||||
"path": ["x", "echo"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Folder With Auth",
|
||||
"item": [
|
||||
{
|
||||
"name": "Folder Child Inherit",
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://yaak.app/x/echo",
|
||||
"protocol": "https",
|
||||
"host": ["yaak", "app"],
|
||||
"path": ["x", "echo"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
},
|
||||
{
|
||||
"name": "Folder Child No Auth",
|
||||
"request": {
|
||||
"auth": {
|
||||
"type": "noauth"
|
||||
},
|
||||
"method": "GET",
|
||||
"header": [],
|
||||
"url": {
|
||||
"raw": "https://yaak.app/x/echo",
|
||||
"protocol": "https",
|
||||
"host": ["yaak", "app"],
|
||||
"path": ["x", "echo"]
|
||||
}
|
||||
},
|
||||
"response": []
|
||||
}
|
||||
],
|
||||
"auth": {
|
||||
"type": "bearer",
|
||||
"bearer": [
|
||||
{
|
||||
"key": "token",
|
||||
"value": "folder-token",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"auth": {
|
||||
|
||||
+115
-1
@@ -297,9 +297,123 @@
|
||||
"headerPrefix": "Bearer",
|
||||
"location": "header"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "http_request",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_10",
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_0",
|
||||
"folderId": null,
|
||||
"name": "Digest",
|
||||
"method": "GET",
|
||||
"url": "https://yaak.app/x/echo",
|
||||
"urlParameters": [],
|
||||
"body": {},
|
||||
"bodyType": null,
|
||||
"sortPriority": 10,
|
||||
"headers": [],
|
||||
"authenticationType": "digest",
|
||||
"authentication": {
|
||||
"username": "digest-user",
|
||||
"password": "digest-pass",
|
||||
"realm": "testrealm@yaak.app"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "http_request",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_11",
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_0",
|
||||
"folderId": null,
|
||||
"name": "NTLM",
|
||||
"method": "GET",
|
||||
"url": "https://yaak.app/x/echo",
|
||||
"urlParameters": [],
|
||||
"body": {},
|
||||
"bodyType": null,
|
||||
"sortPriority": 11,
|
||||
"headers": [],
|
||||
"authenticationType": "windows",
|
||||
"authentication": {
|
||||
"username": "ntlm-user",
|
||||
"password": "ntlm-pass",
|
||||
"domain": "CORP",
|
||||
"workstation": "WORKSTATION-01"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "http_request",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_12",
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_0",
|
||||
"folderId": null,
|
||||
"name": "OAuth 1",
|
||||
"method": "GET",
|
||||
"url": "https://yaak.app/x/echo",
|
||||
"urlParameters": [],
|
||||
"body": {},
|
||||
"bodyType": null,
|
||||
"sortPriority": 12,
|
||||
"headers": [],
|
||||
"authenticationType": "oauth1",
|
||||
"authentication": {
|
||||
"signatureMethod": "HMAC-SHA256",
|
||||
"consumerKey": "consumer-key",
|
||||
"consumerSecret": "consumer-secret",
|
||||
"tokenKey": "access-token",
|
||||
"tokenSecret": "token-secret",
|
||||
"callback": "https://yaak.app/x/callback",
|
||||
"verifier": "verifier-123",
|
||||
"timestamp": "1700000000",
|
||||
"nonce": "9e6dfada256c",
|
||||
"version": "1.0",
|
||||
"realm": "yaak.app"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "http_request",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_13",
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_0",
|
||||
"folderId": "GENERATE_ID::FOLDER_0",
|
||||
"name": "Folder Child Inherit",
|
||||
"method": "GET",
|
||||
"url": "https://yaak.app/x/echo",
|
||||
"urlParameters": [],
|
||||
"body": {},
|
||||
"bodyType": null,
|
||||
"sortPriority": 14,
|
||||
"headers": [],
|
||||
"authenticationType": null,
|
||||
"authentication": {}
|
||||
},
|
||||
{
|
||||
"model": "http_request",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_14",
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_0",
|
||||
"folderId": "GENERATE_ID::FOLDER_0",
|
||||
"name": "Folder Child No Auth",
|
||||
"method": "GET",
|
||||
"url": "https://yaak.app/x/echo",
|
||||
"urlParameters": [],
|
||||
"body": {},
|
||||
"bodyType": null,
|
||||
"sortPriority": 15,
|
||||
"headers": [],
|
||||
"authenticationType": "none",
|
||||
"authentication": {}
|
||||
}
|
||||
],
|
||||
"folders": []
|
||||
"folders": [
|
||||
{
|
||||
"model": "folder",
|
||||
"sortPriority": 13,
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_0",
|
||||
"id": "GENERATE_ID::FOLDER_0",
|
||||
"name": "Folder With Auth",
|
||||
"folderId": null,
|
||||
"authenticationType": "bearer",
|
||||
"authentication": {
|
||||
"token": "folder-token"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"sourceKeys": {
|
||||
"GENERATE_ID::WORKSPACE_0": "collection:9e6dfada-256c-49ea-a38f-7d1b05b7ca2d"
|
||||
|
||||
+13
-9
@@ -23,9 +23,9 @@
|
||||
"httpRequests": [
|
||||
{
|
||||
"model": "http_request",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_10",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_15",
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_1",
|
||||
"folderId": "GENERATE_ID::FOLDER_1",
|
||||
"folderId": "GENERATE_ID::FOLDER_2",
|
||||
"name": "Request 1",
|
||||
"method": "GET",
|
||||
"url": "",
|
||||
@@ -39,9 +39,9 @@
|
||||
},
|
||||
{
|
||||
"model": "http_request",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_11",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_16",
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_1",
|
||||
"folderId": "GENERATE_ID::FOLDER_0",
|
||||
"folderId": "GENERATE_ID::FOLDER_1",
|
||||
"name": "Request 2",
|
||||
"method": "GET",
|
||||
"url": "",
|
||||
@@ -55,7 +55,7 @@
|
||||
},
|
||||
{
|
||||
"model": "http_request",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_12",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_17",
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_1",
|
||||
"folderId": null,
|
||||
"name": "Request 3",
|
||||
@@ -75,17 +75,21 @@
|
||||
"model": "folder",
|
||||
"sortPriority": 0,
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_1",
|
||||
"id": "GENERATE_ID::FOLDER_0",
|
||||
"id": "GENERATE_ID::FOLDER_1",
|
||||
"name": "Top Folder",
|
||||
"folderId": null
|
||||
"folderId": null,
|
||||
"authenticationType": null,
|
||||
"authentication": {}
|
||||
},
|
||||
{
|
||||
"model": "folder",
|
||||
"sortPriority": 1,
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_1",
|
||||
"id": "GENERATE_ID::FOLDER_1",
|
||||
"id": "GENERATE_ID::FOLDER_2",
|
||||
"name": "Nested Folder",
|
||||
"folderId": "GENERATE_ID::FOLDER_0"
|
||||
"folderId": "GENERATE_ID::FOLDER_1",
|
||||
"authenticationType": null,
|
||||
"authentication": {}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
"httpRequests": [
|
||||
{
|
||||
"model": "http_request",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_13",
|
||||
"id": "GENERATE_ID::HTTP_REQUEST_18",
|
||||
"workspaceId": "GENERATE_ID::WORKSPACE_2",
|
||||
"folderId": null,
|
||||
"name": "Form URL",
|
||||
|
||||
Reference in New Issue
Block a user