Symptom
You have created a OAuth setup from BTP to BYD system using the blog https://blogs.sap.com/2018/07/13/configure-oauth-2.0-for-sap-bydesign- odata-services/ and the connectivity fails with an error when ever you peform a connection test.
Environment
- SAP Business ByDesign
- SAP BTP
Reproducing the Issue
- Log into BTP system and navigate to destination under connectivity and perform connection test for TEST-SSO.
- Error observed.
- Failure reason: "Unexpected Token Service response code. Token Service error response: "The provided authorization grant is invalid.
- Exception was: There is no trust between entities and https://eu2.hana.ondemand.com/services in client. For more information consult the kernel traces or the OAuth 2.0 trouble shooting SAP note 1688545.".
- Check the configuration or contact Token Service owner." Received status code: "400"
Cause
It may have misconfigured, so the trust is not established with https://eu2.hana.ondemand.com/services from ByD in OAuth Identity provider
Resolution
Correct the data and reimport the meta data file
See Also
SAP note 1688545
https://blogs.sap.com/2018/07/13/configure-oauth-2.0-for-sap-bydesign-odata-services
Keywords
OAuth setup from BTP to BYD, connectivity fails with an error, Unexpected Token Service response code. , KBA , oauth setup from btp to byd , unexpected token service response code , SRD-CC-SEC , Security , Problem