Accessing 'Edit' for a consumer under user/1/oauth/consumers gives the following error:

Fatal error: Class 'OAuthConsumer' not found in C:\acquia-drupal\sites\all\modules\oauth\includes\DrupalOAuthConsumer.inc on line 3

Adding require_once(); with path to OAuth.php in the first line of DrupalOAuthConsumer.inc resolves this and gives access to the details of the consumer.
Without access to this screen you can't access the required tokens for the client.

Comments

marksward’s picture

I'm not sure whether require_once() or module_load_include() should be used. In either case the file it needs is in sites/all/libraries/oauth - Libraries Module is intended to handle this? I'm playing trying to sort a relative path.

juampynr’s picture

Status: Active » Closed (won't fix)

Please download the latest dev version since tomorrow as I have reverted commits related to Libraries API integration. This work is being done now at branch 7.x-4.x.

See #1433274: Decouple OAuth code from Drupal module via Libraries API for full details.