DestinationAccessException在云代工环境中使用S4 SDK执行ODATA V2调用时出错

Rah*_*dey 1 s4sdk

用于执行呼叫的目的地被配置为认证类型为oAuth2SAMLBearerAssertion,业务用户已经在系统中具有用户ID,电子邮件和其他基本详细信息.从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.
Run Code Online (Sandbox Code Playgroud)

Rah*_*dey 5

通过在配置的目标中添加以下属性来解决此问题:

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

这里nameIdFormat是附加属性名称.