SAP / cloud-sdk-js

Use the SAP Cloud SDK for JavaScript / TypeScript to reduce development effort when building applications on SAP Business Technology Platform that communicate with SAP solutions and services such as SAP S/4HANA Cloud, SAP SuccessFactors, and many others.
Apache License 2.0
161 stars 55 forks source link

executeHttpRequest with destination ClientCertificateAuthentication locally in BAS #4836

Closed aboccassiniavvale closed 4 weeks ago

aboccassiniavvale commented 1 month ago

Good morning,

i was trying to call a subaccount destination with ClientCertificateAuthentication authentication type. image

Additional Properties: forwardAuthCertificates: true HTML5.DynamicDestination: true HTML5.ForwardAuthCertificates: true WebIDEEnabled: true WebIDESystem: test_cred

In my CAP application in NodeJS im using executeHttpRequest : image

If I run locally my CAP in BAS i receive a 401 error. If i deploy the same code works fine.

How can i execute the same http request also in my BAS environment?

Context: im calling the redential Store API with "Mutual TLS Authentication" type.

tomfrenken commented 1 month ago

Hi @aboccassiniavvale,

we've written some documentation regarding the use of the SDK in a BAS environment here.

You can see that in a subsection of this documentation, we mention a workaround for this specific authentication type.

tomfrenken commented 4 weeks ago

If the workaround did not fix your issue, feel free to re-open it.