Open BastiInnovation opened 1 month ago
Hi @BastiInnovation, I agree that the issue you are facing is likely caused by the referenced PR, however, after reviewing our code I do not see any change that would lead to your issue.
The warning you are receiving indicates that the tenant look-up is failing.
Since you provide a jwt in your call we check for 3 different properties:
zid
, app_tid
, ext_atr.zdn
, and iss
in that order.
The only difference is that we now check for the zdn
property ...
Could you debug what your JWT contains and perhaps share a redacted version with us?
Describe the bug After updating @sap-cloud-sdk/connectivity from version 3.17.0 to 3.18.0. The destination from
getDestinationFromDestinationService()
is null. In cloud foundry log i received a warning: "Cannot create cache key for client credentials token cache. The given tenant id is undefined".To Reproduce
Expected behavior I expected to receive the destination from
getDestination()
because the token fromfetchToken()
is the right one. I think there is a relation to 4799, but I found non solution in the related documentation.Used Versions: node version: v20.11.0 sap-cloud-sdk/connectivity: v3.18.0 sap-cloud-sdk/util: v3.18.0 sap/cds: v7.9.4 sap/xssec: v3.6.1