sapui5 - How to get SCI(SAP Cloud Identity) account info in HCP portal service? -
i building html5 application in hcp, using portal service manage roles. back-end develper ask me give them role info (id or e-mail) input of interface(they need authentication info). how ? there front-end api provided these info?
thanks in advance.
user api provides few details user in hcp. use user api in html5 application, add route neo-app.jso
n application descriptor file follows:
"routes": [ { "path": "/services/userapi", //application path forwarded "target": { "type": "service", "name": "userapi" } } ]
a sample url route defined above this: /services/userapi/currentuser
.
an example response return following user data:
{ "name": "p12345678", "firstname": "jon", "lastname": "snow", "email": "jon.snow@tina.com", "displayname": "jon snow (p12345678)" }
Comments
Post a Comment