Skip to content

Commit 07dc4d5

Browse files
matthia.braun@sap.commatthia.braun@sap.com
authored andcommitted
minor changes
1 parent fd4050f commit 07dc4d5

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

guides/security/cap-users.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -361,14 +361,12 @@ The `@sap/ams` plugin provides multiple build-time features:
361361
- Generate a deployer application during the build to upload the Data Control Language (DCL) base policies.
362362
363363
364-
AM provides highly flexible APIs to define and enforce authorization rules at runtime. A relevant subset of these APIs is available for consumption in CAP apps by way of the AMS CAP integration plugin.
364+
AM provides highly flexible APIs to define and enforce authorization rules at runtime.
365+
A relevant subset of these APIs is consumed by CAP apps by way of the AMS CAP integration plugin.
365366
366-
::: warn
367+
::: warning
367368
Make sure not to mix native AMS APIs with those provided by the CAP plugin.
368369
:::
369-
In general, AMS provides highly flexible APIs to define and enforce authorization rules at runtime suitable for native Cloud applications.
370-
**In the context of CAP projects, only a limited subset of these APIs is relevant and is offered in a streamlined way via the CAP integration plugins**.
371-
:::
372370
373371
### Adding AMS Support { .node }
374372
@@ -429,7 +427,7 @@ Hence, the **rules in the CAP model act as basic building blocks for higher-leve
429427
You can define CAP roles in the CDS model as [described before](#roles).
430428
431429
::: tip
432-
A CAP role describes a **conceptual role on technical domain level** defined by application developers.
430+
A CAP role describes a **capability on technical domain level** defined by application developers.
433431
In contrast, an AMS policy reflects a coarser-grained **business role on application level** defined by user administrators.
434432
:::
435433
@@ -590,7 +588,7 @@ There are several options for the attribute declarations that have an impact on
590588
| `WHERE Genre IS RESTRICTED` | _Enforces `Genre` as filtered attribute in the scope for the role_ | _Filter restriction must be provided in a custom policy and is applied (restricted)_ |
591589
| _- no defintion -_ | _The role does not offer any attribute for filtering_ | _No restriction filter is applied (unrestricted)_ |
592590
593-
::: tip
591+
::: info
594592
The attribute statement is defined in the scope of a dedicated CAP role and filters are applied on matching entites accordingly.
595593
:::
596594
@@ -608,12 +606,12 @@ cds:
608606
security:
609607
mock:
610608
users:
611-
content-manager: // [!code ++]
612-
policies: // [!code ++]
613-
- cap.ContentManager // [!code ++]
614-
stock-manager: // [!code ++]
615-
policies: // [!code ++]
616-
- cap.StockManager // [!code ++]
609+
content-manager: // [!code ++:3]
610+
policies:
611+
- cap.ContentManager
612+
stock-manager: // [!code ++:3]
613+
policies:
614+
- cap.StockManager
617615
```
618616
619617
</div>

0 commit comments

Comments
 (0)