Skip to content

Commit 109eeaf

Browse files
authored
Express sample repo setup (#5)
* rename express sample folder * add express sample link to readme
1 parent 19d1d3c commit 109eeaf

26 files changed

+6
-6
lines changed

.github/workflows/build_and_test_expressjs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77
push:
88
branches: [ "main" ]
99
paths:
10-
- "ams-expressjs-shopping/**"
10+
- "ams-express-shopping/**"
1111
- ".github/workflows/build_and_test_expressjs.yml"
1212
pull_request:
1313
branches: [ "**" ]
1414
paths:
15-
- "ams-expressjs-shopping/**"
15+
- "ams-express-shopping/**"
1616
- ".github/workflows/build_and_test_expressjs.yml"
1717

1818
jobs:
@@ -32,13 +32,13 @@ jobs:
3232
with:
3333
node-version: ${{ matrix.node-version }}
3434
cache: 'npm'
35-
cache-dependency-path: ams-expressjs-shopping
35+
cache-dependency-path: ams-express-shopping
3636
- name: Set up JDK 17 # for DCL -> DCN compilation to work before tests
3737
uses: actions/setup-java@v4
3838
with:
3939
java-version: '17'
4040
distribution: 'temurin'
4141
- run: npm ci
42-
working-directory: ams-expressjs-shopping
42+
working-directory: ams-express-shopping
4343
- run: npm test
44-
working-directory: ams-expressjs-shopping
44+
working-directory: ams-express-shopping

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The Node.js sample applications in this repository demonstrate [policy based authorization](https://help.sap.com/docs/identity-authentication/identity-authentication/configuring-authorization-policies?locale=en-US) with the Authorization Management Service (AMS) in applications that authenticate users via the [SAP Cloud Identity Services](https://help.sap.com/docs/identity-authentication?locale=en-US) (SCI). The focus of the samples is on the authorization via AMS but as the authentication is a necessary requirement, it is demonstrated as well.
66

77
- [Node.js CAP sample application](./ams-cap-nodejs-bookshop/)
8-
- **Node.js express.js sample application**: Coming with `@sap/ams` major release version 3
8+
- [Node.js Express sample application](./ams-express-shopping/)
99

1010
## Description
1111
AMS is the component of SCI that can be enabled to implement and manage an application's authorization in a flexible policy-based language called Data Control Language (DCL). Besides standard authorization checks, it enables applications to provide instance-based authorization capabilities to customers, e.g. limiting a user's access to a slice of the data based on cross-cutting attributes such as company code or region.
File renamed without changes.
File renamed without changes.

ams-expressjs-shopping/auth/dcl/internal/internalPolicies.dcl renamed to ams-express-shopping/auth/dcl/internal/internalPolicies.dcl

File renamed without changes.

ams-expressjs-shopping/auth/dcl/local/adminPolicies.dcl renamed to ams-express-shopping/auth/dcl/local/adminPolicies.dcl

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)