Skip to content

Commit

Permalink
Update example application TraTs
Browse files Browse the repository at this point in the history
  • Loading branch information
kchiranjewee63 committed Aug 7, 2024
1 parent 9bdf07d commit 74d1879
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions content/docs/configuration-guide/example-application-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ spec:
value: "${stockId}"
services:
- name: stocks
accessEvaluation:
subject:
id: "${subject_token.email}"
action:
name: "stock-details"
resource:
stockId: "${stockId}"
```
`stock-holdings-api-trat.yaml:`
Expand All @@ -44,6 +51,11 @@ spec:
purp: stock-holdings
services:
- name: stocks
accessEvaluation:
subject:
id: "${subject_token.email}"
action:
name: "stock-holdings"
```

`stock-search-api-trat.yaml:`
Expand All @@ -64,6 +76,13 @@ spec:
value: "${queryParameters.query}"
services:
- name: stocks
accessEvaluation:
subject:
id: "${subject_token.email}"
action:
name: "stock-search"
resource:
query: "${queryParameters.query}"
```

`stock-trade-api-trat.yaml:`
Expand Down Expand Up @@ -92,6 +111,13 @@ spec:
- name: order
- name: stocks
path: "/internal/stocks"
accessEvaluation:
subject:
id: "${subject_token.email}"
action:
name: "${body.orderType}"
resource:
stockId: "${body.stockId}"
```

## TraTExclusion
Expand Down

0 comments on commit 74d1879

Please sign in to comment.