简体   繁体   English

在Cloud Foundry环境中使用S4 SDK执行ODATA V2调用时的DestinationAccessException错误

[英]DestinationAccessException Error in executing ODATA V2 calls using S4 SDK in cloud foundry environment

The destination used for executing calls is configured for authentication type as oAuth2SAMLBearerAssertion , The business user is already onboard in the system with userid, email and other basic details. 用于执行呼叫的目的地的身份验证类型配置为oAuth2SAMLBearerAssertion ,业务用户已经在系统中随身携带了userid,email和其他基本详细信息。 On calling execute method from SDK I get below error: 从SDK调用execute方法时,出现以下错误:

Caused by: com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException: Failed to get authentication headers. Destination service returned error: Provided authorization grant is invalid. Exception was No user found with alias 'name@domain.com' (format: unspecified). For more information, consult the kernel traces or the OAuth 2.0 troubleshooting SAP note 1688545.

The issue is resolved by adding following properties in configured destination: 通过在配置的目标中添加以下属性来解决此问题:

nameIdFormat urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress nameIdFormat urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress

here nameIdFormat is the additional property name. 这里nameIdFormat是附加的属性名称。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在具有 oAuth2SAMLBearerAssertion 身份验证的云代工厂环境中使用 S4Hana SDK 执行 odata 调用 - Unable to execute odata calls using S4Hana SDK in cloud foundry environment with oAuth2SAMLBearerAssertion authentication 使用S / 4HANA Cloud SDK> = 2.0.0执行OData查询时的DestinationAccessException - DestinationAccessException while executing OData Query with S/4HANA Cloud SDK >= 2.0.0 尝试使用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 使用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 无法获取元数据:无法执行 OData 元数据请求。 将 s4sdk 部署到 Cloud Foundry 后出错 - Unable to fetch the metadata : Failed to execute OData Metadata request. error after deploying s4sdk to cloud foundry com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException - com.sap.cloud.sdk.cloudplatform.connectivity.exception.DestinationAccessException 无法使用Cloud SDK在S / 4Hana上通过OData查询BAPI - Can't query BAPI via OData on S/4Hana using Cloud SDK 在 SCP Neo 中使用 S4 SDK 部署我的项目导致错误 - Deploy my project with S4 SDK in SCP Neo lead to error S4 SDK调用需要很长时间并且没有错误地停止 - S4 SDK call takes long time and stopped without error 如何在现有应用程序中使用SAP S / 4HANA Cloud SDK访问OData服务? - How do I access OData service using the SAP S/4HANA Cloud SDK in existing application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM