Invalid grant_type refresh_token

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Invalid grant_type refresh_token  >  (Un) Subscribe thread alerts  
Subject:Invalid grant_type refresh_token
Summary:Invalid grant_type refresh_token
Messages:1
Author:dhaivat naik
Date:2021-06-11 10:54:21
 

 


  1. Invalid grant_type refresh_token   Reply   Report abuse  
Picture of dhaivat naik dhaivat naik - 2021-06-11 10:54:21
Trying to use it for AdobeSign. In the oauth_configuration.json file below are the settings

"Adobesign":
{
"oauth_version": "2.0",
"dialog_url": "https://secure.in1.echosign.com/public/oauth?response_type=code&client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&scope={SCOPE}&state={STATE}",
"access_token_url": "https://secure.in1.echosign.com/oauth/token",
"grant_type": "authorization_code"
}

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

How can I provide the refresh token url?

 

For more information send a message to info at phpclasses dot org.