Closed ptesny closed 1 year ago
Hi @ptesny ,
The SDK currently do not support the HMTL5.ForwardAuthToken
property. We will create a backlog item for this feature request. I cannot promise when this can be done.
Could you please share your time line for the request, is it a blocker for you?
Regards, Deeksha
Hi @deekshas8 , thanks for confirming my findings. Re the timeline question: it is not that much about whether this is a blocker or not; It is about having a consistent behaviour across SAP libraries.
On a side note, if the BTP destination service documentation implied that when having this property the oauth token is supposed to be sent to the target then I'd rather qualify it as a bug... my 2 cents
@deekshas8 , any news on when this is going to be fixed ?
Hey @ptesny, I am glad to let you know that we have implemented the token forwarding for all kinds of destinations now, you will find some more detailed documentation here soon: https://sap.github.io/cloud-sdk/docs/js/features/connectivity/destinations#forwarding-auth-tokens. (For a preview you can take a look at this pull request). You can use both forwardAuthToken
and HTML5.ForwardAuthToken
to activate this behavior.
That's a sibling issue to the already one already reported here The context: using a NoAuthentication destination definition with the
HMTL.ForwardAuthToken
property set to true is a "classic" with SAP Approuter; For instance let's consider the following definition:When used with SAP Approuter in a route the Approuter will read the value of
HMTL.ForwardAuthToken
and if it is true it will forward the current user jwt token to the business url in the destination definition in theauthorization
header.However, cloud-sdk simply ignores the
HMTL.ForwardAuthToken
property; and if the above destination is used in a call to executeHttpRequest that will result in 401 error;Is it by design ?