Authentication

Establishing who is calling — validating a token, resolving the user and their roles, and making that available for the rest of the request. Taking SAP Cloud Identity Services as the identity interface for everything SAP makes it SAML 2 or OIDC against Identity Authentication rather than XSUAA alone, with the user lifecycle carried by SCIM 2 replication into each service. Authorization is still designed per system after that, since an S/4HANA role and a BTP role collection are different objects.

Overview

SAP SHIPSby design
Node.js →

@sap/cds Validates tokens and builds the security context for XSUAA and IAS, exposing the authenticated user to handlers as req.user.

Java →

com.sap.cds:cds-feature-identity The CAP Java feature that validates OAuth2 tokens from XSUAA and SAP Cloud Identity Services and builds the request's security context from them.

com.sap.cds:cds-feature-xsuaa The CAP Java feature that validated XSUAA-issued JWTs, published up to 2.10.7 before CAP Java 3.0 removed it in favour of com.sap.cds:cds-feature-identity.

Not covered: It stops at the platform identity providers. Anything else — custom IdPs, API keys, machine-to-machine patterns outside BTP — is yours to build. capire's own overview says CAP cannot guarantee end-to-end product security across all application layers by default; the platform's transport security and the application's own code are outside it.

Built into @sap/cds
SourceAuthenticationchecked

Artifacts8

8 of 8 artifacts
ArtifactSignals
CDS plugins2
cds-azure-adAzure AD and Azure AD B2C authentication strategy for CAP
Signals
Functional boundary
cds-common-jwt-supportJWT authentication for CAP without xsuaa or xssec
Signals
Functional boundary
Packages4
@sap/cdsCAP Node.js runtime
Signals
none
@sap/xssecToken validation and security context for XSUAA and IAS
Signals
none
com.sap.cds:cds-feature-identityOAuth2 token validation from XSUAA and SAP Cloud Identity Services
Signals
none
com.sap.cds:cds-feature-xsuaaFormer XSUAA JWT validation for CAP Java, removed in CAP Java 3.0
Signals
none
Services2
Cloud Identity ServicesIdentity Authentication and Identity Provisioning as one tenant
Signals
none
SAP Authorization and Trust Management serviceOAuth server issuing JWTs and holding scopes for BTP apps
Signals
none

Content25

Group by25 of 25 pieces
Piece, what it offers
Integrating and Extending Joule
SAP Architecture Center, SAP Architecture Center, Reference architectureThe reasoningA reference
SAP Joule implementation in an S/4HANA private cloud 3 system landscape
SAP Community, Arunrajj, Blog
Securing CAP Applications with SAP Cloud Identity Services and AMS
SAP Community, gopalanand, BlogThe reasoningRunnable code
Show 18 more
Building Custom Authentication in SAP CAP
SAP Community, Michał Majer, BlogThe reasoningA recipe
Version drift
Joule Studioがリリースされたので早速CAPアプリを自然言語で操作するカスタムスキルを構築してみた
SAP Community, takayuki_tanaka, Blog
Connect to Public Cloud API in Node.js via Authorisation Code
SAP Community, Egan, BlogThe reasoning
Secure Service Consumption Across Hyperscalers
SAP Architecture Center, SAP Architecture Center, Reference architectureThe reasoningA reference
Enabling Authorization Policies in SAP Cloud Identity Services - IAS with AMS/CAP
SAP Community, Yogananda, BlogThe reasoningA recipe
Core changed
CAP for nodejs安全的暴露接口练习
SAP Community, ArthurYang, Blog
Why SAP Cloud Identity Matters for SAP Task Center: It’s About Trust and Global User ID
SAP Community, ivelinakiryakov, Blog
Nice patch SAP! Revisiting your SAP BTP security measures after AI Core vulnerability fix
SAP Community, Martin Pankraz, Blog
XSUAA Based Authentication - Using Managed Approuter
SAP Community, rahul_rajagopal, BlogThe reasoningA recipe
Core changed
SAP Build Process Automation – Use Principal Propagation in Actions sample: CAP Node.js Service
SAP Community, TJe, BlogThe reasoningA recipe
Core changed
SAP CAP JWT Token Flow in code
SAP Community, sandeepmalhotra, BlogThe reasoningRunnable code
Core changed
Architecting Complex Real Life Business Scenario on SAP BTP with ease [ Targeting Multiple backend S/4HANA Systems utilizing Principal Propagation ]
SAP Community, mohit_bansal3, BlogThe reasoning
Part 3: Architecting Complex Real Life Business Scenario on SAP BTP with ease [ Targeting Multiple backend S/4HANA Systems utilizing Principal Propagation ]
SAP Community, mohit_bansal3, part 3 of 3, BlogThe reasoningA recipe
Core changed
SAP Business Technology Platform: Authorization and Trust Management Service
SAP Community, SekhuteTK, Blog
Execute [OAuth2 client credentials] protected REST request with SAP CAP Application
SAP Community, Lachmish, BlogThe reasoningA recipe
Core changed
Understanding security approaches in SAP CAP using XSUAA in node.js flavor and MTA.
SAP Community, balbinosoares, BlogThe reasoningA recipeRunnable code
Core changed
Evolving the identity lifecycle for an AI-first future
SAP TechEd — session catalogue, TalkThe reasoning
How SAP secures enterprise AI agents with identity propagation
SAP TechEd — session catalogue, Gunnar Kosche, TalkThe reasoning
SAP Business Technology Platform: Authorization and Trust Management Service
SAP Community, SekhuteTK, Blog
Secure Service Consumption Across Hyperscalers
SAP Architecture Center, SAP Architecture Center, Reference architectureThe reasoningA reference
Why SAP Cloud Identity Matters for SAP Task Center: It’s About Trust and Global User ID
SAP Community, ivelinakiryakov, Blog
Evolving the identity lifecycle for an AI-first future
SAP TechEd — session catalogue, TalkThe reasoning
Show 5 more
How SAP secures enterprise AI agents with identity propagation
SAP TechEd — session catalogue, Gunnar Kosche, TalkThe reasoning
How to Access SAP Cloud Logging Service Dashboards Using IAS SAML Authentication
SAP Community, Umezuki, Blog
Road map: SAP Business AI Platform security and SAP Cloud Identity Services
SAP TechEd — session catalogue, TalkThe reasoning
What’s next for the core platform capabilities of SAP Business AI Platform
SAP TechEd — session catalogue, TalkThe reasoning
Use Free Tier to Subscribe to SAP Document AI Basic UI
SAP Developer Center, Juliana Morais, TutorialA recipe

Seen working3

ArtifactSignals
Samples3
auth-samplesCAP services and a UI for trying role restrictions with mock users
No license
cap-ams-a2aApp-to-app setups between CAP Java and CAP Node.js under AMS and IAS
No license
cap-azure-ad-b2cAuthenticating a CAP service against Azure AD B2C
none

Details

What changed — and what it makes stale1
CAP Java 3.0.1, CAP, Java

Before CAP Java 3.0, XSUAA token validation lived in its own cds-feature-xsuaa module, separate from IAS support. The 3.0 release removed cds-feature-xsuaa and unified XSUAA and IAS behind cds-feature-identity, the module that now provides both.

Makes stale:

Guidance to add cds-feature-xsuaa as a Maven dependency for authentication in a CAP Java project. It was removed in the 3.0 line, mid-2024 — cds-feature-identity is the replacement for XSUAA as well as IAS.

Coverage
statecore and community, CAP
assessed
relationshipnarrow by design
also inBTP/BAIP, ABAP, UI5
For your agent
Ref
capability:authentication
JSON
/capabilities/authentication.json
MCP
Connecting an agent