IntegrationHub : Connections and credentials Alias is not working

LearnerNow
Mega Guru

I have a working Rest API Action, that communicate with an external tool and get information related to users.

The Connection used in Rest step call is inline.

find_real_file.png

All connection attributes are passed in Header:

find_real_file.png

Everything work fine with this configuration.

Now, I need to move the connection attributes from “Inline Connection” to “Use Connection Alias”.

So I created a new Connection and Credentials Alias with the URL and attributes :

find_real_file.png

find_real_file.png

Then I changed the type of connection within Flow Designer action to “Use Connection Alias” and I give my new Created Connection Alias, and I removed all attribute from the Header.

But when I test my action I got errors with the following information :

  • Error Code : 1
  • Error Message : Method failed: (/api/MyAPI) with code: 400
  • Response Body : Invalid authentication content.
  • Status Code : 400

How do I change my connection in IntegrationHub from Inline to Connection and Credentials Alias?

Or at leat how can I test and debug this connection issue ?

1 ACCEPTED SOLUTION

Geoff_T
Mega Sage

Hi,

API key still needs to be passed in the header. Having selected 'Use Connection Alias' is the credential api key not available as a pill value in the right hand data pane? If so, you just drag this into the header.

If it does not exist; you could create a new input for the REST action and pull in the api key value from the table it resides.

Let me know if this helps.

View solution in original post

4 REPLIES 4

Geoff_T
Mega Sage

Hi,

API key still needs to be passed in the header. Having selected 'Use Connection Alias' is the credential api key not available as a pill value in the right hand data pane? If so, you just drag this into the header.

If it does not exist; you could create a new input for the REST action and pull in the api key value from the table it resides.

Let me know if this helps.

Hello Alamine,

Please mark my response correct if it answered your question. Let me know if I can help more.

Thanks

Hi geoff;

Thanks a lot, I understand better now. Yes I have the attributes as a pill values, I ll use them.

Do you think it may be a security issue to send the api key in the header of API ?

Hi Alamine, 

I'm no expert when it comes to your security question so I wont attempt to answer it. Please do mark my original reply to your answer as correct and you can also open a new question on the community with regards to your security question 🙂

Geoff