I think there is a mistype in oauth.inc file:

      // Check if the consumer key and token are valid
      if (!$consumer_uid = db_result(db_query("SELECT uid FROM {webservices_consumer}
          WHERE consumer_key = '%s'",
          $consumer_key))) {
        throw new Exception(t('Invalid consumer key.'));
      }
CommentFileSizeAuthor
#1 oauth324994.patch681 bytesvladimir.dolgopolov
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vladimir.dolgopolov’s picture

FileSize
681 bytes

Here is the patch.

brmassa’s picture

Status: Needs review » Fixed

Vladimir,

thanks a lot! patch commited!

regards,

massa

PS: since you are interested on OAuth and web services, i would ask you to help to build a OAuth authentication documentation (see http://drupal.org/node/318799). It would be great see other users to use and enhance it.

Status: Fixed » Closed (fixed)

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