Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

getting cookies in ServiceNow to Solman Integration

Prashanth Ranga
Tera Contributor

Hi All , 

 

We are working on ServiceNow to Solution Manager(Solman) integration . There are 2 end points from SOLMAN . First endpoint is to get the CSRF token and Cookies  and second endpoint is to post CSRF token and Cookies to SOLMAN for successful authentication .  We have taken scripted rest API approach to perform this use case . 

We are able to get the CSRF token . But the challenge is  we need cookies also along with CSRF token to get successful authentication from SOLMAN . 

 

we have tried to get cookies from response (response.getCookies()) , either it is empty or undefined . when we try same from the POSTMAN , we can see there is cookies screenshot attached . 

PrashanthRanga_0-1728474749590.png

 

Is there any other ways to get cookies . Any ideas how to get cookies from response or from other means. 

 

Thanks in Advance 

0 REPLIES 0