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.

How to maintain the token that should not expire for every 6 hours.

Ramana
New Contributor II
New Contributor II

Hi Team,

I am working on an application called Docusign(Rest Connector)

For this application, I am able to generate the access token and refresh token from the postman.

I am passing the access token and refresh token in the connection JSON but for every 6 hours the token is getting expired again I am repeating all steps manually to generate the token and passing it in the connection JSON.

I spoke with the application team about the expiration. They are saying if the access token expires then we can generate it with the help a of refresh token.

Can you please help me how to achieve this requirement the only stopper for us going to live Can anyone have an idea how should we maintain the token without expire?

The below example json i am using in the connection.

{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"httpHeaders": {
"Authorization": "Basic XXXXXXXXXXXXXXX",
"Content-Type": "application/x-www-form-urlencoded"
},
"authError": [
"USER_AUTHENTICATION_FAILED",
"PARTNER_AUTHENTICATION_FAILED",
"AuthenticationFailed"
],
"url": "https://xxxx/oauth/token",
"httpMethod": "POST",
"httpContentType": "application/x-www-form-urlencoded",
"errorPath": "errorCode",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"authHeaderName": "Authorization",
"accessToken": "Bearer XXXXXXXXXXXXXX",
"httpParams": {
"refresh_token": "xxxx",
"grant_type": "refresh_token"
},
"retryFailureStatusCode": [
401
]
}
}
}

Thanks,
Ramana Muriki

2 REPLIES 2

Ramana
New Contributor II
New Contributor II

First, we are doing the first API call from the browser.

With the help of that call, we get the code that is using in postman > body >code

Ramana_0-1674457581112.png

With the help of that code, we are able to get the access token and refresh token. This token i am using in connection JSON.

I tried to call the first api call from postman but it not supporting, so i am doing it in the browser itself.

I am not mentioning about the first API call in my connection because of this i am facing this issue.

What is solution?


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