How to use API Key Authentication for Outbound REST message ?

Saurabh_Bombale
Tera Contributor

I'm using one Outbound REST message. I want to use API Key from Connections & Credentials module as an Authentication type for my REST message. I have API Key in handy. Is it achievable ? I don't want to use basic or oauth authentication type.

8 REPLIES 8

Not sure what happened to my post, but it is showing as being posted by 'As' below...

Saurabh

SecureEncrypter is part of plugin com.snc.ihub_spoke_util_pack. I am not sure if you need an IH licence to use it....

You could also create an SI of your own in global that is accessible to all scopes and has two methods encrypt and decrypt that then call the same methods in GlideEncrypter leaving you with a way to call GlideEncrypter from any scope (albeit via another SI!).

Hope these help,

Richard

Dina Shoukry
Tera Contributor

Hello @Saurabh Bombale ,

Did you reach any solution for this question?

I have same problem.

 

Thanks,

Dina

kiwi07
Tera Contributor

Is there a way to use directly the credential alias that was created in the script rather then doing decrypt

Kiwi07

 

You need to decyrpt at some point as the API Key is Password2 and the REST request will treat the Authorization header as the text it is passed.

 

As far as I know, you can only use the alias directly in an IH REST step.

 

Hope this helps,

 

Richard