Skip to Content

SAP Cloud SDK - Principal Propogation & Cloud Connector

Hello All,

We have been using the SAP Cloud SDK with a service user to our on-premise backend, so far so good.
However now we are trying to enable Principal Propagation.

So we set the destination to On Premise and the Authentication method to PrincipalPropagation.

However this causes the Execute to fail, with the thrown error:

Failed to build authorization header for the given destination. Make sure to either correctly configure your destination for principal propagation, provide both a username and a password or select "NoAuthentication" in your destination configuration.

I found that this came from buildAuthHeader in the authorization-header.js as the case 'PrincipalPropagation' isn't covered.
Is it possible to use PrincipalPropagation with the SAP Cloud SDK to an On Premise system? And if so, what am I missing? :D

Thanks in advance,


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Apr 03 at 09:24 AM

    I also put this as an answer, because in a comment this could be overseen. We fixed the bug in the SDK that now also with AuthenticationType "PrincipalPropagation" the user should be propagated. The old work around using "NoAuthentication" keeps working in the versions 1.X.Y of the SDK. We plan to remove this from version 2.X.Y onwards.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 13 at 04:09 PM

    Principal propagation with SAP S/4HANA OnPremise is currently slightly buggy. You can work around it by changing the AuthenticationType from "PrincipalPropagation" to "NoAuthentication" and keeping the rest of the configuration as is.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.