on 02-13-2020 1:28 PM
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? 😄
Thanks in advance,
Vincent
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marc,
no, this won't help you when it comes to SAP S/4HANA Cloud. There is an execellent blog post by my colleague Marco on how to configure principal propagation with S/4HANA Cloud. However, I see that you've already commented on this blog post. Are there problems that you're currently facing with principal propagation?
Best regards,
Dennis
Thank you very much Dennis!
I tried to implement principal propagation a few months ago with a java app, but I didn't get success and I set basic authentication.
Now I'm back to it, but trying to implement it in a nodejs CAP based application. I will follow the blog again and in case of any problem, I will let you know.
Kind regards,
Marc
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.