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 issue-connectionJSON token issue

trivi
New Contributor II
New Contributor II

Hi We are having an issue with access token in connection JSON, when we have hardcoded the token values the importaccountentJSON works fine. However we are not able to get the token in connection JSON.

1. the API doesn't have any authentication type means its No Auth 

{
"authentications": {
"acctAuth"{
"url": "http://<hostname?/authorization/Application/Login",
"httpMethod": "POST",
"httpHeaders": {
"contentType": "application/json"
},
"properties": {
"apiKey": "XXXXXX",
"applicationName": "Saviynt"
},
"httpContentType": "application/json",
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"SESSION_NOT_VALID",
"AuthenticationFailed",
"HTTP error code : 401"
],
"timeOutError": "Read timed out",
"errorPath": "error",
"maxRefreshTryCount": 5,
"tokenResponsePath": "payload",
"retryFailureStatusCode": [
500,
502,
401
]
}
}
}

the token value comes in the response in payload

Hiw can we overcome this .If there is no Auth what is the authtype we have to use , i tried with not giving any value to authtype.

3 REPLIES 3

Dhruv_S
Saviynt Employee
Saviynt Employee

Hi @trivi 

Please refer to the below post.

Solved: REST API Connector "NO Auth" Authorization Type - Saviynt Forums - 1903

Regards,
Dhruv Sharma
If this reply answered your question, please accept it as Solution to help others who may have a similar problem.

trivi
New Contributor II
New Contributor II

How would dummy connectionJSOn look like. In our case , we are passing apikey and application to get the token in response in payload ...something like below 

"payload":{

"tokenvalue"

}

Dhruv_S
Saviynt Employee
Saviynt Employee

Hi @trivi 

Please try with below in connection JSON and remove "Authorization": "${access_token}" line from the header of the import or provisioning JSON.

"authType": "oauth2",

Regards,

Dhruv Sharma