Reviewed: https://review.openstack.org/340577 Committed: https://git.openstack.org/cgit/openstack/keystone-specs/commit/?id=3e5faa81e9576d3ba7b6a427aedf9030b2a0be43 Submitter: Jenkins Branch: master
commit 3e5faa81e9576d3ba7b6a427aedf9030b2a0be43 Author: David Stanek <dsta...@dstanek.com> Date: Mon Jul 11 21:18:17 2016 +0000 Fixes token auth documentation for OS-FEDERATION The scope data should be inside the auth dictionary. When something is a top level key keystone will try to pass it as a kwarg to the controller method. The example code results in the following error message: authenticate_for_token() got an unexpected keyword argument 'scope' Change-Id: I3ed10bf1bd18e67e4ab616e95251695a910e6d0b Closes-Bug: #1589358 ** Changed in: keystone Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1589358 Title: Getting error unexpected keyword 'scope' while requesting OS- FEDERATION scoped token Status in OpenStack Identity (keystone): Fix Released Bug description: I am using stable/Liberty and configured SAML federation. I successfully get the unscoped token but when I request for Scoped token I get the error: {"error": {"message": "authenticate_for_token() got an unexpected keyword argument 'scope'", "code": 400, "title": "Bad Request"}} Here follows how I am making request for Scoped token: curl -X POST -H "Content-Type: application/json" \ -H "X-Auth-Token: 73462516f0cb4e1abf3cad52ff5f152a" \ -d '{ "auth": { "identity": { "methods": [ "token" ], "token": { "id": "73462516f0cb4e1abf3cad52ff5f152a" } } }, "scope": { "project": { "id": "57c0b4f4e998416aa5040decf6c8a764" } } }'\ http://localhost:5000/v3/auth/tokens The Unscoped token I received is: 73462516f0cb4e1abf3cad52ff5f152a I am following the following documentation: https://specs.openstack.org/openstack/keystone-specs/api/v3/identity- api-v3-os-federation-ext.html#request-a-scoped-os-federation-token To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1589358/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp