SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Secure a Multitenant Application with the Authorization and Trust Management Service (XSUAA)

Bind your multitenant application and the approuter application to the xsuaa service instance in SAP BTP, Kyma runtime, which acts as an OAuth 2.0 client to your application.

Overview

🎓 intermediate 30 min. SAP Btp, Kyma RuntimeIntermediateSAP Business Technology Platform

You will learn

  • How to create XSUAA instance for multitenancy in Kyma runtime
  • How to consume XSUAA instance credential from applications
  • How to implement authentication and authorization logic in Node.js applications
  • How to configure approuter application for multitenancy
Unknown U Unknown June 24, 2025
Created by February 17, 2022
Contributors

Prerequisites

Steps

Step 1 Get to know SAP Authorization and Trust Management Service

Each multitenant application has to deploy its own application router, and the application router handles requests of all tenants to the application. The application router is able to determine the tenant identifier out of the URL and then forwards the authentication request to the tenant User Account and Authentication (UAA) service and the related identity zone.

To use a multitenant application router, you must have a shared UAA service: SAP Authorization and Trust Management Service (also known as XSUAA)

Step 2 Create XSUAA Instance and Credential with ServiceInstance and ServiceBinding
+
Step 3 Access Instance Credential from Approuter and Backend Application
+
Step 4 Add Authentication and Authorization Logic into Backend Application
+
Step 5 Enable Authentication for Approuter Application
+
Step 6 Configure TENANT_HOST_PATTERN to Determine Identity Zone for Authentication
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Get to know SAP Authorization and Trust Management Service 2. Create XSUAA Instance and Credential with ServiceInstance and ServiceBinding 3. Access Instance Credential from Approuter and Backend Application 4. Add Authentication and Authorization Logic into Backend Application 5. Enable Authentication for Approuter Application 6. Configure TENANT_HOST_PATTERN to Determine Identity Zone for Authentication

Learn more →