Not able to call getDestinationFromDestinationService in multitenant CAP scenario

Aperta
#3,067 11 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@gpretto ci sta già lavorando.

Dal 30/10/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript

Direzione di ricerca

Inizia tracciando getDestinationFromDestinationService e la relativa opzione alwaysProvider nel TypeScript SDK, quindi riproduci la chiamata da provider-service a provider-service nello scenario multitenant descritto. Il lavoro è completato quando, con alwaysProvider impostato, le credenziali della provider destination non vengono utilizzate sull’endpoint di autenticazione del subscriber e la chiamata alla destination ha esito positivo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug CAP tok:pd5

I am not able to call serviceB from serviceA (both in a provider account) using CAP with multitenancy enabled.

Scenario:
Subscriber Account A -- calls --> ProviderServiceA -- calls (using destination) --> ProviderServiceB.

Internally getDestinationFromDestinationService gets called with the option "alwaysProvider".

The problem here seems to be, that even when "alwaysProvider" is set, the method getDestinationFromDestinationService will still try to fetch a token for the subscriber, using the following information:

  • auth endpoint: subscriber auth endpoint (fetched from user token coming from subscriber)
  • credentials of destination-service: fetched from provider destination service binding

So it tries to authenticate using the provider destination credentials against the subscriber auth endpoint. This of course does not work and the method fails with an error.

I would expect, if "alwaysProvider" is set, that it does not even try to get a subscriber token first, since this will always fail.

Am I missing something here, or is this maybe a bug?

Lingua principale
TypeScript
Stelle
221
Fork
79
Merge medio
13h 27m
PR unite (30g)
22

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SAP/cloud-sdk-js

Tutte le issue di SAP/cloud-sdk-js

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.