Closed larry-s closed 9 years ago
I had a spelling mistake. It does try the passwordCredentials, but only after the apiKeyCredentials have failed.
Okay good to know! I just tested myself with ~/ and found I had to add the full path on a Mac, so that was going to be my next guess, that it wasn't correctly interpreting the tilde (~). Thanks for replying and closing.
I am getting an error authenticating using a configuration file.
I set up a configuration file as described in https://github.com/rackspace/pyrax/blob/master/docs/getting_started.md#authenticating then I run
This shows: REQ: curl -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' https://identity.api.rackspacecloud.com/v2.0/tokens REQ BODY: {'auth': {'passwordCredentials': {'username': 'username', 'password': 'api_key'}, 'tenantId': 'username'}}
If I use set_credentials it works correctly:
I get: REQ: curl -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' https://identity.api.rackspacecloud.com/v2.0/tokens REQ BODY: {'auth': {'RAX-KSKEY:apiKeyCredentials': {'username': 'username', 'apiKey': 'api_key'}}}