Skip to content

Commit 9bed355

Browse files
Merge pull request #78 from wavemaker/rest-multipart-auth
Fixed multipart/form-data API with BasicAuth is not working
2 parents 8587422 + acd99b1 commit 9bed355

7 files changed

Lines changed: 9 additions & 11 deletions

File tree

dist/config-import-bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/config-import-bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rest-import-bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rest-import-bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wavemaker/rest-client-ui",
3-
"version": "0.0.22",
3+
"version": "0.0.23",
44
"private": false,
55
"main": "./dist/core/components/RestImport.js",
66
"release": {

src/core/components/RestImport.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ export default function RestImport({ language, restImportConfig }: { language: s
819819
},
820820
withCredentials: true,
821821
useProxy: useProxy,
822+
authDetails: httpAuth === "NONE" ? null : httpAuth === "BASIC" ? { type: "BASIC" } : { type: "OAUTH2", providerId: providerId },
822823
}
823824
} else {
824825
requestConfig = {
@@ -966,10 +967,7 @@ export default function RestImport({ language, restImportConfig }: { language: s
966967
});
967968
}
968969
const data = {
969-
authDetails:
970-
useProxy
971-
? request?.data.authDetails
972-
: request?.authDetails,
970+
authDetails: request?.authDetails,
973971
contentType: contentType,
974972
method: httpMethod,
975973
endpointAddress: apiURL,

0 commit comments

Comments
 (0)