I have created an appian Connected System for DocuSign authentication with Authenticate Code Grant. I am able to authenticate & hit APIs successfully. But the issue is my token gets expired every 8 hours, then I have to go and authenticate from Connected System file again. Please help me understand how can I refresh my token when its expired/about to expire.
Asked
Active
Viewed 149 times
1 Answers
0
I can explain how refresh tokens are used to generate a new access token. However, this may not be possible with Appian, I am not sure about that, because I'm not sure about how Appian works.
First, you have to store the refresh_token you got when you used Auth Code Grant to get the original access_token that expired. That token can used to get another access_token later.
To get a new access token, use the refresh_token as you would an authorization code, but with a grant_type value of refresh_token and a refresh_token parameter that holds the contents of the refresh_token.

Inbar Gazit
- 12,566
- 1
- 16
- 23