I'm trying to configure an External Data Source to use Salesforce Auth Provider so the OAuth 2 will pass access and refresh token. My configuration: Identity Type: Per User Authentication Protocol: OAuth 2.0 Authentication Provider test (Salesforce)
Setting scope to refresh_token and saving results in the following error:
We can’t log you in because of an authentication error. For help, contact your Salesforce administrator.
Setting the scope in the Auth Provider configuration makes Consumer Key and Consumer Secret fields required, defining some values in there and using Test-Only Initialization URL results in the following error:
Is there any way to configure External Data Source to use refresh token? Alternatively is there any way for the External Data Source (OData to be precise) to get to know the Salesforce ID of the user that caused the request to be sent to the External Data Source?