Getting the HCP username would it be enough?
If so you can get that information making this way:
in the neo-app.json file you need to add the route userapi:
{
"welcomeFile": "index.html",
"routes": [
{
"path": "/services/userapi",
"target": {
"type": "service",
"name": "userapi"
}
},
]
}
and then you can call it:
jQuery.ajax({
type: "GET",
contentType: "application/json",
url: "/services/userapi/currentUser",
dataType: "json",
async: false,
success: function(data, textStatus, jqXHR) {
//data with the user
}
});
Regards,
Frederico