CPI Security Part 2: OAuth to Receivers and Principal Propagation
Preview · a free account unlocks the full lesson
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
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.
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
More lessons in this topic
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.