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

Configure Authentication and Authorization on SAP BTP

Set up authentication and authorization on SAP BTP and deploy your secured application there.

Overview

🎓 beginner 25 min. SAP Cloud Application Programming ModelBeginnerSAP Business Technology PlatformJavaSAP Business Application Studio

You will learn

  • How to test authorizations on the applications deployed to SAP BTP, Cloud Foundry Before you deploy your authentication-enabled application you have to create an instance of service Authorization and Trust Management Service (XSUAA) and configure it, bind it to your application and provide it with the security descriptor that contains roles and scopes of your application. For more details, see section Protecting Your Application in the SAP BTP documentation.
René Jeglinsky R René Jeglinsky December 10, 2024
Created by December 10, 2024
Contributors

Prerequisites

Steps

Step 1 Configure roles for testing on SAP BTP

Open your application in the browser. Using the links on the welcome page you can check that you can’t access the Orders entity or everything under the AdminService. You should see a 401 error in case you click on these.

To use the AdminService, you need to assign yourself to the role collection BookStore_Administrators that was defined in the xs-security.json file. To assign this role collection to your user you need to navigate to the Security Role Collections section of your SAP BTP subaccount.

  1. Select the BookStore_Administrators role collection and choose Edit. Enter your email address in the ID and E-Mail field and choose Save.

    role assignment to administrator
    role assignment to administrator

Step 2 Test application on SAP BTP
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 2
1. Configure roles for testing on SAP BTP 2. Test application on SAP BTP

Learn more →