We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Connection JSON for SAV4SAV REST

AshishDas
Regular Contributor II
Regular Contributor II

Hi,

We are facing issues with the connection JSON. The access token expires and hence we see the 401 error. We are able to do the same via postman via hitting the following url:

https://mash-dev.saviyntcloud.com/ECM/api/login with username and password.

 

Need help with the below connection JSON:

{
"authentications": {
"userAuth": {
"authType": "BasicWithAccessToken",
"url": "{url}/ECM/api/login",
"httpMethod": "POST",
"httpHeaders": {"Accept": "application/json"},
"properties": {"userName": "******","password": "*****"},
"httpContentType": "application/json",
"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 xyz"
}
}
}

AshishDas_1-1676911143421.pngAshishDas_2-1676911173511.png

 

[This post has been edited by a Moderator to remove sensitive information.]

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"httpHeaders": {
"Accept": "application/json"
},
"authError": [
"InvalidAuthenticationToken"
],
"url": "https://ssm-.saviyntcloud.com/ECM/api/login",
"httpMethod": "POST",
"httpContentType": "application/json",
"httpParams": "{\"username\":\"sampleusername\",\"password\":\"StrongestPassword\"}",
"errorPath": "error.code",
"maxRefreshTryCount": 2,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"authHeaderName": "Authorization",
"accessToken": "Bearer ABCD",
"retryFailureStatusCode": [
401
]
}
}
}


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

AshishDas
Regular Contributor II
Regular Contributor II

Thanks Rushi, this works!