Posted: 9 May 2017 14:39 EDT Last activity: 19 May 2017 2:05 EDT
Need access to the operator (to authenticate) of a Service REST request
We have a requirement to log the every request to our Service Rule. It is currently defined as basic auth + SSL (https) and in the processing activity after the response is generated, we would like to add a line item to the log via log-message but I need access to operator ID used to authenticate into our service in the request. Wondering where this would be made available in memory/clipboard?
Alternatively, if there is a better way to do this - I am opened to suggestions.
***Updated by Moderator: Marissa to update categories***
Question : Are you looking to log the event during 1.) the authenication process (thereby being done as the unauthenticated user). 2.) After the authentication has completed but before the service activity is dispatched.
If you are looking to access the authenticated user info within processing activity, then lookup/log the value of property 'pxRequestor.pyUserIdentifier' or 'OperatorID.pyUserIdentifier' in the processing activity.
Hi all, apologies for the late response. Gopi nailed it - that is exactly what we were looking for, it was for post-processing after the service begins - we needed to log the requestor's operator ID for audit purposes.