[英]Unable to execute odata calls using S4Hana SDK in cloud foundry environment with oAuth2SAMLBearerAssertion authentication
I'm trying to connect to s4 hana system using s4 sdk.我正在尝试使用 s4 sdk 连接到 s4 hana 系统。 While executing calls via .execute() method in cloud foundry environment, i see below error logs:
在云代工厂环境中通过 .execute() 方法执行调用时,我看到以下错误日志:
Caused by: com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException: Failed to get authentication headers. Destination service returned error: Missing private and public key for subaccount ******-****-****-***-*******.
Note: I've already configured trust between subaccount and S4Hana system and created respective communication and business user.注意:我已经在子账户和 S4Hana 系统之间配置了信任并创建了各自的通信和业务用户。 The associated authentication method used in the destination is oAuth2SamlBearerAssertion.
目标中使用的关联身份验证方法是 oAuth2SamlBearerAssertion。 Note : The call executes fine in both local and cloud foundry environment with basic authentication.
注意:调用在具有基本身份验证的本地和云代工厂环境中都可以正常执行。
Can someone please suggest what is wrong here.有人可以建议这里有什么问题。
As correctly pointed out by @Dennis H there was a problem in trust configuration between my subaccount and S4 Hana system, the configuration wrong in my case :正如@Dennis H 正确指出的那样,我的子账户和 S4 Hana 系统之间的信任配置存在问题,在我的情况下配置错误:
-> The certificate I downloaded for trust was using this URL: -> 我为信任而下载的证书使用的是这个 URL:
https://.authentication.eu10.hana.ondemand.com/saml/metadata https://.authentication.eu10.hana.ondemand.com/saml/metadata
This is incorrect we need to get the certificate from download trust button in destination tab at subaccount level这是不正确的,我们需要从子帐户级别的目标选项卡中的下载信任按钮获取证书
-> Provider name was incorrect in the communication system. -> 通信系统中的提供商名称不正确。
Thanks for your response. 感谢您的答复。
We are also facing the similar kind of issue. 我们也面临着类似的问题。 We did follow your answers, but still unable to get this worked.
我们确实按照您的回答进行操作,但仍然无法解决问题。 Any inputs will be valuable.
任何投入都是有价值的。
Thanks, Lakshmi 谢谢,拉克希米
We are developing a side-by-side extension app and deploying it to CF.我们正在开发一个并行扩展应用程序并将其部署到 CF。 Our app is trying to connect to S4HANA cloud system using oAUTH2SAMLBEARERASSERTION.
我们的应用程序正在尝试使用 oAUTH2SAMLBEARERASSERTION 连接到 S4HANA 云系统。 But facing issues while doing it.
但是在做的时候会遇到问题。 We are getting below error in logs.
我们在日志中收到以下错误。 Please be noted, we are able to connect to S4HANA Cloud using basic auth.
请注意,我们可以使用基本身份验证连接到 S4HANA Cloud。
com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException: Failed to access the configuration of destination com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException:无法访问目的地的配置
Our destination parameters look as attached screenshot enter image description here我们的目标参数看起来像附加的屏幕截图在此处输入图像描述
Thank you.谢谢你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.