s4sdk - DestinationAccessException 在 Cloud Foundry 环境中使用 S4 SDK 执行 ODATA V2 调用时出错
问题描述
用于执行调用的目的地被配置为身份验证类型为oAuth2SAMLBearerAssertion,业务用户已经在系统中使用用户 ID、电子邮件和其他基本详细信息。从 SDK 调用执行方法时,出现以下错误:
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.
解决方案
通过在配置的目标中添加以下属性来解决该问题:
nameIdFormat urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
这里的 nameIdFormat 是附加的属性名称。
推荐阅读
- java - Java 中的 Xpath 过滤器仅返回第一个值结果
- animation - 使用关键帧耀斑编辑顶点
- websocket - Dart 将客户端 Socket 升级为 WebSocket
- angularjs - 如何在 ng-repeat 中迭代 2 组数据
- java - 多模块项目中的 Maven 构建中的循环引用
- python-3.x - 基于其他列 Python 3+ Pandas 数据框条件的逐年累积和
- spring - 如何在我的集成流程中调用方法
- android - iText7 PDF 需要时间来生成
- bash - 无法覆盖从源到目标的文件夹
- sql-server - tsql 在每组的第一行显示值