Forum Post: Re: Get the logged in users ID in a REST request?

Status
Not open for further replies.
M

Michael Jacobs

Guest
Hello Paul, Use SESSION:CURRENT-REQUEST-INFO:GetClientPrincipal() If it returns unknown - the REST service authenticated an anonymous user, or the OEClientPrincipalFilter was disabled. If it returns a valid handle it will be the user-id authenticated by the REST service and the roles they were granted. If the Client-Principal's session-id attribute is "0" it is a stateless (i.e. HTTP BASIC) REST request, or non-zero indicates a statefull REST request ( i.e. HTTP Form ) Mike J. From: " paul.radbone@wins.co.uk " bounce-paulradbonewinscouk@community.progress.com Reply-To: " TU.OE.Development@community.progress.com " TU.OE.Development@community.progress.com Date: Friday, December 12, 2014 at 4:08 PM To: " TU.OE.Development@community.progress.com " TU.OE.Development@community.progress.com Subject: [Technical Users - OE Development] Get the logged in users ID in a REST request? Get the logged in users ID in a REST request? Thread created by paul.radbone@wins.co.uk Hi, Is it possible to see the User ID for the request on the REST service on the appserver? I can get a SESSION ID with MESSAGE SESSION:CURRENT-REQUEST-INFO:ClientContextId, but I would also like to know the user. Thanks, Paul. Stop receiving emails on this subject. Flag this post as spam/abuse.

Continue reading...
 
Status
Not open for further replies.
Top