Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/21/2022 01:11 AM
Hi Team,
We are trying to integrating one application with REST Connector, but problem here is Connection JSON is not working. In postman we are getting the ticket value as a response, but if we use the below Connection JSON it's failing.
Connection JSON:
{
"authentications": {
"userAuth": {
"authType": "Basic",
"url": "URL",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {
"Content-Type": "application/json"
},
"httpContentType": "",
"properties": {
"userName": "UI_Admin",
"password": "HYYYHY83#4k",
"ticketType": "ABCTICKET"
},
"testConnectionParams": {
"http": {
"url": "URL",
"httpHeaders": {
"Authorization": "${access_token}"
},
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed",
"401 Unauthorized"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic abc"
}
}
}
}
}
Response from Postman:
Regards,
SJ
Solved! Go to Solution.
09/21/2022 02:25 AM
successResponseCode are missing
Refer https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide%C2%A0
09/21/2022 02:27 AM
Thanks for the input, but now it's working without successresponse. Due to DNS issue it was failed.
Regards,
SJ