Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Rest Connector - Custom Ticketing System

FCaremoli
New Contributor III
New Contributor III

Hi everyone,

We are developing a REST connector in order to integrate a custom ticketing system for the ARS application management. For the development we are following the documentation REST Connector Guide and Developers Handbook to complete all necessary steps for the integration. We have configurated all the necessary connection parameters (ConnectionJSON, TicketStatusJSON and CreateTicketJSON) and also the associated security system, endpoint and WSretry job for the ticket creation. 

However every time we submit a new access request by generating a new task executed by the WSretry job we have the following error:

 

FCaremoli_1-1673626134035.png

Below the related code of the connection parameters.

Connection JSON

{
  "authentications": {
    "acctAuth": {
      "authType": "BasicWithAccessToken",
      "url": "https://<domain name>/auth/",
      "httpMethod": "POST",
      "httpParams": {},
      "httpHeaders": {"Accept": "application/json",
      "contentType": "application/x-www-form-urlencoded"
    },
      "properties": {"userName": "<insert here username>","password": "<insert here password>"},
      "httpContentType": "application/x-www-form-urlencoded",
      "expiryError": "ExpiredAuthenticationToken",
      "retryFailureStatusCode": [403,401,500],
      "authError": [
        "InvalidAuthenticationToken",
        "AuthenticationFailed",
        "Authentication_MissingOrMalformed",
        "Authentication_ExpiredToken"
      ],
      "timeOutError": "Read timed out",
      "errorPath": "error.code",
      "maxRefreshTryCount": 5,
      "tokenResponsePath": "access_token",
      "tokenType": "Bearer",
      "accessToken": "Bearer <insert here accesstoken>"
    }
  }
}
 
Ticket creation
{
  "call": [
    {
      "name": "AddTicket",
      "connection": "acctAuth",
      "url": "https://<domain name>/addTicket",
      "httpMethod": "POST",
      "httpParams": {},
      "httpHeaders": {
        "Authorization": "${access_token}",
        "contentType": "application/json"
      },
      "httpContentType": "application/json",
      "ticketidPath": "ticket.id",
      "unsuccessResponses": {
        "message": "Failed"
      }
    }
  ]
}
 
Ticket status
{
  "call": [
    {
      "name": "GetStatusTicket",
      "connection": "userAuth",
      "url": "https://<domain name>/getStatusTicket/${ticketID}",
      "httpMethod": "GET",
      "httpHeaders": {
        "Authorization": "${access_token}",
        "contentType": "application/json"
      },
      "httpContentType": "application/json",
      "ticketStatusPath": "result[0].state",
      "ticketStatusValue": [
        "Open",
        "OPEN",
        "open"
      ],
      "successResponses": [
        {}
      ]
    }
  ]
}
 
Do you have any suggestions to fix this problem?
 
3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Is it attached to Security System


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Yes the connection is attached to the Security System and which is connected with its endpoint

Screenshot of Security System


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.