Installed the latest version of the module and all dependencies, but get this error when trying to authenticate against Salesforce. This error appears when Salesforce redirects back to Drupal for token storage.

Fatal error: Interface 'OAuth\Common\Storage\TokenStorageInterface' not found in /var/www/html/salesforce-d8/modules/salesforce/src/Storage/SalesforceAuthTokenStorageInterface.php on line 12

Comments

RogerRogers created an issue. See original summary.

aaronbauman’s picture

Category: Bug report » Support request

Sounds like you're missing your composer dependencies, namely lusitanian/oauth

If you're not using a composer-based build, you'll need to ensure all your root composer.json requirements includes those of salesforce and its submodules.

rogerrogers’s picture

We used composer to install the dependencies and three of us had a go separately with no success. Will try again. Which is the recommended version of the D8 suite? Thanks much!

aaronbauman’s picture

If you're not having luck with 8.x-3.1, I'd recommend 8.x-3.x-dev
There will be an 8.x-3.2 release soon to keep an eye out for

rogerrogers’s picture

It does appear this was a dependency issue and thank you for clarifying. We also found a ddev environment issue that confused matters. Getting past that, do you recommend 8.x-3.x-dev or 8.x-3.1? Thanks for your quick responses!

aaronbauman’s picture

Status: Active » Fixed

Generally 3.x-dev will be pretty stable, but probably go with 3.1 if you don't have a compelling reason to run dev

The fixes in 3.x-dev are everything on this list from after November 2018:
https://www.drupal.org/project/issues/search/salesforce?text=&assigned=&...

No major bugs, a couple new features.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.