Configure the path to token field in the HTTP response body

Comments

5 comments

  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Sujit Desai I would try something like this:

    /*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='AuthenticationTokenGetResponse']/*[local-name()='AuthenticationTokenGetResult']/text()

    This is xpath notation and I usually use a website like http://xpather.com/ to figure out what is needed.

     

    You could also try a normal path expression like below, but not sure if it will work here.

    /soap:Envelope/soap:Body/AuthenticationTokenGetResponse/AuthenticationTokenGetResult
    1
  • Sujit Desai

    Tyler Lamparter thanks for the insight. I tried both the suggestions but none of them worked.

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Sujit Desai are you getting any particular error? Do you have anything in the "how to test connection" section?

    0
  • Sujit Desai

    Tyler Lamparter I am getting the invalid authentication string error. I tried to use the path you suggested above in the refresh token settings of my HTTP connection and then using the {{{connection.http.auth.token.token}}} handlebar to provide the authentication string in the request body of the Import Step. I tried doing a test send and actually running the flow. In both the cases it gave me invalid authentication string error.

    The only way we can test the connection is by trying to post some test data to some endpoint. While posting the data in the request body we would need to put the token itself. Not sure if we can use the handlebar {{{connection.http.auth.token.token}}} OR {{{connection.http.auth.token.refreshToken}}} in the request body in the 'How to test connection' section.

    I would be happy to jump on a call, probably the IO office hours to troubleshoot this issue. Is this something we can do? Send me the link for you calendly or link to book the session if that is possible.

    Thanks!

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Sujit Desai yes feel free to come by office hours next week. https://docs.celigo.com/hc/en-us/articles/360045798291

    0

Please sign in to leave a comment.