Unable to get request-token from keystone OAuth V3 api

asked 2016-05-31 01:13:41 -0500

keerthivasanselvaraj gravatar image

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

edit retag flag offensive close merge delete

Comments

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/...)

Sanjay_1987 gravatar imageSanjay_1987 ( 2016-05-31 02:11:29 -0500 )edit

Thanks Sanjay, that resources is not available.

keerthivasanselvaraj gravatar imagekeerthivasanselvaraj ( 2016-05-31 02:51:06 -0500 )edit

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 ?

keerthivasanselvaraj gravatar imagekeerthivasanselvaraj ( 2016-05-31 04:46:27 -0500 )edit