SAP Knowledge Base Article - Public

3295608 - SSO Connection Between SAP ByD and SAP BTP to use Odata Services in SAPUI5 Fails

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

  1. SAP Business ByDesign
  2. SAP BTP 

Reproducing the Issue

  1. Log into BTP system and navigate to destination under connectivity and perform connection test for  TEST-SSO.
  2. Error observed.
  3. Failure reason: "Unexpected Token Service response code. Token Service error response: "The provided authorization grant is invalid.
  4. 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.".
  5. 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

Product

SAP Business ByDesign all versions