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.json 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)" } 

more info here


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -