You need to sign in to do that
Don't have an account?
Tyler Zika 19
Named Credential not returning refresh token
Hello,
I'm trying to create a named credential using Google as my Authentucation Provider. I am getting a token, but no refresh token.
The Authorize Endpoint URL in my Auth Provider, I'm using is: https://accounts.google.com/o/oauth2/auth?access_type=offline&prompt=consent
Using this url in a program like Postman returns a refresh token, but not with Salesforce. Any ideas for what could be the problem?
I'm trying to create a named credential using Google as my Authentucation Provider. I am getting a token, but no refresh token.
The Authorize Endpoint URL in my Auth Provider, I'm using is: https://accounts.google.com/o/oauth2/auth?access_type=offline&prompt=consent
Using this url in a program like Postman returns a refresh token, but not with Salesforce. Any ideas for what could be the problem?
Please refer the article from the salesforce help which might be helpful.
- https://help.salesforce.com/articleView?id=Named-credential-oauth-token-doesn-t-get-automatically-refreshed-with-Salesforce-SOAP-API-end-point&language=en_US&type=1
- https://salesforce.stackexchange.com/questions/139584/named-credentials-refresh-token-google-apis
Hope it will be helpful.Please mark it as best answer if the information is informative.
Thanks
Rahul Kumar