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/ (http://172.16.x.x:35357/v3/OS-OAUTH1/...) -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 (http://172.16.x.x:35357/v3/OS-OAUTH1/...) -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
Try to open this URL in your browser to check if this resource is available:
http://172.16.x.x:35357/v3/OS-OAUTH1/request_token (http://172.16.x.x:35357/v3/OS-OAUTH1/...)
Thanks Sanjay, that resources is not available.
Sanjay, I am using keystone (liberty) to use OAuth functionality, Below is the link i am referring .
https://specs.openstack.org/openstack/keystone-specs/api/v3/identity-api-v3-os-oauth1-ext.html (https://specs.openstack.org/openstack...)
POST /OS-OAUTH1/request_token ( not available)
But I am able create consumer.
Can you help me ?