HTTP Connection Request to support Basic type and Token Auth type

Comments

1 comment

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

    Amol B I think you may be confused on how our "refresh token" offering works. In your case, you should be using it. When the endpoint provides us with a 401 error code for unauthorized, we then trigger the refresh token mechanism to fetch a new token. For the values of token and refresh token in this setup, use dummy values. Upon saving, the refresh mechanism will kick in. Here is an example setup:

    Basic {{{base64Encode connection.http.encrypted.username ":" connection.http.encrypted.password}}}

     

    From the docs, I wasn't 100% sure what field the token is returned in. You would just need to modify this to the actual field name that has the token.

     

     

    {
      "username": "value",
      "password": "value"
    }

    {
      "username": "copy this json structure to encrypted field. structure is here so that structure is known in the future after saving this connection",
      "password": "copy this json structure to encrypted field. structure is here so that structure is known in the future after saving this connection"
    }
    0

Please sign in to leave a comment.