ERPClimb logoERPClimb
Security Deep Dive
Integration Suite & Cloud Integration (CPI)advanced 5 min read

CPI Security Part 2: OAuth to Receivers and Principal Propagation

Preview · a free account unlocks the full lesson

Key takeaway

Authenticate Cloud Integration to receivers: OAuth2 client credentials and SAML bearer credentials, token handling, principal propagation to on-premise systems via Cloud Connector, and when user identity really matters.

Visual overview

CPI Security Part 2: OAuth to Receivers and Principal Propagation — learning sheetFlow: Receiver requirement → OAuth security material → Token handling → Principal propagation via Cloud Connector → Least-privilege technical users. Key ideas: OAUTH CLIENT CREDENTIALS; OTHER OAUTH FLOWS; PRINCIPAL PROPAGATION; TECHNICAL USERS. Watch out: Technical users with broad authorizations become a major security risk.ERPClimb.com / CPI / LESSON 11/15 / LEARNING SHEETCPI Security Part 2: OAuth to Receivers and PrincipalPropagation1 · HOW IT FLOWS1Receiverrequirement2OAuthsecuritymaterial3Tokenhandling4Principalpropagationvia Cloud…5Least-privilegetechnicalusers2 · KEY IDEAS EXPLAINEDOauth Client CredentialsMany cloud APIs require OAuth2. In CloudIntegration you deploy OAuth2 client credentialswith token URL, client ID and secret as security…Other Oauth FlowsSome scenarios use OAuth2 SAML bearer assertionsto obtain tokens on behalf of a user, orauthorization code flows configured as security…Principal PropagationWhen a user action in a cloud app triggers aniFlow that calls on-premise S/4HANA, principalpropagation can pass the user's identity: Cloud…Technical UsersFor background integrations, technical users arenormal. Give them only the authorizations theinterface needs, prevent dialog logon, rotate…3 · REMEMBER · WATCH OUTRememberOAuth2 client credentials are deployed as security material and usedby receiver adapters.Tokens are fetched and cached automatically by supported adapters.Principal propagation passes the original user's identity toon-premise systems through Cloud Connector.!Watch outTechnical users with broadauthorizations become a majorsecurity risk.4 · IN A REAL PROJECTAn audit found that one integration technical user had broad authorizations in S/4HANA across manyapplications. The team split it into interface-specific users with minimal roles, and introduced principalpropagation for a self-service scenario where postings had to be traceable to employees.Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Part 1 covered inbound security. Part 2 covers outbound authentication.

OAuth client credentials: many cloud APIs require OAuth2. In Cloud Integration you deploy OAuth2 client credentials, token URL, client ID and secret, as security material, then reference that material in HTTP, OData or SOAP receiver adapters. The runtime fetches tokens and refreshes them automatically, so the iFlow logic itself never has to handle token lifecycle.

Other OAuth flows: some scenarios use OAuth2 SAML bearer assertions to obtain a token on behalf of a specific user, or an authorization code flow configured as security material. Which flow to use is driven by what the receiver supports and what the security team approves, not by developer preference.

Principal propagation: when a user's action in a cloud app triggers an iFlow that calls on-premise S/4HANA, principal propagation can pass that user's identity through the chain: Cloud Integration forwards the identity, Cloud Connector issues a short-lived certificate for that specific user, and S/4HANA maps the certificate to the real user. Authorizations on the S/4HANA side then apply to that user, not to a generic technical account, which matters for both security and audit trails.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.