SAP Knowledge Base Article - Preview

3836387 - OAuth Client Secret Exposed in the Spartacus Storefront When Integrated with SAP Commerce and CDC

Symptom

  • The OAuth client_id and client_secret are exposed in the frontend of a Spartacus storefront integrated with SAP Commerce Cloud and SAP Customer Data Cloud (CDC).
  • The client_secret can be found in the browser's developer tools.


Read more...

Environment

  • SAP Commerce Cloud, composable storefront
  • SAP Commerce Cloud Spartacus

Product

SAP Commerce Cloud, composable storefront all versions

Keywords

OAuth, PKCE, Authorization Code Flow, public client, client_secret exposure, CORS wildcard, Access-Control-Allow-Origin, token invalid_request, OAuth code parameter, resourceserver, authorizationserver, ROLE_CLIENT, ROLE_TRUSTED_CLIENT, IDOR, OCC , KBA , CEC-SPA , SAP Commerce Cloud Spartacus , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.