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
162 stars 56 forks source link

chore: Improve client credentials cache and tenant retrieval #4774

Closed marikaner closed 3 months ago

marikaner commented 3 months ago

The client credentials cache now stores credentials per tenant id and client id instead of tenant aware authentication url and client id. JWT retrieval checks for zid and if not available for app_tid. Tenant retrieval for the provider checks the identity and destination service bindings before giving up.

Relates to SAP/cloud-sdk-backlog#1217 and SAP/cloud-sdk-backlog#1219.