getting cookies in ServiceNow to Solman Integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2024 04:53 AM
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 .
Is there any other ways to get cookies . Any ideas how to get cookies from response or from other means.
Thanks in Advance