How to setup outbound integration connection with a plain based token authentication?

User205031
Tera Contributor

Hi All,

 

I am currently working on an outbound integration and trying to set up a connection. I have received a Token and it is a plain based token authentication not OAuth/OIDC based authentication. I have created credentials/connections and also REST messages with HTTP header as Authentication - Token <token value>.

 

But when I am testing it, I am not able to connect with the third party. It is giving me an error - Authentication credentials not provided.

 

When I tried to test the connection with Postman, it is working fine.

 

Need help to fix the connection issue.

 

Thanks!

6 REPLIES 6

Roshnee Dash
Kilo Sage

Hi @User205031 ,

  1. Can you please tell your syntax that how you had configured?

  2. You need to check what the third party expects - 
    • What exact header name does your API expect for the token?
      → Common variants: Authorization, Authentication, X-Auth-Token, X-API-Token, api-key.
    • If Authorization, what scheme is required?
      → e.g., Authorization: Bearer <token> vs Authorization: Token <token> vs Authorization: ApiKey <token>.
    • Is the header case-sensitive or the scheme keyword case-sensitive?
Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash

Hi @Roshnee Dash ,

I have used :  Authorization: Token <token>

With postman, the connection is working fine

Ankur Bawiskar
Tera Patron

@User205031 

share some screenshots.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

 

1. First I have set up a Credential with API key (I have stored the token value I have received from client)

 

User205031_0-1767863188551.png

2. I have created a Connection Alias:

 

User205031_1-1767863356216.png

 

3. Next is the HTTP Connection:

User205031_2-1767863483720.png

 

4. Created a REST Message with HTTP Method:

 

User205031_3-1767864568082.png

User205031_4-1767864640627.png

When I tried to test a connection, getting this error:

User205031_5-1767864747036.png

There is Authentication credential issue. 

 

Not able to fix this.