How to get "Authorization" Request Header when using REST connector in Pega

Hi, Greetings. I am trying to get the “Authorization” header logged when using a REST connector, here i am using a Basic Authentication configured via Authentication Profile. I am aware that we can read the header when using a Service REST, does anyone know of a way to get this header logged?

I am using Pega v8.8

Regards,

Bharat

Hi @KOMARINA,

Goto Configure → System → Operations → Logs

Open Logging level settings. In that search below categories and select and change the Current Level to Debug

  • com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector
  • com.pega.pegarules.integration.engine.internal.connect.http.HTTPClientUtils
  • com.pega.platform.integrationcore.client.http.internal.ComponentsHttpClient
  • org.apache.http.wire
  • Rule_Obj_Activity.Invoke.Rule_Connect_REST.Action

After enabled all this log category and call connect rest once. In Log we can be able to see the authorization header.

Thanks.

@DhanasekarC0202 Hi, sure, i can see them in logs, i thought if there is a way to read it programatically.

Regards,

Bharat

@KOMARINA

Can you check the parameter or the primary page of the ootb rest connector activities (invoke or invokerestconnector) and see if there any authorization header over there. If it is available read it from there.

@P.Siva.Praveen Hi, unfortunately, these Request Headers are not available via Parameter Page on Tracer.

Regards,

Bharat

@KOMARINA hello!
Have you found any way to save/read the Request Headers?