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. On calling execute method from SDK I get below error:
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
here nameIdFormat is the additional property name.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.