POSTMAN Cookie Management in ServiceNow REST Message

LHHuy
Tera Contributor

Hi Everyone,

We have a requirement to implement an integration, that require authentication from 3rd party. After some investigation, we found out the way to call the API though the post authentication. However, we are not able to replica the call in ServiceNow.

Do you have knowledge on update the configuration on POSTMAN Cookie management and Body Parameter to ServiceNow REST message?

LHHuy_0-1702622427300.png
Thank you,

 

4 REPLIES 4

Marcos Kassak
Kilo Sage
Kilo Sage

Hi @LHHuy,

 

If you are trying to fetch cookies from the browser and test in the API, you may want to try Postman Interceptor (if you are using Google Chrome: https://chromewebstore.google.com/detail/aicmkgpgakddgnaphhhpliifpcfhicfo)

 

This extension integrates with the Postman App and sends all the cookies that you have on your browser so you can test the API properly.

 

If you found my answer helpful or correct in any way, please don't forget to mark it to help future readers! 👍

 

--

 

Kind regards,


Marcos Kassak
Solution Consultant  🎯

 

Hi @Marcos Kassak ,

Thank you but unfortunately the requirement indicate that we must replicate the configuration from POSTMAN to ServiceNow, for ServiceNow to POST to the endpoint with pre-defined configuration outside of ServiceNow. 
Is there a guide for such configuration for us to have it in ServiceNow?

Thank you.

Hi @LHHuy,

 

You need to configure an Outbound Rest Message, refer to the documentation for context:

 

https://docs.servicenow.com/bundle/tokyo-application-development/page/integrate/outbound-rest/concep...

 

As per configuration, you can learn with Chuck Tomasi how do do it:

 

https://www.youtube.com/watch?v=S7gl90SsM0s

 

If you found my answer helpful or correct in any way, please don't forget to mark it to help future readers! 👍

 

--

 

Kind regards,


Marcos Kassak
Solution Consultant  🎯

This video demonstrates how to construct a quick outbound REST message as one of several ways to send a REST message to another system or service. Links: Docs (Rome): RESTMessagev2 https://developer.servicenow.com/dev.do#!/reference/api/rome/server/sn_ws-namespace/c_RESTMessageV2API Video: ...

Hi @Marcos Kassak ,

Thank you for your reply. Yes, i currently using REST Message for the call, however, as i checked, this is not the proper way for server-to-server integration with Cookie as a security layer, I'll check more with my client for a proper solution such as us having a Token or defined cookie to authenticate.