CapabilitySecurity & ComplianceNode.js, read from its artifacts

Authorization

Deciding who may read or change what, at service, entity and instance level — role checks, forwarded user context, and restrictions evaluated as query filters rather than after the fact.

Showing artifacts, examples and content with confirmed Node.js applicability. View All CAP

Overview

SAP SHIPS
@sap/ams-dev

The development-time half of an AMS authorization model: it compiles the DCL policies the decision controller evaluates, and under ias authentication pushes them to the AMS server from the SAP Identity service binding.

@sap/ams

Evaluates AMS authorization policies in the application process for users authenticated through SAP Cloud Identity Services, answering each privilege check as granted, denied or conditional, and filtering the resources a request reaches on the attribute conditions AMS computes. In a CAP project it also generates the base DCL policies for the roles the @requires and @restrict annotations already name.

Source@sap/ams 3.9.0 — READMEchecked
@sap/cds

Evaluates @requires and @restrict from the model at runtime, including instance-based restrictions expressed as where-clauses.

SourceAuthorization and Access Controlchecked

A Node.js coverage assessment has not been written. View all flavors

THE COMMUNITY ADDS
cds-entra-id

Translates Entra ID group claims and app roles into cds.User roles, so the model's @requires and @restrict annotations are evaluated against an Azure identity.

Sourcevobu/cds-entra-id — READMEchecked

A Node.js coverage assessment has not been written. View all flavors

Artifacts6

6 of 6 artifacts
ArtifactSignals
Build tools1
@sap/ams-devCompiler from AMS DCL policies to DCN for local runs and tests
Signals
Functional boundary
CDS plugins2
@sap/amsAuthorization from DCL policies for Node.js apps on SAP Cloud Identity
Signals
none
cds-entra-idMaps Microsoft Entra ID groups and app roles onto cds.User roles
Signals
Quiet+1
Packages2
@sap/cdsCAP Node.js runtime
Signals
none
cap-toolkitUtility bundle for CAP handlers: builder, roles, validation, queries
Signals
Functional boundary
Services1
SAP Authorization and Trust Management serviceOAuth server issuing JWTs and holding scopes for BTP apps
Signals
none

Seen working5

ArtifactSignals
Samples5
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
SAP-samples/btp-secure-developmentOWASP Top 10 workshop exploiting and fixing flaws in a CAP Node.js app
none
SAP-samples/e-mobility-driver-appCAP-based PWA for EV drivers proxying SAP E-Mobility OData APIs
none
teched2025-XP260TechEd 2025 workshop on OWASP Top 10 risks in CAP applications
none

Details

Coverage
statecore and community, CAP, Node.js, derived
also inBTP/BAIP, ABAP
For your agent
Ref
capability:authorization
JSON
/capabilities/authorization.json
MCP
Connecting an agent