WindowsAzure/azure-sdk-for-node — Issue #36: Explicit credentials cause auth error in QueueService
Author: pofallon
Created: 2012-01-22 20:56:40+00:00
State: open

When I create a QueueService with explicit credentials and try to invoke listQueues:

```javascript
var azure = require('azure');

var queueService = azure.createQueueService(testCredentials.account,testCredentials.key);

queueService.listQueues(function(err,queues) {
if (err) {
console.dir(err);
} else {
console.dir(queues);
}
});
```

I get an authentication error with the following information:

Server used following string to sign: \'GET x-ms-date:Sun, 22 Jan 2012 19:38:21 GMT\nx-ms-version:2011-08-18\n/account/\ncomp:list\'.'

And this is the request being sent to Azure:

{ method: 'GET',
path: 'http://account.queue.core.windows.net:80/?comp=list',
host: 'account.queue.core.windows.net',
port: 80,
headers:
{ 'Content-Type': '',
'x-ms-version': '2011-08-18',
'x-ms-date': 'Sun, 22 Jan 2012 19:38:21 GMT',
Accept: 'application/atom+xml,application/xml',
'Accept-Charset': 'UTF-8',
Host: 'account.queue.core.windows.net:80',
Authorization: 'SharedKey account:...='
}
}

(where `account` is the name of my Azure storage account)