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