Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

Refresh Token for SaviyntforSaviynt REST connection

varunpuri
Regular Contributor
Regular Contributor

Hi,
I am trying to setup a SaviyntForSaviynt REST connection object. In the REST connector guide(https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide#RESTConnec...), in the Developers handbook section, various authentication types are mentioned. 
In the oauth2 authentication type, I am referring to Static Refresh Token section. The sample JSON provided in this section has the following snippet :

varunpuri_0-1672229831071.png

Here, since it is a SaviyntFor Saviynt connection object, how can i get the client id, secret values of Saviynt ?
Please correct if my understanding is wrong somewhere.

6 REPLIES 6

rushikeshvartak
All-Star
All-Star

This is for target apps not saviynt4saviynt


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

varunpuri
Regular Contributor
Regular Contributor

@rushikeshvartak , for a Saviynt for Saviynt connection, that means we cannot use a Refresh Token ?

you can use refer api documentation 

https://documenter.getpostman.com/view/1797923/2s83mbojGM#aad9ac63-60ba-4556-bf1d-58b816824f74


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

varunpuri
Regular Contributor
Regular Contributor

The only sample JSON present in the REST API documentation which uses a refresh token is with client_id and client_secret. 
Can you share any sample connection JSON for SaviyntForSaviynt which uses a Refresh token ?

AshishDas
Regular Contributor II
Regular Contributor II

Hi Varun,

We are facing the same issue. Did you find a solution?

IAM_99
Regular Contributor II
Regular Contributor II

Can you try below 

{
"authentications": {
"Saviynt4Saviynt": {
"authType": "oauth2",
"url": "https://XXXXX-XXXXXX/ECM/api/login",
"httpMethod": "POST",
"httpParams": {
"grant_type": "refresh_token",
"refresh_token": "${refresh_token}"
},
"httpHeaders": {
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Basic PQR"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "ExpiredAuthenticationToken",
"authError": [

"USER_AUTHENTICATION_FAILED",
"PARTNER_AUTHENTICATION_FAILED",
"AuthenticationFailed"
],
"refreshType": "RefreshToken",
"refreshTokenResponsePath": "refresh_token",
"refreshToken": "xyz",
"timeOutError": "Read timed out",
"errorPath": "errorCode",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"retryFailureStatusCode": [
401
],
"accessToken": "Bearer abc"
}
}
}