BlogBlogtypeA post on somebody's own site or a community platform. Nobody edits it after publication, so it dates from the day it was written.See every one →SAP Community

CAP for nodejs安全的暴露接口练习

Starting from the risk-management sample, the walkthrough adds an open ExternalAPI service beside the existing RiskService, then moves every security annotation into a separate service-auth.cds file: @requires: authenticated-user on one entity, role-scoped @restrict grants for RiskViewer and RiskManager on another. It tests the unprotected action locally with cds watch, calling it from Postman with the session cookie read out of SAP Business Application Studio's preview tab. It then deploys to BTP and reads Risks with a client-credentials OAuth token fetched from a service key of the cpapp-auth instance, after changing that entity's READ grant from RiskViewer to authenticated-user, which the post, citing capire's CDS-based Authorization page, describes as a grant for a technical user integrating systems rather than for access from a front end.

Where it sits

Explains
AuthorizationCAPAuthorizationcapabilityDeciding 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.AuthenticationCAPAuthenticationcapabilityEstablishing who is calling: validating credentials or tokens, resolving the user, and making that identity available to the application. [Authorization](capability:authorization) decides what that identity may do; [identity provisioning](capability:identity-provisioning) manages its lifecycle across systems.Local developmentCAPLocal developmentcapabilityRunning the whole stack on a laptop against real bindings — the service, the UI and the routing in front of it — without deploying to see a change.
Since then
Authorization has changed twice since this was published, most recently in CAP Java 3.7.1, 2025-01-30
Source
reachable

Who is behind it

ArthurYangauthor

Before you read it

ApplicabilityCore changedAuthorization has changed twice since this was published, most recently in CAP Java 3.7.1, 2025-01-30.

This is a derived prompt to re-check the work, not a claim that the work is wrong. Exact stale statements are recorded separately after editorial review.

Properties

About this work

declared and crawled
Published
declared
Published on
declared
Views
crawled
829

For authorization

on the edge
Applies in
authored
cap

For authentication

on the edge
Applies in
authored
cap

For local-development

on the edge
Applies in
authored
cap

More on this67

Group by67 of 67 pieces
Piece, what it offersStill applies
Also explainingAuthorization67
Securing a CAP Node.js App with SAP AMS on BTP Cloud Foundry
SAP Community, Jacky LiuThe reasoningA recipe
nothing recorded
Effective from June 30th 2026 - XSUAA Deprecation of GET Method for OAuth Token Retrieval
SAP Community, Yogananda
nothing recorded
From XSUAA to AMS: Architecting S4HANA CAP Extensions with Policy-Based Authorization
SAP Community, Avinash VaidyaThe reasoningA recipeRunnable code
nothing recorded
How to Restrict CRUD Operations in SAP CAPM Using @Capabilities, @readonly and Test APIs with .http
SAP Community, DeepaRaghoThe reasoningA recipeRunnable code
nothing recorded
Fullstack CAP Application with HANA Cloud (Decoupled Architecture) [Part-1]
SAP Community, sanjucsThe reasoningA recipeRunnable code
Core changed
Dynamic authorisation with user attributes in SAP CAP and AMS
SAP Community, pedro_iranzoThe reasoningA recipeRunnable code
nothing recorded
Agentic AI on BTP: a Single Agent with LangGraph
SAP Community, Wouter Lemaire
nothing recorded
Integrating and Extending Joule
SAP Architecture Center, SAP Architecture CenterThe reasoningA reference
nothing recorded
SAP BTP XSUAA Security Configuration Comparison: Attribute-Based vs. Authority-Based Approaches
SAP Community, rajeshkputumbakaThe reasoningRunnable code
nothing recorded
SAP Joule implementation in an S/4HANA private cloud 3 system landscape
SAP Community, Arunrajj
nothing recorded
Securing CAP Applications with SAP Cloud Identity Services and AMS
SAP Community, gopalanandThe reasoningRunnable code
nothing recorded
Building Custom Authentication in SAP CAP
SAP Community, Michał MajerThe reasoningA recipe
Version drift
Establishing connectivity between a local CAP runtime and on-premise systems
SAP Community, vLeonkevThe reasoningA recipeRunnable code
nothing recorded
Creating a Hybrid CAP (Node.js) Profile with PostgreSQL on BTP from Business Application Studio
SAP Community, valentincadartThe reasoningRunnable code
Core changed
CAP with Local App Previews – Tips for Smooth Development
SAP Community, MioYasutake
nothing recorded
How to Call a Remote OData API from Your Local CAP Java Project
SAP Community, UmezukiThe reasoningRunnable code
nothing recorded
Joule Studioがリリースされたので早速CAPアプリを自然言語で操作するカスタムスキルを構築してみた
SAP Community, takayuki_tanaka
nothing recorded
How to fix npm error notarget @sap/hdi-deploy when you create a CAP app in BAS
SAP Community, Ryota_Ito
nothing recorded
Connect to Public Cloud API in Node.js via Authorisation Code
SAP Community, EganThe reasoning
nothing recorded
Securing SAP CAP Applications: XSUAA, Roles, and Authorization Best Practices
SAP Community, Soumya-Pirlamarla
nothing recorded
Remote Debugging of SAP CAPM App - Nodejs
SAP Community, darshanv23The reasoningA recipe
nothing recorded
Secure Service Consumption Across Hyperscalers
SAP Architecture Center, SAP Architecture CenterThe reasoningA reference
nothing recorded
SAP CAP Lessons Learned: SQLite is single threaded, HANA is not
SAP Community, LucasMagriniRigo
nothing recorded
CAP-JAVA implementation for Authorization Management Service (AMS)
SAP Community, Harvey_Yao
nothing recorded
Enabling Authorization Policies in SAP Cloud Identity Services - IAS with AMS/CAP
SAP Community, YoganandaThe reasoningA recipe
Core changed
Why SAP Cloud Identity Matters for SAP Task Center: It’s About Trust and Global User ID
SAP Community, ivelinakiryakov
nothing recorded
XSUAA Local Testing
SAP Community, ManasaManuThe reasoningA recipeRunnable code
Core changed
Nice patch SAP! Revisiting your SAP BTP security measures after AI Core vulnerability fix
SAP Community, Martin Pankraz
nothing recorded
Avoid design time CAP server restarts when maintaining local data files
SAP Community, DJ AdamsThe reasoningRunnable code
Core changed
Develop CAP Project with Lazyvim in Docker
SAP Community, Helmut TammenThe reasoning
nothing recorded
SAP CAP(Cloud Application Programming)开发框架概述
SAP Community, ArthurYang
nothing recorded
cds-launchpad-plugin supercharged & ready for the future - CAP Plugin, UI5 Tooling support & Async Launchpad
SAP Community, Geert-Jan KlapsThe reasoningRunnable code
nothing recorded
CAP PostgreSql setup local debugging using Docker - Part 2
SAP Community, ramonlee5A recipe
Core changed
SAP Tech Bytes: Using the SAP Approuter at dev time - a full-stack journey with UI5 and CAP
SAP Community, Nico SchoenteichThe reasoningRunnable code
New majors
XSUAA Based Authentication - Using Managed Approuter
SAP Community, rahul_rajagopalThe reasoningA recipe
Core changed
SAP Build Process Automation – Use Principal Propagation in Actions sample: CAP Node.js Service
SAP Community, TJeThe reasoningA recipe
Core changed
CAP Typescript + Fiori Typescript + live reload Initial app setup
SAP Community, Christophe_SWThe reasoningRunnable code
Core changed
SAP CAP JWT Token Flow in code
SAP Community, sandeepmalhotraThe reasoningRunnable code
Core changed
Surviving and Thriving with the SAP Cloud Application Programming Model: Local development hurdles
SAP Community, maxstreifeneder
nothing recorded
[Part - 1] Enrich CAP based Services with Behaviors using Annotations
SAP Community, Ajit Kumar Panda
nothing recorded
SAP Job Scheduling Service + Cloud Application Programming Model application (CAP) + SAP Authorization and Trust Management Service (XSUAA)
SAP Community, former_member412792The reasoning
nothing recorded
BTP CAP : How to Connect to Remote Services Locally in CAP Application
SAP Community, showkath_naseemThe reasoning
nothing recorded
Architecting Complex Real Life Business Scenario on SAP BTP with ease [ Targeting Multiple backend S/4HANA Systems utilizing Principal Propagation ]
SAP Community, mohit_bansal3The reasoning
nothing recorded
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 3The reasoningA recipe
Core changed
加速开发和部署的CAP CDS和Fiori一些实用命令
SAP Community, TiaXuThe reasoningA recipeRunnable code
Core changed
Useful CAP CDS and Fiori Commands to Accelerate Development and Deployment
SAP Community, TiaXu
nothing recorded
Qualtrics integration with domain based authorization in CAP project on HANA cloud
SAP Community, former_member69893The reasoningRunnable code
Core changed
An approach to secure multiple integrated SAP CAP java applications with a common XSUAA service instance
SAP Community, sreanik_dhanyakumar2The reasoning
nothing recorded
SAP Business Technology Platform: Authorization and Trust Management Service
SAP Community, SekhuteTK
nothing recorded
How to get authenticated user information with CAP in three different ways – Using the XSUAA API
SAP Community, ale_biagiThe reasoning
nothing recorded
Why developers should care about credential-types for xsuaa?
SAP Community, former_member2839The reasoningA recipeRunnable code
Core changed
Execute [OAuth2 client credentials] protected REST request with SAP CAP Application
SAP Community, LachmishThe reasoningA recipe
Core changed
A Fiori Launchpad Sandbox for all your CAP-based projects - Overview
SAP Community, Geert-Jan KlapsThe reasoningA recipeRunnable code
nothing recorded
A Fiori Launchpad Sandbox for all your CAP-based projects – Sample project setup
SAP Community, Geert-Jan KlapsThe reasoningRunnable code
nothing recorded
Insights of Cloud SDK, CAP, XSUAA, SSH and other BTP topics from 2021
SAP Community, dr_vupThe reasoning
nothing recorded
Use Tasks in Visual Studio Code to start a cds service, an approuter and launch a browser in one go
SAP Community, pieterjanssensThe reasoningRunnable code
Core changed
SAP Cloud Application Programming Model(CAP):概要およびデモ - Part 1
SAP Community, rasai, part 1 of 2
nothing recorded
Running CAP Node Applications in SAP Business Application Studio
SAP Community, liat_bThe reasoning
nothing recorded
Use SCP CF Destination service in NodeJs locally
SAP Community, WouterLemaireThe reasoningRunnable code
Core changed
Understanding security approaches in SAP CAP using XSUAA in node.js flavor and MTA.
SAP Community, balbinosoaresThe reasoningA recipeRunnable code
Core changed
Develop SAP CAP apps inside a VS Code Docker Container
SAP Community, Helmut TammenThe reasoningRunnable code
Core changed
Set up VS Code on Chrome OS for local Application Programming Model development
SAP Community, DJ AdamsThe reasoningRunnable code
Core changed
How SAP secures enterprise AI agents with identity propagation
SAP TechEd — session catalogue, Gunnar KoscheThe reasoning
nothing recorded
Evolving the identity lifecycle for an AI-first future
SAP TechEd — session catalogueThe reasoning
nothing recorded
Create a Simple CAP Application and Explore the Defaults
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Get an introduction to the cds REPL
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded
Set up a self-contained development environment for CAP Node.js
SAP Developer Center, SAPThe reasoningA recipe
nothing recorded

Details

Graph5 edges
POINTS OUT →
explainsAuthorizationcapability, core and community
explainsAuthenticationcapability, core and community
explainsLocal developmentcapability, core and community
published onSAP Communitypublishing source
discovered viaSAP Communitycap-tag
Source
Type
blog
Published on
Host
community.sap.com
First seen
History1
  • Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
Ref
content:cap-for-nodejs
JSON
/content/cap-for-nodejs.json
MCP
Connecting an agent