Unable to get refresh token - OAuth issue

Hi,

We are building an app which uses OAuth to authorize the user’s Salesforce account. We are facing some issue related the authorization and seems sporadic. Please find the details below.

This is the OAuth config we used in the app:

{  
  "client_id": "XXX",
  "client_secret": "YYY",
  "authorize_url":    "https://login.salesforce.com/services/oauth2/authorize", 
 "token_url": "https://login.salesforce.com/services/oauth2/token",  "token_type": "account", 
 "options":{   
    "scope": "api full web refresh_token offline_access"
  }
}

We are getting the below errors while installing or while reauthorizing the app and it is sporadic.

We are unable to debug it from our side so requesting you to help me debug this issue further.

Please let me know if you need more details.

Thanks,

Kannan

1 Like

We are trying to reproduce the issue and in the process of checking the platform behaviour. Sorry if this is getting delayed. I will keep you posted as soon as I have an update.

Thanks for checking this Saif, let me know if you have any update. Also, can you share the ETA so that I can inform customers based on your input?

Sorry @kannansantharam if this taking longer than it is intended to.

Our team has been working on this for a while now and unfortunately it is taking a bit longer than expected. Since this is uncertain issue we are seeing, I am not able to provide definite ETA at this point.

Hi @kannansantharam,

I have an update from my engineering team on this topic.

We found out that new tokens are saved in the platform maintained DB only after clicking the ‘save’ button. So, OAuth call made from the configuration of the app uses expired tokens and fails. But this only occurs with Freshdesk and Freshservice as they haven’t adopted the new apps gallery provided by marketplace yet.

Team is yet to decide how to proceed on from here, both for in the case of public app or an private app.