Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to get request-token from keystone OAuth V3 api

I am trying to use OAuth functionality in keystone V3 api, I am able to create consumer using the below api

curl -v -H "X-Auth-Token:0e378ad228034adfaa9a86926f03500d" -H "Content-type: application/json" http://172.16.x.x:35357/v3/OS-OAUTH1/consumers/ -d '{"consumer": {"description": "My consumer"}}'

I am not able to create request-token from the below api

curl -v -X POST http://172.16.x.x:35357/v3/OS-OAUTH1/request_token -d '{requested_project_id:"7908bbde268348a9991ecdfa76fda577"}' --header 'Authorization: OAuth oauth_timestamp="1359019570",oauth_version="1.0",oauth_consumer_key="6076bb8cddf54b2ca0e12e43178850c1"' -H "Content-type: application/json"

Error:

{"error": {"message": "create_request_token() got an unexpected keyword argument 'requested_project_id'", "code": 400, "title": "Bad Request"}}

Please help me