用于执行呼叫的目的地的身份验证类型配置为 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.
答案 0 :(得分:5)
通过在配置的目标中添加以下属性来解决此问题:
nameIdFormat urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
此处nameIdFormat是附加属性名称。