"Authentication" header not accepted in Outbound REST API

soibam_ana_sing
Giga Contributor

We are integrating SNOW with a 3rd party software and making Outbound rest api from SNOW endpoint. For authentication on 3rd party software, it does take only JWT (JSON Web token), not Basic Authentication. Below is how I pass auth token in POST method. Its seems that token is not accepeted in header field in Outbound method from SNOW side.

I also tried same POST method in POSTMAN and its work fine. Since it is working in POSTMAN, I am expecting same result in SNOW side also. 

 

 

Endpoint : http://a.b.c.d:3000/api/v1/map/launch/14

Accept: application/json

Content-type: application/json

Authorization: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoiYWRtaW4iLCJpYXQiOjE1NzAxODY3MjcsImV4cCI6MTU3MDI3MzEyN30.oqK1n1LicDD2InCYBGrpkmIA"

Outbound POST Method in SNOW:

find_real_file.png

 

could someone help me on this issue ?

1 ACCEPTED SOLUTION

Thanks for your reply.

I have tried with/without key work "Bearer" (with space) ,it same error messages. In POSTMAN, its working fine , even without 'Bearer" in Authentication header. 

Does SNOW REST APIs expect "Bearer" if authorization header is used in any REST APIs calls? 

View solution in original post

14 REPLIES 14

One thought now, why are you using mid server? Is this 3rd Party API in your private network? Can you make a test without a MID Server?

Yes .. 3rd party API is in corporate network. Without Mid Server, Its fail to connect to 3rd party endpoint from SNOW side. 

And this MID Server does not have any problems to reach the endpoint? Have you made a test to send the request directly from MID?

Mid server is not problem. Its working and tested. 

Can you also show the POSTMAN request?