Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon
No ratings
varunmittal
Saviynt Employee
Saviynt Employee

Symptoms

We are trying to onboard an application named Triskell using REST based connection into Saviynt.
 
As an initial step we are trying to establish connection and import existing accounts but we are facing below issues:
 
 
Triskell needs cookies to maintain sessions for Stateful web services. We tried basic and cookies authentication method but we are unable to fetch cookies dynamically while calling import account.
 
Please note: We cannot use stateless web services as it is disabled by Application Owner.
 

Diagnosis

There was no example present in Rest Connector Guide for configuring the Connection Json using Cookies value stored in Response Headers 

Solution

The following Connection Json worked with the Cookies stored in Response Headers where the token was getting successfully generated upon expiry to be used in ImportAccountEntJson 

Connection Json

{
  "authentications": {
    "acctAuth": {
      "authType": "oauth2",
      "url": "************",
      "httpMethod": "POST",
      "httpParams": {

      },
      "httpHeaders": {
        "Content-Type": "application/x-www-form-urlencoded"
      },
      "httpContentType": "application/x-www-form-urlencoded",
      "expiryError": "ExpiredAuthenticationToken",
      "authError": [
        "USER_AUTHENTICATION_FAILED",
        "PARTNER_AUTHENTICATION_FAILED",
        "AuthenticationFailed",
        "user_not_logged_on"
      ],
      "timeOutError": "error",
      "errorPath": "error",
      "maxRefreshTryCount": 3,
      "tokenResponsePath": "#HEADERS#Set-Cookie",      "tokenType": "",
      "authHeaderName": "Cookie",
      "retryFailureStatusCode": [
        401
      ],
      "accessToken": "sdfghjk"
    }
  }
}
Version history
Last update:
‎01/10/2023 01:15 PM
Updated by: