Retrieve Custom authentication token from response header

Hello,

I am configuring a web service connector for an application, there is a specific endpoint to authenticate therefore I have configured the custom authentication in my connection settings and I created the custom authentication operation.

The issue I have is that the token returned is stored in the response header not the body. Is there a way to retrieve this token from the header?

I tried to do the following configuration in my custom authentication response information and use the variable for response headers but it doesn’t seem to work
image

Has anyone done similar configuration? and if yes can you please tell me what did you to solve this?

Best regards

I was able to solve the issue with an after operation rule

You can use restClient.getReponseHeaders() to retrieve the information of headers in after operation rule.

2 Likes

Hello Uday, thank you for your answer. This is exactly what I did.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.