Question
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.
Check this PDN article - https://pdn.pega.com/community/product-support/question/custom-authentication-service-service-package-and-consume-service