To invoke a REST endpoint I'm required to login as this seems to be a protected resource. In the short-lived process I would like to get the name of the logged-in user but new com.adobe.idp.Context().getAuthenticatedUser()
returns null
. LC runs in the turnkey JBoss server on Windows 2003 Server with SQLServer as the LC repository.
Views
Replies
Total Likes
Can you try the following expression?
String loggedInUserOID = patExecContext.getProcessDataStringValue("/process_data/@creator_id");
// You should get the logged in user's unique id from the above expression.
Nith
Views
Replies
Total Likes
http://forums.adobe.com/message/3366581 has the answer. The creator_id process variable is just a long cryptic string but you can use it to query the edcprincipalentity table to get the commonname and email for the logged in user.
Views
Replies
Total Likes