SAP / cloud-sdk-java

Use the SAP Cloud SDK for Java 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
22 stars 14 forks source link

Replacement for DestinationServiceTokenExchangeStrategy.LOOKUP_ONLY #570

Closed ErwanAirone closed 2 months ago

ErwanAirone commented 2 months ago

Issue Description

With the deprecation of DestinationServiceTokenExchangeStrategy.LOOKUP_ONLY, fetching a destination always retrieves the authencation token, this leads to destination not found error when the destination needs to be fetched with invalid credentials.

Important information:

Impact / Priority

Affected development phase: Production Customers are now seeing destination not found when the token can not be fetched successfuly by the cloud sdk.

Impact: Inconvenience

Project Details


MatKuhr commented 2 months ago

For only reading destination properties, without performing auth flows, please follow this documentation:

Collection<DestinationProperties> allDestinationProperties = service.getAllDestinationProperties();
DestinationProperties individualProperties = service.getDestinationProperties("my-destination");
ErwanAirone commented 2 months ago

Alternative proposed. Thank you.