Hi there,
We have a requirement to pass through three steps for an authentication. The First step is a HTTP connector that returns an empty response body with certain headers which must be captured for proceeding steps. I’ve tried the transformation rules and javascript also to atleast read the headers and return them as payload to the next steps but it still returns empty payload. I also tried using preSave page hook to execute the same functionality - it was returning a custom payload but unable to read the headers.
Secondly the next step use the same http connector for an authorization step, here we are receiving the response code in the redirect url. I am able to check this on the preview/send page. I need that response code to get token in the next final step.
Anyone who has worked on this successfully, it will be great help if you could drop your suggestion/workaround.
Thanks in advance
What is the api and can you share docs for it? It sounds like you are making a flow to do this which is only ever the last resort.
Hi Tyler,
Thanks for your response. It’s a custom API built by our client which supports oAuth2.0 with PKCE grant type and i’m afraid to say that we cannot disclose any documentation.
Instead i can give a quick walkthrough of the process. It has three stages -login, authorize and token generation, are executed in sequence to finally finish the authentication generating the tokens and these stages uses cookies to maintain a session.
-
The first part, login - has http connector that requests a call and returns cookies in headers and no response body. I need these cookies value for request headers in the next step - authorize call. Since it returns empty response, I’m unable to retrieve the headers values either in transform or presave page hook.
-
I tried the authorize call with static values in headers and this returns code value in the redirect uri. I’ve attached the image below for your reference.
Let me know if you still need any information. Please share your thoughts