Skip to content

ashutosh419/sap-approuter-userapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User API in @sap/approuter

The api is useful to retrieve the user information in any application deployed on BTP. It could be a Fiori, NodeJs, CAP, etc application.

Summary

  • Refers to @sap/approuter
  • minimal config added - package.json, xs-app.json and xs-security.json
  • Highlights to be noted - minimal config, addition of redirect URI in xs-security.json

Usage

Create the XSUAA service in BTP CF using:

cf create-service xsuaa application user-api-uaa -c xs-security.json

Push the Application to CF using:

cf push

It would consider the manifest.yml file for app creation and bind the xsuaa service

Use the following link to view the user information:

https://sap-approuter-userapi-humble-vicuna-ic.cfapps.us10-001.hana.ondemand.com/user-api/currentUser

Example Response:


{
    firstname: "Ashutosh",
    lastname: "Joshi",
    email: "ashutosh-joshi@abc.com",
    name: "ashutosh-joshi@abc.com",
    scopes: [
        "openid"
    ],
    displayName: "Ashutosh Joshi (ashutosh-joshi@abc.com)"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published