← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1589358] [NEW] Getting error unexpected keyword 'scope' while requesting OS-FEDERATION scoped token

 

Public bug reported:

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

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
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):
  New

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


Follow ups