cancel
Showing results for 
Search instead for 
Did you mean: 

How to use SAP Passport at UI Level in CAP Model

former_member686997
Discoverer
0 Kudos
643

How to use SAP Passport for CAP model at UI level so that it is added to header of all service call.

I was following this document =SAP Passport

gregorw
Active Contributor
0 Kudos

Your Link is pointing to an SAP internal resource. This is a public forum. Please check if you can provide an external link.

View Entire Topic
former_member686997
Discoverer
0 Kudos

JavaScript node.js Examples

0. Preparation

use in node.js from nexus npm


add dependency to package.json: example below
{
  "name": "passport-js-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@sap/sapdsrpassport": "http://nexus3.wdf.sap.corp:8081/nexus/repository/deploy.releases.npm/@sap/sapdsrpassport/-/sapdsrpassport-1.0.2.tgz"
  }
}
npm install