1
我正在使用节点云文件进行身份验证。Rackspace授权Node.js
var cloudfiles = require('cloudfiles');
var config = {
auth : {
username: 'my-username',
apiKey: 'my-api-key'
}
};
var client = cloudfiles.createClient(config);
console.log(client);
而这就是我得到
{ config:
{ auth:
{ username: 'my-username',
apiKey: 'my-api-key',
host: 'auth.api.rackspacecloud.com' },
servicenet: false },
authorized: false }
的用户名和apiKey是正确的,它工作在PHP,但不是在node.js中
authorized: false
- 何处是问题吗?