Authentication works without any problem. But the token expires and when it tries to fetch the refresh token it gives the error message "Invalid grant_type refresh_token".
After debugging, I found that to refresh the token, the url is 'https://secure.in1.echosign.com/oauth/refresh'
The application has 2 URLs
- access token url: https://secure.in1.echosign.com/oauth/token
- refresh token url: https://secure.in1.echosign.com/oauth/refresh
dhaivat naik - 2021-08-13 05:02:10 - In reply to message 2 from Manuel Lemos
I have debugged and made some tricks, not sure if that is correct or not, but that works for me.
In the oauth_client.php function ProcessToken2 after line number 2090
after this statement i have added below code
$access_token_url = str_replace('/oauth/token', '/oauth/refresh', $this->access_token_url);
So ultimately I am changing the access token URL from /oauth/token to /oauth/refresh
Let me know if this is incorrect or can be done in a better way. At the moment after this change, it works for me.