简体   繁体   English

无法在具有 oAuth2SAMLBearerAssertion 身份验证的云代工厂环境中使用 S4Hana SDK 执行 odata 调用

[英]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.

相关问题 如何使用 OAuth2SAMLBearerAssertion 将 Neo SCP 中的目的地设置为 Cloud Foundry 服务? - How to setup destination in Neo SCP to Cloud Foundry service using OAuth2SAMLBearerAssertion? 在Cloud Foundry环境中使用S4 SDK执行ODATA V2调用时的DestinationAccessException错误 - DestinationAccessException Error in executing ODATA V2 calls using S4 SDK in cloud foundry environment 无法获取元数据:无法执行 OData 元数据请求。 将 s4sdk 部署到 Cloud Foundry 后出错 - Unable to fetch the metadata : Failed to execute OData Metadata request. error after deploying s4sdk to cloud foundry 尝试使用S / 4HANA Cloud SDK从S / 4HANA Cloud创建包含数据源的自定义OData v2服务 - Trying to create custom OData v2 service with data source from S/4HANA Cloud using S/4HANA Cloud SDK 无法访问com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces中的私有类 - Unable to access private classes in com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces 如何在现有应用程序中使用SAP S / 4HANA Cloud SDK访问OData服务? - How do I access OData service using the SAP S/4HANA Cloud SDK in existing application? 使用SAP APM和S / 4HANA Cloud SDK时,OData导航会返回异常 - OData navigation returns exception when using SAP APM and S/4HANA Cloud SDK 无法使用Cloud SDK在S / 4Hana上通过OData查询BAPI - Can't query BAPI via OData on S/4Hana using Cloud SDK 使用S / 4HANA Cloud SDK:web.xml错误,使用来自S / 4HANA Cloud的数据源创建自定义OData v2服务 - Create custom OData v2 service with data source from S/4HANA Cloud using S/4HANA Cloud SDK: web.xml error S / 4HANA Cloud SDK:com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces不存在 - S/4HANA Cloud SDK :com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces does not exist
相关标签
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM