I have set up everything exactly following the steps in the README, on the server and locally on my client.
I have tried with aliases in ~/.drush/aliases.drushrc.php and with the --uri --oauth_key --oauth_secret parameters of the drush command.

All I get is:
$ drush @dekotruhe web en views --yes
Failed to communicate with the server: Unauthorized: Invalid [cancel]
signature

I have checked the OAuth key and secret multiple times and even added a new consumer, but nothing helped.

What could be wrong?

Thanks!

- lestu

Comments

fengtan’s picture

ok, weird.
What is your config ? (OS, http server, php version, curl version, oauth version)
I will try to reproduce it.

lestu’s picture

On the host:
* FreeBSD 9.1-RELEASE-p7 amd64
* PHP 5.4.22
* Apache/2.2.26 (FreeBSD)
* Drupal module: Drush Webservice 7.x-1.0-rc1
* Drupal module: OAuth Authentication 7.x-3.5

On the client running Drush:
* Ubuntu 12.04.4 LTS
* PHP 5.3.10-1ubuntu3.9
* cURL 7.22.0
* drush version 5.0-dev

pbuyle’s picture

I've the same issue, using Services 7.x-3.7 and OAuth 3.2.

Edit: This may be related to #991416: Module cannot be enabled (WSOD upon enabling), I'm using PHP 5.4.

fengtan’s picture

ok. Tested with PHP 5.3 and 5.4, seems to work. No clue.
Maybe generate a new key.

As a workaround you may disable authentication but I would not recommend that if your server can be reached from the web:
* On admin/structure/services/list/drushweb, uncheck OAuth Authentication
* Grant perm 'oauth register consumers in drushweb' to Anonymous