Skip to content

These sample applications show how to build applications on SAP BTP with the SCI Authorization Management Service in node.js. The repository contains sample applications using [CAP](https://cap.cloud.sap/docs/) and without using CAP

License

Notifications You must be signed in to change notification settings

SAP-samples/ams-samples-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

REUSE status

AMS Sample Applications (Node.js)

The Node.js sample applications in this repository demonstrate policy based authorization with the Authorization Management Service (AMS) in applications that authenticate users via the SAP Cloud Identity Services (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.

Description

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.

When deployed, authorization policies are managed in the SCI administration cockpit. When running locally, e.g. during development or testing, policies are edited in the IDE and can be assigned to mocked users as demonstrated by the samples.

Requirements

  • a Node.js LTS version that is at least in maintenance
  • a JDK 17+ for local DCL compilation before unit tests

How to obtain support

For bugs and issues of the sample applications themselves or questions about the content, please create an issue in this repository.

For formal feature requests, bug reports, security issues and support of the client libraries, please use the support channels mentioned in the README.md that comes with @sap/ams and @sap/ams-dev.

Contributing

If you wish to contribute code for the samples, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.

License

Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

About

These sample applications show how to build applications on SAP BTP with the SCI Authorization Management Service in node.js. The repository contains sample applications using [CAP](https://cap.cloud.sap/docs/) and without using CAP

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •