Skip to content

Commit 6e5dbc7

Browse files
authored
Update btp-app-kyma-prepare-xsuaa.md
1 parent 05cec6b commit 6e5dbc7

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

tutorials/btp-app-kyma-prepare-xsuaa/btp-app-kyma-prepare-xsuaa.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ primary_tag: software-product-function>sap-cloud-application-programming-model
1111

1212
---
1313

14-
[ACCORDION-BEGIN [Step 1: ](Prerequisites)]
15-
- [Set Up Local Development using VS Code](btp-app-set-up-local-development)
14+
## Prerequisites
15+
- [Set Up Local Development using VS Code](btp-app-set-up-local-development)
1616
- [Create a Directory for Development](btp-app-create-directory)
1717
- [Create a CAP-Based Application](btp-app-create-cap-application)
1818
- [Create an SAP Fiori Elements-Based UI](btp-app-create-ui-fiori-elements)
@@ -26,15 +26,14 @@ primary_tag: software-product-function>sap-cloud-application-programming-model
2626

2727
## Details
2828
### You will learn
29-
3029
- How to set up user authentication and authorization (XSUAA)
3130

3231
---
3332

3433

35-
## Setup XSUAA
34+
[ACCORDION-BEGIN [Step 1: ](Setup XSUAA)]
3635

37-
Run the following command in your project folder:
36+
1. Run the following command in your project folder:
3837

3938
```Shell/Bash
4039
cds add xsuaa --for production
@@ -45,9 +44,7 @@ What happens here? Running `cds add xsuaa` does two things:
4544
- Adds the XSUAA service to the `package.json` file of your project
4645
- Creates the XSUAA security configuration for your project
4746

48-
### Adding the XSUAA service
49-
50-
Check if the following lines have been added to the `package.json` in your `cpapp` project:
47+
2. Check if the following lines have been added to the `package.json` in your `cpapp` project:
5148

5249
<!-- cpes-file package.json:$.cds.requires -->
5350
```JSON[7-9]
@@ -66,13 +63,19 @@ Check if the following lines have been added to the `package.json` in your `cpap
6663
}
6764
```
6865

69-
### Roles and scopes
66+
[DONE]
67+
[ACCORDION-END]
68+
---
69+
[ACCORDION-BEGIN [Step 2: ](Roles and scopes)]
7070

7171
A scope represents a single authorization to perform an action. For example, there could be a scope "Read" and a scope "Write". The scope allows a user to read or write a certain business object. Scopes can't be assigned to users directly. They're packaged into roles. For example, there could a role "Editor" consisting of the "Read" and "Write" scopes, while the role "Viewer" consists only of the "Read" scope.
7272

73-
### XSUAA security configuration
73+
[DONE]
74+
[ACCORDION-END]
75+
---
76+
[ACCORDION-BEGIN [Step 3: ](XSUAA security configuration)]
7477

75-
Check the file `xs-security.json` that was created in your `cpapp` project. The file contains the configuration of the XSUAA (XS User Authentication and Authorization service). The CAP server takes the authorization parts `@(restrict ... )` from our service definition form and creates scopes and role templates from it. For example, it found the roles `RiskViewer` and `RiskManager` in the `srv/risk-service.cds` file:
78+
Check the `xs-security.json` file that was created in your `cpapp` project. The file contains the configuration of the XSUAA (XS User Authentication and Authorization service). The CAP server takes the authorization parts `@(restrict ... )` from our service definition form and creates scopes and role templates from it. For example, it found the roles `RiskViewer` and `RiskManager` in the `srv/risk-service.cds` file:
7679

7780
```JavaScript[4,8]
7881
entity Risks @(restrict : [
@@ -122,8 +125,6 @@ And created scopes and roles for both in the `xs-security.json` file:
122125
}
123126
```
124127

125-
[VALIDATE_1]
126-
127128
[VALIDATE_1]
128129
[ACCORDION-END]
129130
---

0 commit comments

Comments
 (0)