SAP Knowledge Base Article - Public

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


You have created a OAuth setup from BTP to BYD system using the blog  odata-services/ and the connectivity fails with an error when ever you peform a connection test.


  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 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"


It may have misconfigured, so the trust is not established with from ByD in OAuth Identity provider


 Correct the data and reimport the meta data file

See Also

 SAP note 1688545


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


SAP Business ByDesign all versions