ERPClimb logoERPClimb
Login
All topics
SAP_CAPintermediate

Authorization and identity

Define role restrictions and validate JWT claims per tenant

Overview

Define role restrictions and validate JWT claims per tenant

Lessons in this topic

  • Authorization and identity — SAP Guided TutorialSecuring CAP services declaratively with @requires and @restrict, generating xs-security.json for XSUAA, testing with mocked users, and enforcing instance-based rules such as 'users only see their own orders' on the server.

Interview questions covered

  • How do you implement 'users only see data of their own company code' in a CAP service?
  • What is the difference between authentication and authorization in a CAP app on BTP?

How to study Authorization and identity

Authorization and identity has 1 lesson (1 intermediate) with about 5 minutes of reading in total. Start with the lesson that matches your level, then read the real project scenario and common mistakes in each one before moving on. After the lessons, say the 2 interview questions out loud in your own words, then check yourself against the model answer in each question (shown once you open it). Use the 4 mock questions to check recall.

Mock test questions covered

Try answering each one before you open the mock test; the answer options and scoring are in the Mock Questions tab.

  • Customers must only read their own orders. Where should this rule be enforced?
  • How should xs-security.json be produced for a CAP app?
  • A tester only uses a mocked user with every role. What risk remains?
  • Which value should a handler trust as the current user's identity?

Related topics