openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #04913
Re: Keystone problem Expecting auth 400
Hi
in order to work with curl :
curl -v -H "X-Auth-User: user" -H "X-Auth-key: KEY" http://IP:PORT/API_VERSION/
-v : verbose
-H : headers
http : ip to request.
I myself use that awesome tool to debug and work on my environments :
http://code.google.com/p/rest-client/
Razique
Le 20 oct. 2011 à 04:50, DeadSun a écrit :
> Then how to use curl to test?
>
> On Wed, Oct 19, 2011 at 4:15 PM, Razique Mahroua <razique.mahroua@xxxxxxxxx> wrote:
> Hi Roman,
> which version of Keystone are you using ?
> The auth. scheme has changed recently. Here is a working set with the last version :
>
> {"auth":
> {"tenantName": "service_usage", "passwordCredentials":
> {"username": "service_usage", "password": "P@ssword"}
> }
> }
>
> As you see the passwordCrendentials is embeded into an auth section
> Regards,
> Razique
>
> Le 19 oct. 2011 à 10:10, Roman Sokolkov a écrit :
>
>> Hi!
>>
>> I ve installed keystone
>>
>> but when I try to
>>
>> curl -d '{"passwordCredentials":{"username": "admin", "password": "P@ssword"}}' -H "Content-type: application/json" http://localhost:35357/v2.0/tokens
>>
>> I ve received
>>
>> {"badRequest": {"message": "Expecting auth", "code": "400"}}
>>
>> --
>> Regards, Roman Sokolkov
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
> --
> 非淡薄无以明志,非宁静无以致远
References