Rest outbound calls using LDAP form authentication is not working from ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 07:22 AM
Rest outbound calls using LDAP form authentication is not working from ServiceNow.
This is the documentation that I got from Maximo for form request which should look like this in ServiceNow
POST /j_security_check
Content-type: application/x-www-form-urlencoded
j_username=<userid>&j_password=<password>
Note, this being a form encoded POST, the userid and password values needs to be url
encoded values. The response for this request will have the jsessionid cookie along with Ltpa
token cookies (for Websphere). These cookies need to be re-used for the subsequent api calls.
So, I created a POST in PostMan it works fine. However, when I tried to do this in ServiceNow it timing out after 60 secs and I tried to call from fix script and its still not working with Content-type: application/x-www-form-urlencoded!
Does ServiceNow support Content-type: application/x-www-form-urlencoded?