"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

We are still facing same issue  but tried out in diffent environment with same API. Will share POSTMAN request 

Narendra Kota
Mega Sage

Hi,

Can you please add access_token in HTTP header parameter of your outbound request and check if it's working or not? Like this,find_real_file.png

 

Hope this helps.
Mark helpful or correct based on impact.

Thanks.

I have tried with access_token in HTTP header. its same error messages

Narendra Kota
Mega Sage

Hello,

Could you please check this link if that is helpful for you?

https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/security/task/JWT...

Hope this helps.
Mark helpful or correct based on impact.

Thanks.

Thanks for helpful links .. its does not help me solving my problem ..